React Js.pdf
34.1 MB
React js full pdf ππ
React with "β€οΈ" For more FREE PDFS
React with "β€οΈ" For more FREE PDFS
javascript-interview-questions-answers.pdf
212.7 KB
Javascript Interviews Q A For a job π
JavaScript Notes π₯.pdf
484.8 KB
Full notes Javascript From Basic-to-Advance π
top-50-html-interview-questions.pdf
98.6 KB
HTML Q A Top 50 ππ€©
keyboard-shortcuts-windows.pdf
142.3 KB
Vscode CheatSheet Windowsπ₯π
React if you would like CheatSheets, internships, Free notes and more π€©
React if you would like CheatSheets, internships, Free notes and more π€©
π5
Tips for solving leetcode codings interview problems
If input array is sorted then
- Binary search
- Two pointers
If asked for all permutations/subsets then
- Backtracking
If given a tree then
- DFS
- BFS
If given a graph then
- DFS
- BFS
If given a linked list then
- Two pointers
If recursion is banned then
- Stack
If must solve in-place then
- Swap corresponding values
- Store one or more different values in the same pointer
If asked for maximum/minimum subarray/subset/options then
- Dynamic programming
If asked for top/least K items then
- Heap
If asked for common strings then
- Map
- Trie
Else
- Map/Set for O(1) time & O(n) space
- Sort input for O(nlogn) time and O(1) space
If input array is sorted then
- Binary search
- Two pointers
If asked for all permutations/subsets then
- Backtracking
If given a tree then
- DFS
- BFS
If given a graph then
- DFS
- BFS
If given a linked list then
- Two pointers
If recursion is banned then
- Stack
If must solve in-place then
- Swap corresponding values
- Store one or more different values in the same pointer
If asked for maximum/minimum subarray/subset/options then
- Dynamic programming
If asked for top/least K items then
- Heap
If asked for common strings then
- Map
- Trie
Else
- Map/Set for O(1) time & O(n) space
- Sort input for O(nlogn) time and O(1) space
π5