MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

MethodgetCoord
Arrays/Snakes and Ladders.cpp:16
MethodgetCoordinate
DP/Minimum Distance to Type a Word Using Two Fingers.cpp:18
MethodgetCost
Arrays/Binary Search/Minimum Cost to Make Array Equal.cpp:11
MethodgetCount
Design/Implement Router.cpp:72
MethodgetCountDigits
Mathematical/Add Digits.cpp:12
MethodgetCountVector
Mathematical/Reordered Power of 2.cpp:192
MethodgetDecimalFromBinary
Bit_Magic/Shortest Subarray With OR at Least K II.cpp:23
FunctiongetDecimalValue
Linked List/Leetcode Easy/Convert Binary Number in a Linked List to Integer.cpp:106
MethodgetDecimalValue
Linked List/Leetcode Easy/Convert Binary Number in a Linked List to Integer.cpp:26
MethodgetDescentPeriods
Arrays/Number of Smooth Descent Periods of a Stock.cpp:15
MethodgetDigitSum
Arrays/Max Sum of a Pair With Equal Sum of Digits.cpp:15
MethodgetDir
Design/Walking Robot Simulation II.cpp:55
FunctiongetDirections
Tree/Step-By-Step Directions From a Binary Tree Node to Another.cpp:251
MethodgetDirections
Tree/Step-By-Step Directions From a Binary Tree Node to Another.cpp:60
MethodgetDistance
DP/Minimum Distance to Type a Word Using Two Fingers.cpp:23
MethodgetFinalState
Heap/Leetcode Easy/Final Array State After K Multiplication Operations I.cpp:15
MethodgetFront
Design/Design Circular Queue.cpp:70
FunctiongetHappyString
Backtracking/The k-th Lexicographical String of All Happy Strings of Length n.cpp:164
MethodgetHappyString
Backtracking/The k-th Lexicographical String of All Happy Strings of Length n.cpp:36
MethodgetHashValue
Design/Design HashSet.cpp:34
MethodgetHint
HashMap/Bulls and Cows.cpp:8
MethodgetIndex
Mathematical/Fancy Sequence.cpp:57
MethodgetIntFromChar
DP/DP on Grids/Number of Paths with Max Score.cpp:20
MethodgetIntervals
Arrays/Intervals_Based_Qn/Data Stream as Disjoint Intervals.cpp:20
MethodgetKthAncestor
Binary Lifting/Kth Ancestor of a Tree Node.cpp:41
FunctiongetLastMoment
Arrays/Simulation/Last Moment Before All Ants Fall Out of a Plank.cpp:32
MethodgetLastMoment
Arrays/Simulation/Last Moment Before All Ants Fall Out of a Plank.cpp:12
MethodgetLeftMax
Arrays/Trapping Rain Water (without stack).cpp:14
MethodgetLength
Linked List/Reverse Nodes in k-Group.cpp:120
FunctiongetLengthOfOptimalCompression
strings/String Compression II.cpp:199
MethodgetLengthOfOptimalCompression
strings/String Compression II.cpp:45
MethodgetLongestSubsequence
Arrays/Leetcode Easy/Longest Unequal Adjacent Groups Subsequence I.cpp:14
MethodgetMappedNum
strings/Sort the Jumbled Numbers.cpp:15
MethodgetMax
DP/Maximum Points After Collecting Coins From All Nodes.cpp:156
MethodgetMaxDepth
Mathematical/Number of Ways to Assign Edge Weights I.cpp:31
MethodgetMaxFromEachComp
Graph/Divide Nodes Into the Maximum Number of Groups.cpp:63
MethodgetMaxKey
Design/All O`one Data Structure.cpp:110
MethodgetMaximumGold
Backtracking/Path with Maximum Gold.cpp:43
MethodgetMaximumXor
Bit_Magic/Maximum XOR for Each Query.cpp:14
FunctiongetMinDistance
Arrays/Leetcode Easy/Minimum Distance to the Target Element.cpp:91
MethodgetMinDistance
Arrays/Leetcode Easy/Minimum Distance to the Target Element.cpp:15
MethodgetMinKey
Design/All O`one Data Structure.cpp:114
MethodgetMinimumDifference
Tree/BST/Minimum Absolute Difference in BST.cpp:30
MethodgetModifiedArray
Arrays/Cumulative_Sum(Prefix Array)/Range Addition.cpp:45
MethodgetModifiedArray
Arrays/Difference Array Technique/Range Addition.cpp:26
MethodgetNSL
This is just we are finding next smaller to each element to left Similar : Leetcode-84
Stack/Sum of Subarray Minimums.cpp:65
MethodgetNSR
This is just we are finding next smaller to each element to right Similar : Leetcode-84
Stack/Sum of Subarray Minimums.cpp:86
MethodgetNextIndex
find the first job jiska starting point >= currentJob ka end point
DP/Maximum Profit in Job Scheduling.cpp:18
MethodgetNextPallindrome
Mathematical/Super_Palindromes.cpp:19
FunctiongetNoZeroIntegers
Arrays/Leetcode Easy/Convert Integer to the Sum of Two No-Zero Integers.cpp:107
MethodgetNoZeroIntegers
Arrays/Leetcode Easy/Convert Integer to the Sum of Two No-Zero Integers.cpp:27
MethodgetNode
Trie/Replace Words.cpp:20
MethodgetNode
Trie/Palindrome Pairs.cpp:19
MethodgetNode
Trie/Implement Trie (Prefix Tree).cpp:22
MethodgetNode
Trie/Longest Common Suffix Queries.cpp:28
MethodgetNode
Trie/Delete Duplicate Folders in System.cpp:20
MethodgetNode
Trie/Word Search II.cpp:20
MethodgetNode
Design/Design Add and Search Words Data Structure.cpp:15
MethodgetNode
Design/Search_Suggestions_System.cpp:15
MethodgetNumOfBouquets
Arrays/Binary Search/Minimum Number of Days to Make m Bouquets.cpp:14
MethodgetOrder
Heap/Single-Threaded CPU.cpp:10
MethodgetPos
Design/Walking Robot Simulation II.cpp:51
MethodgetPrice
Bit_Magic/Maximum Number That Sum of the Prices Is Less Than or Equal to K.cpp:16
MethodgetPrimes
Mathematical/Apply Operations to Maximize Score.cpp:27
FunctiongetProduct
Arrays/Product of the Last K Numbers.cpp:134
MethodgetProduct
Arrays/Product of the Last K Numbers.cpp:26
MethodgetRandom
Returns a random node's value. */
Linked List/Linked List Random Node.cpp:20
MethodgetRandom
Get a random element from the set. */
Design/Insert Delete GetRandom O(1).cpp:44
MethodgetReal
strings/Complex Number Multiplication.cpp:15
MethodgetRear
Design/Design Circular Queue.cpp:78
MethodgetResults
Segment Tree/Block Placement Queries.cpp:15
MethodgetReverse
Mathematical/Leetcode Easy/Mirror Distance of an Integer.cpp:15
MethodgetReverse
HashMap/Minimum Absolute Distance Between Mirror Pairs.cpp:15
MethodgetRightMax
Arrays/Trapping Rain Water (without stack).cpp:22
MethodgetRow
Arrays/Pascal's Triangle II.cpp:18
MethodgetRow
Arrays/Pascal's Triangle.cpp:33
MethodgetScore
Graph/Minimum Score After Removals on a Tree.cpp:35
MethodgetScore
Trie/Sum of Prefix Scores of Strings.cpp:45
FunctiongetSize
Graph/BFS_DFS/Making A Large Island.cpp:514
FunctiongetSneakyNumbers
Bit_Magic/Leetcode Easy/The Two Sneaky Numbers of Digitville.cpp:109
MethodgetSneakyNumbers
Bit_Magic/Leetcode Easy/The Two Sneaky Numbers of Digitville.cpp:15
MethodgetSortedStr
Mathematical/Reordered Power of 2.cpp:15
MethodgetState
Sliding Window/Maximum Difference Between Even and Odd Frequency II.cpp:15
FunctiongetSumAbsoluteDifferences
Arrays/Sum of Absolute Differences in a Sorted Array.cpp:82
MethodgetSumAbsoluteDifferences
Arrays/Sum of Absolute Differences in a Sorted Array.cpp:13
MethodgetSumElements
Arrays/Binary Search/Maximum Value at a Given Index in a Bounded Array.cpp:12
MethodgetTokens
strings/Compare Version Numbers.cpp:15
MethodgetTotalSum
Tree/Maximum Product of Splitted Binary Tree.cpp:58
MethodgetTrieNode
Trie/Find the Length of the Longest Common Prefix.cpp:56
MethodgetTrieNode
Trie/Sum of Prefix Scores of Strings.cpp:21
MethodgetTrieNode
Design/Map Sum Pairs.cpp:43
MethodgetVectorCountFormat
Mathematical/Reordered Power of 2.cpp:74
MethodgetWinner
Arrays/Simulation/Find the Winner of an Array Game.cpp:12
MethodgetWord
Design/Search_Suggestions_System.cpp:38
MethodgetWordsInLongestSubsequence
DP/LIS & Variants/Longest Unequal Adjacent Groups Subsequence II.cpp:34
MethodgoodNodes
Tree/Count Good Nodes in Binary Tree.cpp:20
MethodgoodTriplets
Segment Tree/Count Good Triplets in an Array.cpp:45
MethodgrayCode
Bit_Magic/Gray Code.cpp:49
MethodgridGame
Arrays/Cumulative_Sum(Prefix Array)/Grid Game.cpp:15
MethodgroupAnagrams
Arrays/Group Anagrams.cpp:17
← previousnext →1,601–1,700 of 3,557, ranked by callers