Skip to content

Competitive programming. Almost all the questions that I solved are here.

Notifications You must be signed in to change notification settings

amit-kr-debug/CP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2020

Sept 01, 2020

Geeks for geeks/array/Maximum profit by buying and selling a share at most k times.py

Geeks for geeks/array/Maximum profit by buying and selling a share at most twice.py

Geeks for geeks/array/Minimize the heights.py

Geeks for geeks/array/Minimum number of jumps.py

Geeks for geeks/array/stock buy sell.py

Geeks for geeks/array/Two Repeated Elements.py

Sept 02, 2020

Geeks for geeks/array/Row with max 1s.py

Geeks for geeks/array/Triplet Sum in Array.py

Geeks for geeks/array/Median In a Row-Wise sorted Matrix.py

Geeks for geeks/array/Spirally traversing a matrix.py

Geeks for geeks/array/Array Subset of another array.py

Geeks for geeks/array/Implement two stacks in an array

Sept 03, 2020

Geeks for geeks/strings/Check if strings are rotations of each other or not.py

Geeks for geeks/strings/Interleaving of two given strings with no common characters.py

Geeks for geeks/strings/Remove all duplicates from a given string.py

Geeks for geeks/strings/Longest Palindrome in a String.py

Sept 04, 2020

Foobar challenge/Level 3/Doomsday Fuel.py

Foobar challenge/Level 3/Find the access codes.py

Foobar challenge/Level 3/Fuel injection perfection.py

Foobar challenge/Elevator maintenance .py

Sept 05, 2020

Geeks for geeks/stacks/Nearest greatest to right.py

Geeks for geeks/stacks/Nearest greater to left.py

Geeks for geeks/stacks/nearest smallest to right.py

Geeks for geeks/stacks/nearest smallest to left.py

Sept 06, 2020

Geeks for geeks/stacks/stock span.py

Geeks for geeks/stacks/Parenthesis Checker.py

Geeks for geeks/stacks/Reverse words in a given string.py

Geeks for geeks/stacks/Maximum Rectangular Area in a Histogram.py

Sept 07, 2020

Geeks for geeks/stacks/Max rectangle - binary matrix.py

Geeks for geeks/stacks/trapping rain water.py

Sept 08, 2020

Geeks for geeks/Heap/k closest elements.py

Geeks for geeks/Heap/k largest elements.py

Geeks for geeks/Heap/Kth smallest element.py

Geeks for geeks/Heap/Nearly Sorted Algorithm.py

Geeks for geeks/Heap/Top K Frequent Elements in Array.py

Sept 09, 2020

Geeks for geeks/Heap/Sorting Elements of an Array by Frequency.py

Geeks for geeks/Heap/k closest point to origin.py

Geeks for geeks/Heap/Minimum Cost of ropes.py

Geeks for geeks/Heap/Sum of elements between k1'th and k2'th smallest elements.py

Sept 10, 2020

Geeks for geeks/recursion/Height of Binary Tree.py

Geeks for geeks/recursion/sort an array (recursive approach).py

Geeks for geeks/recursion/Sort a stack.py

Geeks for geeks/recursion/Delete middle element of a stack.py

Sept 11, 2020

Geeks for geeks/recursion/reverse a stack.py

LeetCode/kth symbol in grammar.py

Geeks for geeks/recursion/Tower of Hanoi.py

Sept 12, 2020

Added email notification system to SmartBuy project

Sept 13, 2020

Interview Questions/Two strings.py

Geeks for geeks/recursion/Power Set.py

Geeks for geeks/recursion/Subsets.py

Geeks for geeks/recursion/Permutation with Spaces.py

Sept 14, 2020

Geeks for geeks/recursion/permutation with case change.py

Geeks for geeks/recursion/permutation with case change and nums.py

Geeks for geeks/recursion/Generate All Possible Parentheses.py

Geeks for geeks/recursion/Game of Death in a circle.py

Sept 15, 2020

Geeks for geeks/Dynamic Programming/0 - 1 Knapsack Problem(Memoization Technique).py

Sept 16, 2020

Geeks for geeks/Dynamic Programming/0 - 1 Knapsack Problem(Top Down).py

Sept 17, 2020

Geeks for geeks/Dynamic Programming/Subset Sum Problem.py

Geeks for geeks/Dynamic Programming/Count of Subsets Sum with a Given Sum.py

Geeks for geeks/Dynamic Programming/equal partition subset.py

