-🎄- 2022 Day 3 Solutions -🎄-

  1. Efficient and understandable solution to both tasks in Python. If you have some problems with the tasks it can maybe help you. Using intersection and ASCII seems pretty neat imo.

  2. I did it with full brute force too, but i wanna find different solution without it. Do you have any ideas? I searched whole internet in hopes to find some build in functions which find the even letter in string. I thought i would do that if i sort the string and then remove the unnecessary stuff but it would be more complicated and probably even slower than the brute force

  3. Inlined code is intended for short snippets of code only. Your code "block" right now is unreadable on old.reddit and many mobile clients; it's all on one line and gets cut off at the edge of the screen because it is not horizontally scrollable.

  4. JAVASCRIPT PART 2. Hello, It's me again. I'm learning JS, still a beginner. Started my journey back in september this year. You'll see a lot of if statements and console.logs because that's how I manage to keep my line of thought and to check if my code is working. I still don't know how to condensate everything in shorter cleaner code. I'm doing what I can, I think tis activities are pretty fun =)

  5. Keep doing what you started, looks cool! :) My experience is that first we learn consistency and then we can go for efficiency and compactness.

  6. JAVASCRIPT. Hello, It's me again. I'm learning JS, still a beginner. Started my journey back in september this year. You'll see a lot of if statements and console.logs because that's how I manage to keep my line of thought and to check if my code is working. I still don't know how to condensate everything in shorter cleaner code. I'm doing what I can, I think tis activities are pretty fun =)

  7. thanks for that video, i learned a few tricks there. i can't quite figure out how your code understands to look for input in the text files, however, especially in part 2. wouldn't input() cause a prompt to appear for you to manually enter in input?

  8. JAVA day 3 using two array maps to check for duplicate. Could have used a hash map if you want to.

  9. Hello, I am a noob. I like your solution! I was just wondering, how is it that you get the source text file into Linqpad? Thanks heaps for any tips.

  10. Very neat even if I don't fully understand how the bit stuff works. Are you basically using the strings as bit masks? Not sure how the u64::BITS - common.leading_zeros() part works either.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may have missed