Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MAZHARMIK/Interview_DS_Algo
/ functions
Functions
3,557 in github.com/MAZHARMIK/Interview_DS_Algo
⨍
Functions
3,557
◇
Types & classes
1,501
Method
solve
Sliding Window/Take K of Each Character From Left and Right.cpp:18
Method
solve
Sliding Window/Maximum Points You Can Obtain from Cards.cpp:64
Method
solve
Sliding Window/Maximize the Confusion of an Exam.cpp:42
Method
solve
Sliding Window/Count Complete Substrings.cpp:13
Method
solve
Sliding Window/Permutation in String.cpp:16
Method
solve
Recursion/K-th Smallest in Lexicographical Order.cpp:15
Method
solve
Recursion/Regular Expression Matching.cpp:46
Method
solve
Recursion/Power Set.cpp:16
Method
solve
Recursion/Integer to English Words.cpp:21
Method
solve
Recursion/Different Ways to Add Parentheses.cpp:16
Method
solve
Recursion/Subsets.cpp:24
Method
solve
Recursion/Rat in a Maze Problem - I.cpp:18
Method
solve
Recursion/Lexicographical Numbers.cpp:16
Method
solve
Bit_Magic/Leetcode Easy/Sum of All Subset XOR Totals.cpp:16
Method
solve
Design/Design Spreadsheet.cpp:35
Method
solve
Greedy/Greatest Sum Divisible by Three.cpp:58
Method
solve
Greedy/Longest Binary Subsequence Less Than or Equal to K.cpp:17
Method
solveForAlice
t[2][n+1][n+1] - 2*(n+1)*(n+1) ~n^2 * n ~ O(n^3)
DP/Game Strategy/Stone Game II.cpp:17
Method
solveNQueens
Backtracking/N-Queens.cpp:88
Method
solveOp
Stack/Parsing A Boolean Expression.cpp:15
Method
solveQueries
HashMap/Closest Equal Element Queries.cpp:15
Method
solveSudoku
Backtracking/Sudoku Solver.cpp:69
Method
solve_BFS
Arrays/Jump Game IV.cpp:15
Method
solve_BottomUp
Greedy/Two_City_Scheduling.cpp:84
Method
solve_DFS
Arrays/Jump Game IV.cpp:102
Method
solve_bottom_up
DP/Minimum Cost For Tickets.cpp:95
Method
solve_dp
Sliding Window/Maximum Points You Can Obtain from Cards.cpp:92
Method
solve_iter
Approach-2 DP(of APproach-1) (TLE)
DP/Super Egg Drop.cpp:41
Method
solve_memoized
DP/Burst Balloons.cpp:9
Method
solve_recurMemo
Greedy/Two_City_Scheduling.cpp:51
Method
solve_sliding_window
Sliding Window/Maximum Points You Can Obtain from Cards.cpp:17
Method
solve_topDown
DP/Burst Balloons.cpp:23
Method
sortArray
Arrays/Sort an Array.cpp:10
Function
sortArrayByParity
Arrays/Sort Array By Parity.cpp:84
Method
sortArrayByParity
Arrays/Sort Array By Parity.cpp:12
Method
sortByBits
Bit_Magic/Sort Integers by The Number of 1 Bits.cpp:28
Function
sortColors
Arrays/Sort Colors.cpp:102
Method
sortColors
Arrays/Sort Colors.cpp:16
Method
sortColors
Arrays/Sort Colors.cpp:93
Method
sortColors
Arrays/Sort Colors.cpp:137
Method
sortComp
Arrays/Intervals_Based_Qn/Meeting Rooms II.cpp:33
Method
sortDiagonal
Arrays/2-D Array/Sort Matrix by Diagonals.cpp:17
Method
sortFunc
I am sorting to give priority to the char which has highest frequency Because I would want it to come first in any button(key)
HashMap/Minimum Number of Pushes to Type Word II.cpp:16
Function
sortItems
Graph/Topological Sorting/Sort Items by Groups Respecting Dependencies.cpp:56
Function
sortJumbled
strings/Sort the Jumbled Numbers.cpp:151
Method
sortJumbled
strings/Sort the Jumbled Numbers.cpp:24
Method
sortMatrix
Arrays/2-D Array/Sort Matrix by Diagonals.cpp:44
Function
sortVowels
strings/Sort Vowels in a String.cpp:90
Method
sortVowels
strings/Sort Vowels in a String.cpp:17
Method
sortedInsert
Linked List/Sorted insert for circular linked list.cpp:12
Method
sortedListToBST
Linked List/Convert Sorted List to Binary Search Tree.cpp:15
Function
sortedSquares
Arrays/Leetcode Easy/Squares of a Sorted Array.cpp:80
Method
sortedSquares
Arrays/Leetcode Easy/Squares of a Sorted Array.cpp:15
Method
soupServings
DP/Soup Servings.cpp:39
Function
spanningTree
Graph/Minimum Spanning Tree (Prim's).cpp:65
Method
spanningTree
Function to find sum of weights of edges of the Minimum Spanning Tree.
Graph/Minimum Spanning Tree (Prim's).cpp:15
Method
spanningTree
Function to find sum of weights of edges of the Minimum Spanning Tree.
Graph/Minimum Spanning Tree (Kruskal's Algorithm).cpp:65
Function
specialArray
Arrays/Leetcode Easy/Special Array With X Elements Greater Than or Equal X.cpp:138
Method
specialArray
Arrays/Leetcode Easy/Special Array With X Elements Greater Than or Equal X.cpp:16
Function
specialTriplets
HashMap/Count Special Triplets.cpp:121
Method
specialTriplets
HashMap/Count Special Triplets.cpp:17
Method
spellchecker
HashMap/Vowel Spellchecker.cpp:59
Method
spiralMatrix
Arrays/2-D Array/Spiral Matrix IV.cpp:14
Method
spiralMatrixIII
Arrays/2-D Array/Spiral Matrix III.cpp:14
Method
spiralOrder
Arrays/2-D Array/Spiral Matrix.cpp:12
Method
splitListToParts
Linked List/Split Linked List in Parts.cpp:15
Method
splitPainting
Line Sweep Technique/Describe the Painting.cpp:17
Method
step
Design/Walking Robot Simulation II.cpp:46
Method
stoneGame
DP/Game Strategy/Stone Game.cpp:31
Method
stoneGameII
DP/Game Strategy/Stone Game II.cpp:45
Method
stoneGameIII
DP/Game Strategy/Stone Game III.cpp:31
Method
storeRootToLeaf
Tree/Count the nodes at distance K from leaf.cpp:16
Method
strStr
strings/Find the Index of the First Occurrence in a String.cpp:10
Method
strangePrinter
DP/Strange Printer.cpp:47
Method
stringIndices
Trie/Longest Common Suffix Queries.cpp:71
Method
stringMatching
strings/Easy Tagged/String Matching in an Array.cpp:16
Method
subarrayBitwiseORs
HashSet/Bitwise ORs of Subarrays.cpp:15
Function
subarraySum
Arrays/Subarray Sum Equals K (O(n)).cpp:37
Method
subarraySum
Arrays/Subarray Sum Equals K (O(n)).cpp:13
Method
subarraysDivByK
Arrays/Subarray Sums Divisible by K .cpp:11
Function
subarraysWithKDistinct
Sliding Window/Subarrays with K Different Integers.cpp:142
Method
subarraysWithKDistinct
Sliding Window/Subarrays with K Different Integers.cpp:46
Method
subsetSum
DP/Partition Equal Subset Sum.cpp:62
Method
subsetSum
DP/Target Sum.cpp:79
Function
subsetXORSum
Bit_Magic/Leetcode Easy/Sum of All Subset XOR Totals.cpp:142
Method
subsetXORSum
Bit_Magic/Leetcode Easy/Sum of All Subset XOR Totals.cpp:30
Method
subsets
Recursion/Subsets.cpp:36
Method
subsets
Bit_Magic/Subsets.cpp:15
Method
subsetsWithDup
Backtracking/Subsets II.cpp:19
Method
successfulPairs
Arrays/Two Pointer/Successful Pairs of Spells and Potions.cpp:17
Method
successfulPairs
Arrays/Binary Search/Successful Pairs of Spells and Potions.cpp:15
Method
suggestedProducts
Design/Search_Suggestions_System.cpp:73
Method
sum
Tree/Count Nodes Equal to Average of Subtree.cpp:15
Method
sum
Tree/Easy/Sum of Left Leaves.cpp:15
Method
sumEvenAfterQueries
Arrays/Sum of Even Numbers After Queries.cpp:9
Method
sumFourDivisors
Mathematical/Four Divisors.cpp:40
Method
sumIfFourDivisors
Mathematical/Four Divisors.cpp:15
Method
sumNumbers
Tree/Sum Root to Leaf Numbers.cpp:34
Method
sumOfDistancesInTree
Graph/Sum of Distances in Tree.cpp:44
Function
sumOfLeftLeaves
Tree/Easy/Sum of Left Leaves.cpp:111
← previous
next →
3,301–3,400 of 3,557, ranked by callers