Using CheatSheets To Apply Best Practices

Cheatsheet: Leetcode For Code Interview

Cheatsheet: Leetcode For Code Interview

1.2 Top Tips For Clean Code

Num Name Examples
1 One pass instead of two pass  
2 Move in four directions for a 2D matrix Leetcode: Sliding Puzzle
3 Presum for caculating sum of one range #presum
4 Avoid unnecessary precheck  
5 Sort one array based on another array  

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 *