This repo will consist of all the coding questions from various sites like leetcode, codechef, edyst, and others. Most of the questions are implementation based or ad-hoc while greedy and dynamic programming questions keep coming in. Please feel free to make changes to existing code or contribute new questions.
Note: All solutions are in Python only.
Solutions to daily challenge questions on LC.
AtCoder Beginner Contests (No longer participating)
Notes and problems that help understand the fundamentals of a few problem-solving techniques
Solutions to practice and challenge questions on CodeChef
Problems I could solve in cf contests
Solutions of most questions on the edyst platform for the Advanced Algorithms and Data Structures course
Random and interesting problems on G4G
Random problems from interviewBit
Notes and Solutions to questions from probably the best website to develop algorithmic thinking
LeetCode grind
Random questions that I felt were important or trash files for code snippets
Famous sorting algorithms in Python
Getting familiar with coding interview questions with Talentio
Questions and solutions of HWI mock tests
This will contain algorithms/techniques that help reduce time complexity of our programs
- Cracking the Coding Interview (CtCI)
- Programming Interview Exposed (PEI)
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 asked for maximum/minumum 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