These are my solutions to leetcode problems.
Most of the problems started by following this list: https://seanprashad.com/leetcode-patterns/
If input array is sorted then
If asked for all permutations/subsets then
If given a tree then
If given a graph then
If given a linked list then
If recursion is banned then
If must solve in-place then
If asked for maximum/minumum subarray/subset/options then
If asked for top/least K items then
If asked for common strings then
Else
There was an error while loading. Please reload this page.