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
kTop
Heap/Top k numbers in a stream.cpp:14
Function
kWeakestRows
Arrays/Binary Search/The K Weakest Rows in a Matrix.cpp:170
Method
kWeakestRows
Arrays/Binary Search/The K Weakest Rows in a Matrix.cpp:33
Method
kadanesMax
Arrays/Maximum Sum Circular Subarray.cpp:12
Method
kadanesMin
Arrays/Maximum Sum Circular Subarray.cpp:24
Method
kahnsAlgo
Graph/Topological Sorting/Alien Dictionary.cpp:80
Method
kidsWithCandies
Arrays/Kids With the Greatest Number of Candies.cpp:9
Function
knapsack
DP/Knapsack Series/0 - 1 Knapsack Problem Recursive.cpp:157
Method
knapsack
DP/Knapsack Series/0 - 1 Knapsack Problem BottomUp.cpp:15
Method
knapsack
DP/Knapsack Series/0 - 1 Knapsack Problem Recursive.cpp:36
Method
knapsack
DP/Knapsack Series/0 - 1 Knapsack Problem Space Optimised.cpp:15
Function
knightDialer
DP/Knight Dialer.cpp:157
Method
knightDialer
DP/Knight Dialer.cpp:49
Method
knightProbability
DP/Knight Probability in Chessboard.cpp:38
Method
kosaraju
Function to find number of strongly connected components in the graph.
Graph/Strongly Connected Components (Kosaraju's Algo).cpp:43
Method
kthCharacter
strings/Easy Tagged/Find the K-th Character in String Game I.cpp:15
Method
kthCharacter
Recursion/Find the K-th Character in String Game II.cpp:15
Method
kthGrammar
Recursion/K-th Symbol in Grammar.cpp:14
Method
kthSmallest
Arrays/2-D Array/Kth Smallest Element in a Sorted Matrix.cpp:9
Method
kthSmallestPrimeFraction
Heap/K-th Smallest Prime Fraction.cpp:14
Method
kthSmallestProduct
Arrays/Binary Search/Kth Smallest Product of Two Sorted Arrays.cpp:66
Method
ladderLength
Graph/Word_Ladder.cpp:22
Function
largestCombination
Bit_Magic/Largest Combination With Bitwise AND Greater Than Zero.cpp:95
Method
largestCombination
Bit_Magic/Largest Combination With Bitwise AND Greater Than Zero.cpp:14
Method
largestComponentSize
Graph/Largest_Component_Size_by_Common_Factor.cpp:31
Method
largestDivisibleSubset
DP/LIS & Variants/Largest Divisible Subset.cpp:33
Function
largestGoodInteger
strings/Easy Tagged/Largest 3-Same-Digit Number in String.cpp:29
Method
largestGoodInteger
strings/Easy Tagged/Largest 3-Same-Digit Number in String.cpp:12
Function
largestIsland
Graph/BFS_DFS/Making A Large Island.cpp:360
Method
largestIsland
Graph/BFS_DFS/Making A Large Island.cpp:62
Method
largestLocal
Arrays/2-D Array/Leetcode Easy/Largest Local Values in a Matrix.cpp:25
Method
largestMagicSquare
Arrays/2-D Array/Largest Magic Square.cpp:15
Function
largestNumber
Arrays/Largest Number.cpp:69
Method
largestNumber
Arrays/Largest Number.cpp:22
Method
largestOddNumber
strings/Easy Tagged/Largest Odd Number in String.cpp:13
Method
largestOverlap
Arrays/2-D Array/Image Overlap.cpp:43
Method
largestPathValue
Graph/Topological Sorting/Largest Color Value in a Directed Graph.cpp:15
Function
largestPerimeter
Greedy/Find Polygon With the Largest Perimeter.cpp:40
Method
largestPerimeter
Arrays/Largest Perimeter Triangle.cpp:16
Method
largestPerimeter
Greedy/Find Polygon With the Largest Perimeter.cpp:14
Method
largestRectangleArea
Stack/Largest_Rectangle_in_Histogram.cpp:55
Method
largestSquareArea
Mathematical/Geometry/Find the Largest Area of Square Inside Two Rectangles.cpp:16
Function
largestSubmatrix
Arrays/2-D Array/Largest Submatrix With Rearrangements.cpp:168
Method
largestSubmatrix
Arrays/2-D Array/Largest Submatrix With Rearrangements.cpp:14
Method
largestTriangleArea
Mathematical/Leetcode Easy/Largest Triangle Area.cpp:15
Method
largestValues
Tree/Find Largest Value in Each Tree Row.cpp:13
Method
largestVariance
strings/Substring With Largest Variance.cpp:19
Method
lastOccur
Arrays/Element Appearing More Than 25% In Sorted Array.cpp:81
Method
lastStoneWeight
Heap/Last Stone Weight.cpp:10
Method
lastStoneWeightII
DP/Last Stone Weight II.cpp:26
Method
latestDayToCross
Arrays/Binary Search/Last Day Where You Can Still Cross.cpp:56
Function
lcaDeepestLeaves
Tree/Lowest Common Ancestor of Deepest Leaves.cpp:158
Method
lcaDeepestLeaves
T.C : O(n) S.C : O(maxD) system recursion stack space
Tree/Lowest Common Ancestor of Deepest Leaves.cpp:46
Method
lcs
DP/Printing All Longest Common Subsequences.cpp:4
Method
leadsToDestination
Graph/All Paths from Source Lead to Destination.cpp:74
Function
leafSimilar
Tree/Leaf-Similar Trees.cpp:42
Method
leafSimilar
Tree/Leaf-Similar Trees.cpp:26
Method
leastInterval
Heap/Task Scheduler.cpp:16
Method
leastInterval
Greedy/Task Scheduler.cpp:11
Method
leftHeight
Tree/Count Complete Tree Nodes.cpp:10
Method
leftRightDifference
Arrays/Leetcode Easy/Left and Right Sum Differences.cpp:14
Method
leftmostBuildingQueries
Segment Tree/Find Building Where Alice and Bob Can Meet.cpp:67
Method
lemonadeChange
Arrays/Leetcode Easy/Lemonade Change.cpp:15
Function
lenLongestFibSubseq
DP/Length of Longest Fibonacci Subsequence.cpp:130
Method
lenLongestFibSubseq
DP/Length of Longest Fibonacci Subsequence.cpp:15
Method
lenOfLongSubarr
Sliding Window/Longest Sub-Array with Sum K.cpp:9
Method
lenOfVDiagonal
DP/DP on Grids/Length of Longest V-Shaped Diagonal Segment.cpp:44
Function
lengthAfterTransformations
Mathematical/Total Characters in String After Transformations II.cpp:129
Method
lengthAfterTransformations
Mathematical/Total Characters in String After Transformations II.cpp:50
Method
lengthAfterTransformations
HashMap/Total Characters in String After Transformations I.cpp:16
Method
lengthLinkedList
Linked List/Remove Nth Node From End of List.cpp:15
Function
lengthOfLIS
DP/LIS & Variants/Longest Increasing Subsequence.cpp:36
Method
lengthOfLIS
DP/LIS & Variants/Longest Increasing Subsequence.cpp:46
Function
lengthOfLastWord
strings/Easy Tagged/Length of Last Word.cpp:85
Method
lengthOfLastWord
strings/Easy Tagged/Length of Last Word.cpp:14
Method
lengthOfLongestSubstring
Arrays/Two Pointer/Longest_Substring_Without_Repeating_Characters.cpp:10
Method
lessThanEqualToCount
This function is in itself a Question (Find rank of an element in a sorted matrix) IMPORTANT
Arrays/2-D Array/Kth Smallest Element in a Sorted Matrix.cpp:29
Method
letterCombinations
Backtracking/Letter Combinations of a Phone Number.cpp:39
Method
levelOrder
Tree/N-Ary Tree/N-ary Tree Level Order Traversal.cpp:8
Method
lexicalOrder
Recursion/Lexicographical Numbers.cpp:32
Function
lexicographicallySmallestArray
Arrays/Make Lexicographically Smallest Array by Swapping Elements.cpp:131
Method
lexicographicallySmallestArray
Arrays/Make Lexicographically Smallest Array by Swapping Elements.cpp:15
Method
link
Graph/Disjoint Set/Max Area of Island.cpp:87
Method
lis
DP/LIS & Variants/Russian Doll Envelopes.cpp:15
Method
lock
Design/Operations on Tree.cpp:27
Method
longSubarrWthSumDivByK
Arrays/Longest subarray with sum divisible by K.cpp:17
Method
longestArithSeqLength
DP/Longest Arithmetic Subsequence.cpp:33
Function
longestBalanced
Segment Tree/Longest Balanced Subarray II.cpp:262
Method
longestBalanced
Arrays/Two Pointer/Longest Balanced Subarray I.cpp:15
Method
longestBalanced
Arrays/Two Pointer/Longest Balanced Substring I.cpp:30
Method
longestBalanced
HashMap/Longest Balanced Substring II.cpp:50
Method
longestBalanced
Segment Tree/Longest Balanced Subarray II.cpp:15
Method
longestCommonPrefix
Trie/Find the Length of the Longest Common Prefix.cpp:15
Function
longestCommonSubsequence
DP/Longest Common Subsequence.cpp:117
Method
longestCommonSubsequence
DP/Longest Common Subsequence.cpp:28
Method
longestCommonSubstr
DP/Longest Common Substring.cpp:28
Method
longestConsecutive
Tree/Binary Tree Longest Consecutive Sequence I.cpp:24
Method
longestConsecutive
HashMap/Longest_Consecutive_Sequence.cpp:12
Method
longestConsecutive
HashSet/Longest Consecutive Sequence.cpp:24
Method
longestConsecutive2
Tree/Binary Tree Longest Consecutive Sequence II.cpp:70
← previous
next →
1,901–2,000 of 3,557, ranked by callers