Problems of greedy algorithm are usually intuitively challenging. For this one, the high level concept is “while already able to jump (global), stay behind the accessible point and seek greedier choice (local)”.
Description
Run a flask app on gcp, set the firewall rule, so the app shall be accessed.
A more complicated version of Number of Islands.
Permutation means the sequence of elements in subset does matter.
Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order.
nums
A palindrome is same backward as forward. Also, a palindrome will still be palindrome after removing head and tail. Hence, this is a breakable problem, which dynamic programming helps.
Familiarize graph’s design of data structure and the way to traverse.
Advanced version of Maximum Subarray. As multiplying a negative switches max/min, instead of keeping the localMax, both max & min should be kept for possible inference.
Subsets problems are just like combinations.
Given an integer array nums of unique elements, return all possible subsets (the power set).
While the condition is as simple as the fib, this can be a good practice of dynamic programming.
You are climbing a staircase. It takes n steps to reach the top.
n
These were the top 10 stories published by Coding Memo in March of 2022. You can also dive into daily archives for March of 2022 by using the calendar at the top of this page.