Skip to content

jimmy0804/algo-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algo Practice

This project keeps track of my algo practice history

Leetcode Practice History

Number Title Solution Difficulty Note
1167 Minimum Cost to Connect Sticks Python Medium Greedy
1108 Defanging an IP Address Swift Easy -
983 Minimum Cost For Tickets Python Medium
973 K Closest Points to Origin Python Medium -
937 Reorder Data in Log Files Python Easy Amazon
905 Sort Array By Parity Python Easy -
677 Map Sum Pairs Python Medium Trie
662 Maximum Width of Binary Tree Swift Medium -
657 Robot Return to Origin Swift Easy `
648 Replace Words Python Medium Trie
647 Palindromic Substrings Python Medium -
560 Subarray Sum Equals K Swift Medium -
510 Inorder Successor in BST II Swift Medium -
437 Path Sum III Swift Medium -
435 Non-overlapping Intervals Python Medium -
409 Longest Palindrome Python Easy -
404 Sum of Left Leaves Python Easy -
374 Guess Number Higher or Lower Python Easy -
297 Serialize and Deserialize Binary Tree Swift Python Hard Tree
278 First Bad Version Python Easy -
257 Binary Tree Paths Swift Easy -
253 Meeting Rooms II Python Medium -
235 Lowest Common Ancestor of a Binary Search Tree Swift Easy -
229 Majority Element II Swift Medium -
226 Invert Binary Tree Python Easy -
210 Course Schedule II Python Medium Topological Sort
200 Number of Islands Python Medium -
171 Excel Sheet Column Number Python Easy -
169 Majority Element Python Easy -
162 Find Peak Element Python Medium Review needed
155 Min Stack Swift Easy -
131 Palindorm Partitioning Python Medium Backtracking
129 Sum Root to Leaf Numbers Python Swift Medium Tree
128 Longest Consecutive Sequence Python Hard -
125 Valid Palindrome Python Easy -
113 Path Sum II Swift Medium -
110 Balanced Binary Tree Swift Easy -
101 Symmetric Tree Swift Medium -
100 Same Tree Swift Easy -
78 Subsets Swift Medium Backtracking
67 Add Binary Python Easy -
64 Minimum Path Sum Python Medium -
58 Length of Last Word Python Easy -
57 Insert Interval Python Hard 13/09/2020
53 Maximum Subarray Swift Easy -
49 Group Anagram Swift Python Medium -
48 Rotate Image Python Medium -
46 Permutations Swift Medium Backtracking question general approach
39 Combination Sum Swift Medium Backtracking
34 Find First and Last Position of Element in Sorted Array Python Medium Binary search ❤️
33 Search in Rotated Sorted Array Python Medium Binary search ❤️
26 Remove Duplicates from Sorted Array Swift Python Easy -
23 Merge k Sorted Lists Python Hard -
19 Remove Nth Node From End of List Swift Medium -
18 4Sum Swift Medium -
17 Letter Combinations of a Phone Number Swift Medium -
15 3Sum Swift medium -
14 Longest Common Prefix Swift Easy Review needed
13 Roman to Integer Swift Easy -
11 Container With Most Water Swift Medium -
9 Palindrome Number Swift Easy -
5 Longest Palindromic Substring Python Medium -
3 Longest Substring Without Repeating Characters Swift Medium -
2 Add Two Numbers Swift Python Medium Amazon
1 Two Sum Swift Easy Amazon

Misc

Title Solution Note
Merge Sort Swift Top down approach
Trie Python Dictionary
Heap Swift -

Learning Resources

Binary Search

Powerful Ultimate Binary Search Template. Solved many problems

Graph

Graph For Beginners Problems or Pattern or Sample Solutions

Cracking the coding interview

https://github.com/ahujaraman/cracking-the-coding-interview