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
getCoord
Arrays/Snakes and Ladders.cpp:16
Method
getCoordinate
DP/Minimum Distance to Type a Word Using Two Fingers.cpp:18
Method
getCost
Arrays/Binary Search/Minimum Cost to Make Array Equal.cpp:11
Method
getCount
Design/Implement Router.cpp:72
Method
getCountDigits
Mathematical/Add Digits.cpp:12
Method
getCountVector
Mathematical/Reordered Power of 2.cpp:192
Method
getDecimalFromBinary
Bit_Magic/Shortest Subarray With OR at Least K II.cpp:23
Function
getDecimalValue
Linked List/Leetcode Easy/Convert Binary Number in a Linked List to Integer.cpp:106
Method
getDecimalValue
Linked List/Leetcode Easy/Convert Binary Number in a Linked List to Integer.cpp:26
Method
getDescentPeriods
Arrays/Number of Smooth Descent Periods of a Stock.cpp:15
Method
getDigitSum
Arrays/Max Sum of a Pair With Equal Sum of Digits.cpp:15
Method
getDir
Design/Walking Robot Simulation II.cpp:55
Function
getDirections
Tree/Step-By-Step Directions From a Binary Tree Node to Another.cpp:251
Method
getDirections
Tree/Step-By-Step Directions From a Binary Tree Node to Another.cpp:60
Method
getDistance
DP/Minimum Distance to Type a Word Using Two Fingers.cpp:23
Method
getFinalState
Heap/Leetcode Easy/Final Array State After K Multiplication Operations I.cpp:15
Method
getFront
Design/Design Circular Queue.cpp:70
Function
getHappyString
Backtracking/The k-th Lexicographical String of All Happy Strings of Length n.cpp:164
Method
getHappyString
Backtracking/The k-th Lexicographical String of All Happy Strings of Length n.cpp:36
Method
getHashValue
Design/Design HashSet.cpp:34
Method
getHint
HashMap/Bulls and Cows.cpp:8
Method
getIndex
Mathematical/Fancy Sequence.cpp:57
Method
getIntFromChar
DP/DP on Grids/Number of Paths with Max Score.cpp:20
Method
getIntervals
Arrays/Intervals_Based_Qn/Data Stream as Disjoint Intervals.cpp:20
Method
getKthAncestor
Binary Lifting/Kth Ancestor of a Tree Node.cpp:41
Function
getLastMoment
Arrays/Simulation/Last Moment Before All Ants Fall Out of a Plank.cpp:32
Method
getLastMoment
Arrays/Simulation/Last Moment Before All Ants Fall Out of a Plank.cpp:12
Method
getLeftMax
Arrays/Trapping Rain Water (without stack).cpp:14
Method
getLength
Linked List/Reverse Nodes in k-Group.cpp:120
Function
getLengthOfOptimalCompression
strings/String Compression II.cpp:199
Method
getLengthOfOptimalCompression
strings/String Compression II.cpp:45
Method
getLongestSubsequence
Arrays/Leetcode Easy/Longest Unequal Adjacent Groups Subsequence I.cpp:14
Method
getMappedNum
strings/Sort the Jumbled Numbers.cpp:15
Method
getMax
DP/Maximum Points After Collecting Coins From All Nodes.cpp:156
Method
getMaxDepth
Mathematical/Number of Ways to Assign Edge Weights I.cpp:31
Method
getMaxFromEachComp
Graph/Divide Nodes Into the Maximum Number of Groups.cpp:63
Method
getMaxKey
Design/All O`one Data Structure.cpp:110
Method
getMaximumGold
Backtracking/Path with Maximum Gold.cpp:43
Method
getMaximumXor
Bit_Magic/Maximum XOR for Each Query.cpp:14
Function
getMinDistance
Arrays/Leetcode Easy/Minimum Distance to the Target Element.cpp:91
Method
getMinDistance
Arrays/Leetcode Easy/Minimum Distance to the Target Element.cpp:15
Method
getMinKey
Design/All O`one Data Structure.cpp:114
Method
getMinimumDifference
Tree/BST/Minimum Absolute Difference in BST.cpp:30
Method
getModifiedArray
Arrays/Cumulative_Sum(Prefix Array)/Range Addition.cpp:45
Method
getModifiedArray
Arrays/Difference Array Technique/Range Addition.cpp:26
Method
getNSL
This is just we are finding next smaller to each element to left Similar : Leetcode-84
Stack/Sum of Subarray Minimums.cpp:65
Method
getNSR
This is just we are finding next smaller to each element to right Similar : Leetcode-84
Stack/Sum of Subarray Minimums.cpp:86
Method
getNextIndex
find the first job jiska starting point >= currentJob ka end point
DP/Maximum Profit in Job Scheduling.cpp:18
Method
getNextPallindrome
Mathematical/Super_Palindromes.cpp:19
Function
getNoZeroIntegers
Arrays/Leetcode Easy/Convert Integer to the Sum of Two No-Zero Integers.cpp:107
Method
getNoZeroIntegers
Arrays/Leetcode Easy/Convert Integer to the Sum of Two No-Zero Integers.cpp:27
Method
getNode
Trie/Replace Words.cpp:20
Method
getNode
Trie/Palindrome Pairs.cpp:19
Method
getNode
Trie/Implement Trie (Prefix Tree).cpp:22
Method
getNode
Trie/Longest Common Suffix Queries.cpp:28
Method
getNode
Trie/Delete Duplicate Folders in System.cpp:20
Method
getNode
Trie/Word Search II.cpp:20
Method
getNode
Design/Design Add and Search Words Data Structure.cpp:15
Method
getNode
Design/Search_Suggestions_System.cpp:15
Method
getNumOfBouquets
Arrays/Binary Search/Minimum Number of Days to Make m Bouquets.cpp:14
Method
getOrder
Heap/Single-Threaded CPU.cpp:10
Method
getPos
Design/Walking Robot Simulation II.cpp:51
Method
getPrice
Bit_Magic/Maximum Number That Sum of the Prices Is Less Than or Equal to K.cpp:16
Method
getPrimes
Mathematical/Apply Operations to Maximize Score.cpp:27
Function
getProduct
Arrays/Product of the Last K Numbers.cpp:134
Method
getProduct
Arrays/Product of the Last K Numbers.cpp:26
Method
getRandom
Returns a random node's value. */
Linked List/Linked List Random Node.cpp:20
Method
getRandom
Get a random element from the set. */
Design/Insert Delete GetRandom O(1).cpp:44
Method
getReal
strings/Complex Number Multiplication.cpp:15
Method
getRear
Design/Design Circular Queue.cpp:78
Method
getResults
Segment Tree/Block Placement Queries.cpp:15
Method
getReverse
Mathematical/Leetcode Easy/Mirror Distance of an Integer.cpp:15
Method
getReverse
HashMap/Minimum Absolute Distance Between Mirror Pairs.cpp:15
Method
getRightMax
Arrays/Trapping Rain Water (without stack).cpp:22
Method
getRow
Arrays/Pascal's Triangle II.cpp:18
Method
getRow
Arrays/Pascal's Triangle.cpp:33
Method
getScore
Graph/Minimum Score After Removals on a Tree.cpp:35
Method
getScore
Trie/Sum of Prefix Scores of Strings.cpp:45
Function
getSize
Graph/BFS_DFS/Making A Large Island.cpp:514
Function
getSneakyNumbers
Bit_Magic/Leetcode Easy/The Two Sneaky Numbers of Digitville.cpp:109
Method
getSneakyNumbers
Bit_Magic/Leetcode Easy/The Two Sneaky Numbers of Digitville.cpp:15
Method
getSortedStr
Mathematical/Reordered Power of 2.cpp:15
Method
getState
Sliding Window/Maximum Difference Between Even and Odd Frequency II.cpp:15
Function
getSumAbsoluteDifferences
Arrays/Sum of Absolute Differences in a Sorted Array.cpp:82
Method
getSumAbsoluteDifferences
Arrays/Sum of Absolute Differences in a Sorted Array.cpp:13
Method
getSumElements
Arrays/Binary Search/Maximum Value at a Given Index in a Bounded Array.cpp:12
Method
getTokens
strings/Compare Version Numbers.cpp:15
Method
getTotalSum
Tree/Maximum Product of Splitted Binary Tree.cpp:58
Method
getTrieNode
Trie/Find the Length of the Longest Common Prefix.cpp:56
Method
getTrieNode
Trie/Sum of Prefix Scores of Strings.cpp:21
Method
getTrieNode
Design/Map Sum Pairs.cpp:43
Method
getVectorCountFormat
Mathematical/Reordered Power of 2.cpp:74
Method
getWinner
Arrays/Simulation/Find the Winner of an Array Game.cpp:12
Method
getWord
Design/Search_Suggestions_System.cpp:38
Method
getWordsInLongestSubsequence
DP/LIS & Variants/Longest Unequal Adjacent Groups Subsequence II.cpp:34
Method
goodNodes
Tree/Count Good Nodes in Binary Tree.cpp:20
Method
goodTriplets
Segment Tree/Count Good Triplets in an Array.cpp:45
Method
grayCode
Bit_Magic/Gray Code.cpp:49
Method
gridGame
Arrays/Cumulative_Sum(Prefix Array)/Grid Game.cpp:15
Method
groupAnagrams
Arrays/Group Anagrams.cpp:17
← previous
next →
1,601–1,700 of 3,557, ranked by callers