Total 4 in the same day, each also asked 2 lp
HLD:
design comment api for social media site
Coding/LLD:
given integer matrix, 0 represent water and >0 represent land, find size of "pond" of from input coordinate, all 8 position count as adjacent
(simple bfs)
given a file containing all search history, implement a search suggestion function from user input
(trie, follow up asked for a O(1) solution, answered with a hashmap brute force)
given a list of keywords and a document string, find the shortest segment in document contains all keyword
(I just brute forced, iterate the entire doc and get all keyword index in hashmap, then compare the min of all indexes)
No sure about the result yet, but I can feel my performance just degrade throughout the day, and kind of bombed the last one...
Update: Rejected. Feedback was citing the panel feels like it's a cutural fit but is technically immature. So Pass on LP but fail on the tasks I suppose.


