LogFAQs > #960595869

LurkerFAQs, Active DB, DB1, DB2, DB3, DB4, DB5, DB6, DB7, DB8, DB9, Database 10 ( 02.17.2022-12-01-2022 ), DB11, DB12, Clear
Topic List
Page List: 1
TopicAnother day, another rejection from a software developer position. Time to grind
BIueJay
12/03/21 6:35:54 PM
#5:


warlock7735 posted...
Apply somewhere that will appreciate you, not somewhere that you esteem. Invert the balance of power is you want to be happy.
They can appreciate me by paying me the monies. I'm hitting random on Leetcode. I already have 200 problems done, and I'm hoping to hit 300. I'm also adding all these problems on Anki so I can quickly remember the process.

I briefly remember the concept of the LRU Cache problem and the data structures needed, but I haven't actually implemented. You always need to implement the problems to see first-hand what road blocks you might run into.

https://leetcode.com/problems/lru-cache/submissions/

This is the first problem I did today using Java. The key here for me is to use a HashMap and a doubly linked list, but just have a dummy head and a dummy tail. This means I don't have to do so many null checks in case the head or tail is null, since they will always exist. It makes this question so much easier.

Second question is the unique email combinations you can produce. A leetcode easy question. Admittedly my regex isn't the greatest. But you can kinda cheat here by replacing the "." and "+" and surrounding them with some random symbol like "~", so it becomes "~.~". Then call split on that based on "~". Finally iterate through that split, following the instructions. Use a HashMap to only get the unique emails. Not too bad. Another way is to just serch for the first index of + in the domain and remove the end. The split the rest of the domain by . and append them all.

https://leetcode.com/problems/unique-email-addresses/submissions/

For system design, I kind of already know the basic components from https://github.com/donnemartin/system-design-primer.

I'll be looking for more resources, and more specific cases that companies actually use. Also will be devouring youtube channels. I learned about the publisher/subscriber pattern. The journey continues.
... Copied to Clipboard!
Topic List
Page List: 1