Using CheatSheets To Apply Best Practices

CheatSheet: Common Code Problems & Follow-ups

CheatSheet: Common Code Problems & Follow-ups

1.1 50 Typical Code Problems & Follow-ups

Num Category/Tag Example
1 #atmostkdistinct, #string Substring with at most k distinct characters
2 #twosum, #array TwoSum Problems & Follow-Up
3 #maxsubarraysum, #array Maximum subarray problem
4 #nextpermutation, #string Get the next permutation of an array
5 #editdistance, #string Word Distance & Follow-up
6 #baseconversion Base Conversion Problems & Follow-Up
7 #presum, #array Caculate sum of a range quickly
8 #fibonacci Fibonacci Problems & Follow-Up
9 #island, #dfs, #bfs, #unionfind Island Problems & Follow-up
10 #matrixtraversal, #array Matrix Traversal & Follow-up
11 #rangesum Caculate range sum of a slice
12 #reverseitem Reverse List/String & Follow-up
13 #topk, #heap Top k elements of a problem domain
14 #subsequence Find Subsequence In Strings & Follow-up
15 #lis Longest increasing subsequence & Follow-up
16 #lcs Longest common subsequence & Follow-up
17 #findduplicates Find duplicates from a list & Follow-up
18 #coin Coin Problems & Follow-Up
19 #wiggle Wiggle Array Problems & Follow-up
20 #groupelements Seperate a list into several groups
21 #treetraversal, #binarytree Tree Traversal & Follow-up
22 #calculator Calculator & Follow-up
23 #meetingconflict Meeting Conflict Problems & Follow-up
24 #meetingpoint Meeting Point Problems & Follow-up
25 #convertds Convert Data Structure Problems & Follow-Up
26 #expression Expression Problems & Follow-Up
27 #frogjump Frog Jump Game & Follow-up
28 #houserobber House Robber & Follow-up
29 #ipaddress IP Address Problems & Follow-Up
30 #paintfence Paint Fence & Follow-up
31 #poison Poison Problems & Follow-up
32 #slidingpuzzle Sliding Puzzle & Follow-up
33 #trappingrain Trapping Rain & Follow-up
34 #parentheses Parentheses problems & Follow-up
35 #buystock Buystock Problems & Follow-Up
36 #countdistinctmoves Count of distinct moves Problems & Follow-Up
37 #maxprofitwithcost Maximum profits with certain costs Problems & Follow-up
38 #constructstring Construct string Problems & Follow-up
39 #constructarray Construct array Problems & Follow-up
40 #colorgraph Coloring graph nodes Problems & Follow-up
41 #graphchangecell Change cells of graph Problems & Follow-up
42 #splitarray Split Array Problems & Follow-up
43 #multiplechoices Multiple Choices At Each Step Problems & Follow-Up
44 #endswith Endswith Problems & Follow-up
45 #sortedmatrix Sorted 2D Matrix Problems & Follow-up
46 #rollinghash Rolling Hash Problems & Follow-up
47 #lfu LFU – Least Frequently Used Cache Problems & Follow-up
48 #geometry Geometry Problems & Follow-up

1.3 More Resources

License: Code is licensed under MIT License.




Leave a Reply

Your email address will not be published. Required fields are marked *