933 Number of Recent Calls
link: Number of Recent Calls Thought Question ask for numbers of calls in 3000. So sliding windows is my choice […]
link: Number of Recent Calls Thought Question ask for numbers of calls in 3000. So sliding windows is my choice […]
link Knight Dialer Thought Since it ask how many distinct numbers could be generated, DP jumps to my mind immediately.
link: Shortest Bridge Thought Since the question ask for shortest, so BFS probabely the best algorithms to solve it. But
LinkĀ 931.Minimum Falling Path Sum Thought DFS When first seeing this question, DFS prompt into my mind directly. Take Any node
Link: Unique Email Addresses Thought Brutal Force SolutionThis question is pretty simple (and it actually is an esay one). A