Sept 18, 2020

Geeks for geeks/Dynamic Programming/Minimum sum partition.py

LeetCode/Target sum.py

Geeks for geeks/Dynamic Programming/unbounded knapsack.cpp

Geeks for geeks/Dynamic Programming/Rope cutting.py

Sept 19, 2020

Geeks for geeks/Dynamic Programming/Coin Change - maximum ways.py

Geeks for geeks/Dynamic Programming/coin change - minimum no of coins.py

Geeks for geeks/Dynamic Programming/LCS - Memoization.py

Geeks for geeks/Dynamic Programming/LCS - Top Down.py

Geeks for geeks/Dynamic Programming/Longest common substring.py

Sept 20, 2020

Geeks for geeks/Dynamic Programming/Print LCS.py

Geeks for geeks/Dynamic Programming/Shortest Common Supersequence.py

Geeks for geeks/Dynamic Programming/Minimum number of deletions and insertions.cpp

Geeks for geeks/Dynamic Programming/Longest Palindromic Subsequence.cpp

Geeks for geeks/Dynamic Programming/Minimum Deletions.cpp

Sept 21, 2020

Geeks for geeks/strings/LCS with permutations.py

Sept 22, 2020

Geeks for geeks/Dynamic Programming/Print SCS.cpp

Geeks for geeks/Dynamic Programming/Longest repeating subsequence.cpp

Sept 23, 2020

Geeks for geeks/Dynamic Programming/Minimum Insertions.cpp

Geeks for geeks/array/Longest consecutive subsequence.py

Sept 24, 2020

hackerrank/Min Max Riddle.py

Geeks for geeks/array/Longest consecutive subsequence.py

Geeks for geeks/array/Minimum element in a sorted and rotated array.py

Sept 25, 2020

LeetCode/Next Permutation.py

hackerrank/Merge the Tools!.py

hackerrank/No idea.py

hackerrank/Capitalize!.py

Sept 26, 2020

goldman sachs 2nd round

hackerrank/word order !.py

Sept 27, 2020

codeAgon - Hackathons

Geeks for geeks/array/Rearrange array in alternating positive & negative items with O(1) extra space.py

hackerrank/ginortS.py

Sept 28, 2020

hackerrank/Compress the string.py

CodeChef/Wormholes - ZCO12002.py

CodeChef/Stupid machine - STUPMACH.py

Dec 02, 2020

Geeks for geeks/strings/Recursively remove all adjacent duplicates.py

Geeks for geeks/strings/Anagram.py

Dec 04, 2020

Geeks for geeks/strings/Longest Common Prefix in an Array.py

Dec 29, 2020

Geeks for geeks/Tree/Inorder Traversal.py

Geeks for geeks/Tree/Preorder Traversal.py

2021

Apr 6, 2021

Geeks for geeks/array/Subarray with given sum.py

Apr 7, 2021

Geeks for geeks/array/Move all the negative elements to one side of the array.py

Geeks for geeks/array/sorting 0 1 2.py

Apr 19, 2021

LeetCode/find the duplicate.py

LeetCode/Merge Intervals.py

Geeks for geeks/array/Find Missing And Repeating.py

Geeks for geeks/array/Merge without extra space.py

May 30, 2021

LeetCode/Lenght of longest substring.py

Geeks for geeks/LinkedList/Reverse a linked list.py

Geeks for geeks/LinkedList/middle element in a linked list.py

Geeks for geeks/LinkedList/Nth node from end of linked list.py

Geeks for geeks/LinkedList/Merge two sorted linked lists.py

Geeks for geeks/LinkedList/Delete a given Node when a node is given.py

May 31, 2021

Geeks for geeks/LinkedList/Add two numbers represented by linked lists.py

Geeks for geeks/LinkedList/Intersection Point in Y Shapped Linked Lists.py

Geeks for geeks/LinkedList/Detect Loop in linked list.py

Geeks for geeks/LinkedList/Reverse a Linked List in groups of given size..py

Geeks for geeks/LinkedList/Check if Linked List is Palindrome.py

Geeks for geeks/LinkedList/Remove the loop from linkedlist.py

Geeks for geeks/LinkedList/Flattening a Linked List.py

Jun 1, 2021

LeetCode/138. Copy List with Random Pointer(Linked List).py

LeetCode/15. 3Sum.py

LeetCode/26. Remove Duplicates from Sorted Array.py