Data-Structures
Data Structures
File Explorer
Download Latest Version (.zip)- Kadane's Algorithm (2D).py
- Kadane's Algorithm(1D).py
- Majority element.java
- Combination Sum 2.cpp
- Combination Sum 2.java
- Combination Sum 2.py
- Find K-th Smallest Pair Distance.cpp
- BinarySearch.java
- Find K-th Smallest Pair Distance.java
- Find K-th Smallest Pair Distance.py
- Find in Mountain Array.py
- Magnetic Force Between Two Balls.java
- Minimum Number of Days to Make m Bouquets.java
- Minimum Number of Operations to Make Array Continuous.py
- Most Profit Assigning Work.java
- Number of Flowers in Full Bloom.py
- Balance a Binary Search Tree.java
- Binary Search Tree to Greater Sum Tree.java
- Missing Number.java
- aximum Profit in Job Scheduling.java
- Edit Distance.cpp
- Max Dot Product of Two Subsequences.py
- Min steps to 1.cpp
- Minimum Sum Subarray.cpp
- Ugly Number II.cpp
- Adjacency List.cpp
- Adjacency Matrix.cpp
- 3 cycle.cpp
- All Connected Components.cpp
- BFS Traversal.cpp
- Coding Ninjas.cpp
- Count Sub Islands.py
- Dijkstra's Algorithm.cpp
- Find Center of Star Graph.java
- Get Path-BFS.cpp
- Get Path-DFS.cpp
- Has Path.cpp
- Is Connected?.cpp
- Islands.cpp
- Kruskals.cpp
- Largest Piece.cpp
- Longest Increasing Path in a Matrix.cpp
- Path with Maximum Probability.cpp
- Prim's Algorithm.cpp
- Maximum Distance in Arrays.cpp
- Maximum Distance in Arrays.java
- Maximum Distance in Arrays.py
- Assign Cookies.java
- Boats to Save People.cpp
- Buy Maximum Stocks if i stocks can be bought on i-th day.py
- Check if it is possible to survive on Island.py
- Chocolate Distribution Problem.py
- Find maximum meetings in one room.py
- Find maximum sum possible equal sum of three stacks.py
- Find smallest number with given number of digits and sum of digits.py
- Greedy Approach to Minimum Number of Coins.py
- Maximize sum after K negations.py
- Maximum product subset of an array.py
- Maximum sum of absolute difference of any permutation.py
- Maximum trains for which stoppage can be provided.py
- Rearrange characters in a string such that no two adjacent are same.py
- Shop in Candy Store.py
- Smallest subset with sum greater than all other elements.py
- Convert an Array Into a 2D Array With Conditions.java
- Count Number of Nice Subarrays.java
- Minimum Number Of Swaps.cpp
- Perfect Sum Pair.cpp
- Sort strings lexicographically according to given sequence of characters.cpp
- IPO.cpp
- Implementation.cpp
- Top K Frequent Elements.java
- 3Sum With Multiplicity.cpp
- Baseball Game.cpp
- Container With Most Water.cpp
- Convert BST to Greater Tree.cpp
- Design Underground System.cpp
- Game of Life.cpp
- Increasing Order Search Tree.cpp
- Kth Largest Element in a Stream.cpp
- Kth Smallest Element in a BST.cpp
- Last Stone weight.cpp
- Recover Binary Search Tree.cpp
- Search in a Binary Search Tree.cpp
- Shift 2D Grid.cpp
- Spiral Matrix II.cpp
- Swapping Nodes in a Linked List.cpp
- Top K Frequent Elements.cpp
- Trim a BST.cpp
- Valid Palindrome II.cpp
- Container With Most Water.java
- Convert BST to Greater Tree.java
- Design Underground System.java
- Increasing Order Search Tree.java
- Kth Largest Element in a Stream.java
- Last Stone weight.java
- Recover Binary Search Tree.java
- Search in Binary Search Tree.java
- Swapping Nodes in a Linked List.java
- Trim a BST.java
- Baseball Game.py
- Container With Most Water.py
- Convert BST to Greater Tree.py
- Design Underground System.py
- Increasing Order Search Tree.py
- Last Stone weight.py
- Recover Binary Search Tree.py
- Search in a Binary Search Tree.py
- Swapping Nodes in a Linked List.py
- Trim a BST.py
- Basic Calculator II.cpp
- Binary Tree Tilt.cpp
- Consecutive Characters.cpp
- Convert Binary Number in a Linked List to Integer.cpp
- Course Schedule II.cpp
- Decode String.py
- Domino and Tromino Tiling.cpp
- House Robber III.py
- House Robber.py
- Insertion Sort List.cpp
- Jump Game III.py
- K Closest Points to Origin.cpp
- Maximal Square.cpp
- Minimum Absolute Difference.cpp
- Minimum Cost to Move Chips to The Same Position.cpp
- Minimum Height Trees.cpp
- Nth Magical Number.cpp
- Number Complement.cpp
- Numbers At Most N Given Digit Set.cpp
- Odd Even Linked List.cpp
- Partition Equal Subset Sum.cpp
- Populating Next Right Pointers in Each Node.cpp
- Power of two.cpp
- Range Sum of BST.cpp
- Reorder List.cpp
- Stream of Characters.cpp
- Binary Tree Maximum Path Sum.cpp
- Climbing Stairs.cpp
- Daily Temperatures.cpp
- Evaluate Reverse Polish Notation.cpp
- Find if Path Exists in Graph.cpp
- Implement Queue using Stacks.cpp
- Leaf-Similar Trees.cpp
- Longest Common Subsequence.cpp
- Maximum Difference Between Node and Ancestor.cpp
- Maximum Product of Splitted Binary Tree.cpp
- Minimum Average Difference.cpp
- Minimum Falling Path Sum.cpp
- 4 sum II.cpp
- Add Digits.cpp
- Clone Graph.cpp
- Combination Sum.cpp
- Compare Version Numbers.cpp
- Contiguous Array.cpp
- Excel Sheet Column Number.cpp
- Find all anagrams in a string.cpp
- Find the Difference.cpp
- K-diff Pairs in an Array.cpp
- Majority Element.cpp
- Maximum Depth of Binary Tree.cpp
- Maximum Width of Binary Tree.cpp
- Merge k Sorted Lists.cpp
- Minimize Deviation in Array.cpp
- Permutation in String.cpp
- Remove Covered Intervals.cpp
- Remove Duplicates from Sorted Array II.cpp
- Remove K Digits.cpp
- Shortest Path Visiting All Nodes.cpp
- SortList.cpp
- Subarray Sum Equals K.cpp
- Summary Ranges.cpp
- Swap Nodes in Pairs.cpp
- Word Ladder.cpp
- 4 Sum II.java
- Add Digits.java
- Combination Sum.java
- Compare Version Numbers.java
- Contiguous Array.java
- Excel Sheet Column Number.java
- Find the Difference.java
- K-diff Pairs in an Array.java
- Majority Element.java
- Maximum Depth of Binary Tree.java
- Maximum Width of Binary Tree.java
- Merge k Sorted Lists.java
- Minimize Deviation in Array.java
- Permutation in String.java
- Remove Covered Intervals.java
- Remove Duplicates from Sorted Array II.java
- Remove K Digits.java
- Shortest Path Visiting All Nodes.java
- Sort List.java
- Subarray Sum Equals K.java
- Summary Ranges.java
- Swap Nodes in Pairs.java
- Compare Version Numbers.py
- Majority Element.py
- Maximum Width of Binary Tree.py
- Remove K Digits.py
- Can Place Flowers.java
- Jump Game IV.java
- Koko Eating Bananas.java
- Linked List Cycle II.java
- Maximize Distance to Closest Person.java
- Richest Customer Wealth.java
- Sequential Digits.java
- Single Number Java.java
- Single Number.java
- Stone Game IV.java
- String to Integer (atoi).java
- Add Binary.cpp
- All Elements in Two Binary Search Trees.cpp
- Can Place Flowers.cpp
- Car Pooling.cpp
- Cherry Pickup II.cpp
- Design Add and Search Words Data Structure.cpp
- Detect Capital.cpp
- Find the Town Judge.cpp
- Gas Station.cpp
- Jump Game IV.cpp
- Koko Eating Bananas.cpp
- Linked List Cycle II.cpp
- Linked List Random Node.cpp
- Maximize Distance to Closest Person.cpp
- Maximum XOR of Two Numbers in an Array.cpp
- Minimum Number of Arrows to Burst Balloons.cpp
- Palindrome Partitioning.cpp
- Richest Customer Wealth.cpp
- Robot Bounded In Circle.cpp
- Rotate array.cpp
- Sequential Digits.cpp
- Single Number.cpp
- Stone Game IV.cpp
- String to Integer (atoi).cpp
- Sum of Root To Leaf Binary Numbers.cpp
- Valid Mountain Array.cpp
- Word Pattern.cpp
- Binary Tree Level Order Traversal.cpp
- Binary Tree Right Side View.cpp
- Fibonacci Number.cpp
- Wiggle Subsequence.cpp
- Candy.py
- Lowest Common Ancestor of a Binary Tree.py
- Max Consecutive Ones III.py
- Out of Boundary Paths.py
- Redundant Connection.py
- Remove All Adjacent Duplicates In String.py
- Candy.cpp
- Construct Binary Tree from Preorder and Inorder Traversal.cpp
- Count of Smaller Numbers After Self.cpp
- Generate Parentheses.cpp
- Interleaving String.cpp
- Jump Game VI.cpp
- K Inverse Pairs Array.cpp
- Longest Consecutive Sequence.cpp
- Lowest Common Ancestor of a Binary Tree.cpp
- Matchsticks to Square.cpp
- Max Area of Island.cpp
- Max Consecutive Ones III.cpp
- Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts.cpp
- Maximum Performance of a Team.cpp
- Maximum Units on a Truck.cpp
- Min Cost Climbing Stairs.cpp
- Minimum Number of Refueling Stops.cpp
- My Calendar I.cpp
- Number of Matching Subsequences.cpp
- Number of Subarrays with Bounded Maximum.cpp
- Open the Lock.cpp
- Out of Boundary Paths.cpp
- Palindrome Pairs.cpp
- Pascal's Triangle.cpp
- Range Sum Query - Mutable.cpp
- Redundant Connection.cpp
- Remove All Adjacent Duplicates In String.cpp
- Reverse Linked List II.cpp
- Stone Game VII.cpp
- Swim in Rising Water.cpp
- Binary Tree Cameras.cpp
- Delete Operation for Two Strings.cpp
- Furthest Building You Can Reach.cpp
- Kth Largest Element in an Array.cpp
- Longest String Chain.cpp
- Longest Substring Without Repeating Characters.cpp
- Maximum Erasure Value.cpp
- Merge Sorted Array.cpp
- Minimum Operations to Reduce X to Zero.cpp
- N Queens II.cpp
- Remove Palindromic Subsequences.cpp
- Search Suggestions System.cpp
- Triangle.cpp
- Two Sum II - Input Array Is Sorted.cpp
- Arithmetic Slices.cpp
- Binary Seach.cpp
- Boats to Save People.cpp
- Broken Calculator.cpp
- Champagne Tower.cpp
- Copy List with Random Pointer.cpp
- Count All Valid Pickup and Delivery Options.cpp
- Counting Bits.cpp
- Delete and Earn.cpp
- Is Subsequence.cpp
- Linked List Cycle.cpp
- Maximum Frequency Stack.cpp
- Merge Two Sorted Lists.cpp
- Minimum Domino Rotations For Equal Row.cpp
- Minimum Remove to Make Valid Parentheses.cpp
- Partition Labels.cpp
- Remove Duplicate Letters.cpp
- Remove Duplicates from Sorted List II.cpp
- Rotate List.cpp
- Score of Parentheses.cpp
- Search a 2D Matrix.cpp
- Search in Rotated Sorted Array II.cpp
- Simplify Path.cpp
- Smallest String With A Given Numeric Value.cpp
- Split Array Largest Sum.cpp
- The K Weakest Rows in a Matrix.cpp
- Two City Scheduling.cpp
- Valid Parantheses.cpp
- Validate Stack Sequences.cpp
- Arithmetic Slices.java
- Binary Search.java
- Boats to Save People.java
- Broken Calculator.java
- Champagne Tower.java
- Copy List with Random Pointer.java
- Count All Valid Pickup and Delivery Options.java
- Counting Bits.java
- Delete and Earn.java
- Is Subsequence.java
- Linked List Cycle.cpp
- Maximum Frequency Stack.java
- Merge Two Sorted Lists.java
- Minimum Domino Rotations For Equal Row.java
- Partition Labels.java
- Remove Duplicate Letters.java
- Remove Duplicates from Sorted List II.java
- Rotate List.java
- Score of Parentheses.java
- Smallest String With A Given Numeric Value.java
- Two City Scheduling.java
- Valid Parentheses.java
- Binary Search.py
- Broken Calculator.py
- Copy List with Random Pointer.py
- Count All Valid Pickup and Delivery Options.py
- Counting Bits.py
- Is Subsequence.py
- Linked List Cycle.py
- Merge Two Sorted Lists.py
- Partition Labels.py
- Remove Duplicates from Sorted List II.cpp
- Rotate List.py
- Smallest String With A Given Numeric Value.py
- Two City Scheduling.py
- Valid Parantheses.py
- Maximum Odd Binary Number.cpp
- Remove Nth Node From End of List.cpp
- Squares of a Sorted Array.cpp
- 132 Pattern.cpp
- Backspace String Compare.cpp
- Check If a String Contains All Binary Codes of Size K.cpp
- Count Sorted Vowel Strings.cpp
- Implement Stack using Queues.cpp
- Remove All Adjacent Duplicates in String II.cpp
- Shortest Unsorted Continuous Subarray.cpp
- Sort Array By Parity.cpp
- Check if Word Equals Summation of Two Words.py
- Maximum Value after Insertion.py
- Clear digits.java
- Count Number of Bad Pairs.java
- Design a Number Container System.java
- 4 Sum.cpp
- Binary Tree Pruning.cpp
- Count Vowels Permutation.cpp
- Custom Sort String.cpp
- Decode Ways II.cpp
- Find K Closest Elements.cpp
- Find Median from Data Stream.cpp
- Find Peak Element.cpp
- Gray Code.cpp
- Isomorphic Strings.cpp
- Kth Smallest Element in a Sorted Matrix.cpp
- Longest Increasing Subsequence.cpp
- Lowest Common Ancestor of a Binary Search Tree.cpp
- Max Sum of Rectangle No Larger Than K.cpp
- Maximum Length of Repeated Subarray.cpp
- Partition Array into Disjoint Intervals.cpp
- Push Dominoes.cpp
- Reduce Array Size to The Half.cpp
- Reshape the Matrix.cpp
- Reverse Nodes in k-Group.cpp
- Shuffle an Array.cpp
- Three Equal Parts.cpp
- Valid Triangle Number.cpp
- 4 Sum.py
- Binary Tree Pruning.py
- Count Vowels Permutation.py
- Custom Sort String.py
- Decode Ways II.py
- Find K Closest Elements.py
- Find Median from Data Stream.py
- Find Peak Element.py
- Gray Code.py
- Isomorphic Strings.py
- Kth Smallest Element in a Sorted Matrix.py
- Longest Increasing Subsequence.py
- Lowest Common Ancestor of a Binary Search Tree.py
- Max Sum of Rectangle No Larger Than K.py
- Maximum Length of Repeated Subarray Maximum Length of Repeated Subarray.py
- Partition Array into Disjoint Intervals.py
- Reduce Array Size to The Half.py
- Reshape the Matrix.py
- Reverse Nodes in k-Group.py
- Shuffle an Array.py
- Three Equal Parts.py
- Valid Triangle Number.py
- Convert Binary Number In a LL To Integer.cpp
- Convert Sorted List to BST.cpp
- Delete Node in a Linked List.py
- Design Linked List.cpp
- Merge K sorted Linked List.cpp
- Palindrome Linked List.cpp
- Pointers.cpp
- Remove Nodes From Linked List.py
- Remove Zero Sum Consecutive Nodes from Linked List.cpp
- Reverse A Linked List II.cpp
- Rotate a List(Anti-Clockwise).cpp
- Rotate a List(Clockwise).cpp
- Most Frequent Prime.py
- Number of Laser Beams in a Bank.java
- Count of zeroes in number.py
- First Index of element in array.py
- Last Index of number in array.py
- Pair Star.cpp
- Print all Permutations.cpp
- Print all Possible Decodings of a given Digit Sequence.cpp
- Print all subsets of an array.cpp
- Print Keypad Combinations Code.cpp
- Recursive program to replace all occurrences of pi with 3.14 in a given string.cpp
- Recursively remove all adjacent duplicates.cpp
- Remove all occurrences of a character in a string.cpp
- Staircase.cpp
- String To Integer.cpp
- Tower Of Hanoi.cpp
- Count distinct elements in every window.py
- Defuse the Bomb.py
- First negative in every window of size k.py
- Maximum Average Subarray I.py
- Maximum MEX from all subarrays of length K.py
- Minimum Recolors to Get K Consecutive Black Blocks.py
- Minimum Swaps to Group All 1's Together II.py
- Sum of minimum and maximum elements of all subarrays of size k.py
- Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit.java
- Repeated DNA Sequences.py
- Height checker.java
- Relative Sort Array.java
- Sort colors.java
- Bubble Sort.py
- Insertion sort.py
- Merge sort.py
- Quick Sort.py
- Selection sort.py
- Check Redundant Brackets.cpp
- Minimum Bracket Reversal.cpp
- Reverse Queue.cpp
- Reverse Stack.cpp
- Stock span.cpp
- Balanced Parenthesis.cpp
- Check Redundant Brackets.cpp
- Evaluate Expression.py
- Queue using LL.cpp
- Queue.cpp
- QueueSTL.cpp
- Stack Implementation using Arrays.cpp
- Stack using LL.cpp
- StackSTL.cpp
- Group of 3.cpp
- Count Prefix and Suffix Pairs I.py
- String Compression.cpp
- Binary Tree Zigzag Level Order Traversal.cpp
- Capacity To Ship Packages Within D Days.cpp
- Construct Quad Tree.cpp
- Find Duplicate Subtrees.cpp
- Inorder Traversal Iterative.cpp
- Kth Smallest Element In Tree.py
- Next Greater Number BST.py
- Path to given node.java
- Print Level Wise.cpp
- Vertical sum.py
- Find the Length of the Longest Common Prefix.py
- Sum of Square Numbers.java
- Bubble Sort LL.cpp
- Buy the Ticket.cpp
- Check If One String Is Rotation of Another.java
- Check If String Is Palindrome After At Most One Deletion.java
- Check If Two Strings Are Isomorphic.java
- Check If Word Is Valid After Substitutions.java
- Compare two linked list.cpp
- Convert sorted array into BST.cpp
- CountNoOfNodesInBTree.cpp
- Delete duplicate-value nodes from a sorted linked list.cpp
- Delete every N nodes.cpp
- Elements appearing Thrice.java
- Even After odd Linked List.cpp
- Find a node in LL.cpp
- Find Duplicate Number.java
- Find Extra Character.java
- Find First and Last Position of Element in Sorted Array.py
- Find Path in BST.cpp
- Find Two Unique Numbers.java
- Generate Binary Numbers.java
- heightOfABTree.cpp
- Inserting A Node at a given position in Linked List.c
- Inserting a Node Into a Sorted Doubly Linked List.cpp
- Is Subsequence.java
- Majority Element.java
- Merge Sort in LL.cpp
- Merge two Sorted Linked List.cpp
- Merge two sorted LL.cpp
- Midpoint of LL.cpp
- Minimum Count.cpp
- Mirror a BinaryTree.cpp
- Monotonic Array.java
- Partition Array into Disjoint Intervals.java
- PostOrder of BTree.cpp
- Power of 2.java
- PreOrder of BTree..cpp
- Print Elements in Range in BST.cpp
- Print in Reverse.cpp
- README.md
- Remove Adjacent Duplicates in String.java
- Remove K Digits.java
- Reverse a LL(Iteratively).cpp
- Reverse LL(Recursively).cpp
- Search in BST.cpp
- Squares of a Sorted Array.java
- SwapTwoNodesinLL.cpp
// repository documentation
Was this content helpful?
(0 ratings)
