Feb
23
2024
0

Daily Question – *0787. Cheapest Flights Within K Stops

This is a typical graph theory problem that could be solved by using the Dijkstra algorithm. Since it has a limitation, we could use the SPFA (Shortest Path Faster Algorithm).

Feb
22
2024
0

Daily Question – 0997. Find the Town Judge

Description: https://leetcode.com/problems/find-the-town-judge/ Notes:

Feb
20
2024
0

Daily Question – 0268. Missing Number

Description: https://leetcode.com/problems/missing-number/description/ Notes:

Feb
19
2024
0

Daily Question – 0231. Power of Two

Descroption: https://leetcode.com/problems/power-of-two/ Note

Feb
17
2024
0

22. Generate Parentheses

Insert the “()” to string space. O(n2)

Feb
17
2024
0

19. Remove Nth Node From End of List

Description: https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/ Notes:

Feb
17
2024
0

Daily Question – 1642. Furthest Building You Can Reach

Greedy, use list.poll get the least number of integer list.

Feb
15
2024
0

18. 4Sum

Same as 3sum, for big number, using BigInteger .