Skip to content

Saharsh979/CP-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CP-Algorithms

A collection of algorithms & Data Structures in C++

Leetcode

Problem Solution
Add Binary Solution
Array Partition Solution
Diagonal Traverse Solution
Find Pivot Index Solution
Implement Str Str Solution
Largest Number At Least Twice of Others Solution
Longest Common Prefix Solution
Max Consecutive Ones Solution
Minimum Size Subarray Sum Solution
Move Zeros Solution
Pascals Triangle 2 Solution
Remove Duplicates from Array Solution
Remove Element Solution
Reverse String Solution
Reverse Words in a String Solution
Rotate Array Solution
Spiral Matrix Solution
Two Sum Solution

Graphs

Problem Solution
All Possible Paths Graphs Solution
Graph Network Solution
Min no of Nodes to reach all vertices Solution
Minimum Path Sums Solution
Number of Provinces Solution
Safe Spots Solution
Bipartite Grapg test Solution
Maximize Malware Spread Solution

Dynamic Programming

Problem Solution
Decode Ways Solution
Longest Palindromic Subsequence DP Solution
Longest Palindromic Substring DP Solution
Min Cost Climbing Stairs DP Solution
Palindromic Substrings DP Solution
Range Sum Range DP. Solution
IS Subsequence Dp. Solution
Coin Change 2 Solution
Coin Change 1 Solution
Count Sorted Vowels Solution
Count Square Submatrices Solution
Jump Game 2 Solution
Jump Game Solution
Maximum Length of Repeated Subarray Solution
Stone Game 1 Solution
Stone Game 6 Solution
Wildcard Matching Solution

Stack

Problem Solution
132 Pattern Medium Solution
Daily Temperatures Stack Solution
Largest Histogram Stack Solution
Next Greater Element 1 Stack Solution
Next Greater Element 2 Stack Solution
Shortest Unsorted Continuos Subarray Stack Solution

Codeforces

Problem Solution
A_ABC_String Solution
Dense_Array Solution
A_K_th_Largest_Value Solution
Berland Crossword Solution
B_Omkar_and_Last_Class_of_Math. Solution
1D sukoban Solution
Social Distance C Solution
E_Polygon Solution

Leetcode String

Problem Solution
tring Complex Number Multiplication Leetcode Solution
String balanced paranthesis Solution
Strings Anagrams Leetcode Solution
Strings Bulb Switcher. Solution
Strings Find kth bit in nth binary string Solution
Strings MaxNumber of Occurences of a substring. Solution
Strings Min Number of Frogs Croaking Solution
Strings Min Swap to make string equal Solution
Strings Number of steps to reduce a binary number to 0. Solution
Strings Reorganize String Solution
Strings Valid Palindrome 2 Solution

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published