MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

FunctionfindTargetSumWays
DP/Target Sum.cpp:226
MethodfindTargetSumWays
DP/Target Sum.cpp:38
MethodfindTheCity
Graph/Dijkstra'a Based Problems/Find the City With the Smallest Number of Neighbors at a Threshold Distance.cpp:68
MethodfindTheCity
Graph/Bellman-Ford Based Problems/Find the City With the Smallest Number of Neighbors at a Threshold Distance.cpp:64
MethodfindTheCity
Graph/Floyd Warshall/Find the City With the Smallest Number of Neighbors at a Threshold Distance.cpp:54
FunctionfindTheDifference
strings/Easy Tagged/Find the Difference.cpp:76
MethodfindTheDifference
strings/Easy Tagged/Find the Difference.cpp:13
FunctionfindTheLongestSubstring
Sliding Window/Find the Longest Substring Containing Vowels in Even Counts.cpp:187
MethodfindTheLongestSubstring
Sliding Window/Find the Longest Substring Containing Vowels in Even Counts.cpp:20
FunctionfindThePrefixCommonArray
Arrays/Find the Prefix Common Array of Two Arrays.cpp:142
MethodfindThePrefixCommonArray
Arrays/Find the Prefix Common Array of Two Arrays.cpp:15
FunctionfindTheString
DP/DP on Strings/Find the String with LCP.cpp:286
MethodfindTheString
DP/DP on Strings/Find the String with LCP.cpp:31
FunctionfindTheWinner
Recursion/Find the Winner of the Circular Game.cpp:121
MethodfindTheWinner
Recursion/Find the Winner of the Circular Game.cpp:17
MethodfindTopXSum
freq, element
Heap/Leetcode Easy/Find X-Sum of All K-Long Subarrays I.cpp:16
MethodfindTotalSum
Tree/Maximum Product of Splitted Binary Tree.cpp:18
MethodfindWaiveScore
Mathematical/Total Waviness of Numbers in Range I.cpp:14
MethodfindWinnerIdx
Recursion/Find the Winner of the Circular Game.cpp:71
MethodfindWinners
HashMap/Find Players With Zero or One Losses.cpp:13
MethodfindWords
Trie/Word Search II.cpp:61
MethodfindWordsContaining
Arrays/Leetcode Easy/Find Words Containing Character.cpp:14
MethodfindXSum
Heap/Leetcode Easy/Find X-Sum of All K-Long Subarrays I.cpp:39
MethodfindXSum
Sliding Window/Find X-Sum of All K-Long Subarrays II.cpp:51
Methodfind_first_position
Arrays/Binary Search/Find First and Last Position of Element in Sorted Array.cpp:13
Methodfind_last_position
Arrays/Binary Search/Find First and Last Position of Element in Sorted Array.cpp:31
Methodfind_pivot
Arrays/Binary Search/Search in Rotated Sorted Array.cpp:11
FunctionfirstCompleteIndex
Arrays/2-D Array/First Completely Painted Row or Column.cpp:214
MethodfirstCompleteIndex
Arrays/2-D Array/First Completely Painted Row or Column.cpp:36
MethodfirstCompleteIndex
Arrays/2-D Array/First Completely Painted Row or Column.cpp:251
MethodfirstMissingPositive
Arrays/First Missing Positive.cpp:16
MethodfirstOccur
Arrays/Element Appearing More Than 25% In Sorted Array.cpp:60
FunctionfirstPalindrome
strings/Easy Tagged/Find First Palindromic String in the Array.cpp:72
MethodfirstPalindrome
strings/Easy Tagged/Find First Palindromic String in the Array.cpp:14
FunctionfirstUniqChar
strings/Easy Tagged/First Unique Character in a String.cpp:36
MethodfirstUniqChar
strings/Easy Tagged/First Unique Character in a String.cpp:13
Methodflatten
Linked List/Flattening a Linked List.cpp:70
Methodflatten
Linked List/Flatten a Multilevel Doubly Linked List.cpp:9
MethodflattenBST
Recursion/Flatten BST to sorted list.cpp:13
MethodflipEquiv
Tree/Flip Equivalent Binary Trees.cpp:15
MethodflowerGame
Mathematical/Alice and Bob Playing Flower Game.cpp:15
MethodfloydWarshall
Graph/Floyd Warshall/Find the City With the Smallest Number of Neighbors at a Threshold Distance.cpp:19
Methodfor
Line Sweep Technique/Corporate Flight Bookings.cpp:64
Methodforward
Design/Design Browser History.cpp:40
MethodforwardPacket
Design/Implement Router.cpp:56
MethodfourSum
Arrays/4Sum(kSum).cpp:41
MethodfractionAddition
strings/Fraction Addition and Subtraction.cpp:14
MethodfractionToDecimal
Mathematical/Fraction to Recurring Decimal.cpp:15
FunctionfractionalKnapsack
DP/Knapsack Series/Fractional Knapsack.cpp:62
MethodfractionalKnapsack
DP/Knapsack Series/Fractional Knapsack.cpp:15
MethodfractionalKnapsack
Greedy/Fractional Knapsack.cpp:14
MethodfrequencySort
Heap/Sort Characters By Frequency.cpp:13
FunctionfullBloomFlowers
Arrays/Binary Search/Number of Flowers in Full Bloom.cpp:108
MethodfullBloomFlowers
Arrays/Binary Search/Number of Flowers in Full Bloom.cpp:13
FunctionfullJustify
strings/Text Justification.cpp:38
Methodfunc
DP/Digit DP/Total Waviness of Numbers in Range II.cpp:70
FunctionfurthestBuilding
Heap/Furthest Building You Can Reach.cpp:152
FunctionfurthestBuilding
DP/Furthest Building You Can Reach.cpp:90
MethodfurthestBuilding
Heap/Furthest Building You Can Reach.cpp:13
MethodfurthestBuilding
DP/Furthest Building You Can Reach.cpp:46
MethodfurthestDistanceFromOrigin
strings/Easy Tagged/Furthest Point From Origin.cpp:14
FunctiongarbageCollection
Arrays/Cumulative_Sum(Prefix Array)/Minimum Amount of Time to Collect Garbage.cpp:60
MethodgarbageCollection
Arrays/Cumulative_Sum(Prefix Array)/Minimum Amount of Time to Collect Garbage.cpp:13
Methodgcd
strings/Fraction Addition and Subtraction.cpp:126
Methodgcd
Linked List/Insert Greatest Common Divisors in Linked List.cpp:71
Methodgcd
Stack/Replace Non-Coprime Numbers in Array.cpp:72
Methodgcd
Greedy/Minimum Number of Operations to Make All Array Elements Equal to 1.cpp:89
Methodgenerate
Graph/BFS_DFS/Numbers With Same Consecutive Differences.cpp:10
Methodgenerate
DP/LIS & Variants/Largest Divisible Subset.cpp:16
Methodgenerate
Arrays/Group Anagrams.cpp:42
Methodgenerate
Arrays/Pascal's Triangle.cpp:11
Methodgenerate
Backtracking/Subsets II.cpp:8
Methodgenerate
Backtracking/Combination Sum III.cpp:10
Methodgenerate
Backtracking/Generate Parentheses.cpp:115
MethodgenerateColumnStates
Recursively generate all valid column colorings of height 'rows' such that no two vertically adjacent cells have the same color
DP/Painting a Grid With Three Different Colors.cpp:21
MethodgenerateMatrix
Arrays/2-D Array/Spiral Matrix II.cpp:10
MethodgenerateParenthesis
Backtracking/Generate Parentheses.cpp:46
MethodgenerateString
Greedy/Lexicographically Smallest Generated String.cpp:27
FunctiongenerateTrees
DP/Unique Binary Search Trees II.cpp:108
Functionget
Design/Design HashMap.cpp:157
Methodget
Design/Design HashMap.cpp:28
Methodget
Design/LFU Cache.cpp:40
Methodget
Design/Time Based Key-Value Store.cpp:18
Methodget
Design/Snapshot Array.cpp:41
Methodget1D
Arrays/Binary Search/Maximize the Distance Between Points on a Square.cpp:79
MethodgetAdj
Graph/Maximize the Number of Target Nodes After Connecting Trees II.cpp:16
MethodgetAverageTime
Design/Design Underground System.cpp:31
MethodgetAverages
Arrays/Cumulative_Sum(Prefix Array)/K Radius Subarray Averages.cpp:12
MethodgetAverages
Sliding Window/K Radius Subarray Averages.cpp:14
FunctiongetBiggestThree
Arrays/2-D Array/Get Biggest Three Rhombus Sums in a Grid.cpp:207
MethodgetBiggestThree
Arrays/2-D Array/Get Biggest Three Rhombus Sums in a Grid.cpp:15
MethodgetBits
Bit_Magic/Maximum Number That Sum of the Prices Is Less Than or Equal to K.cpp:59
MethodgetCityWithFewestReachable
Graph/Dijkstra'a Based Problems/Find the City With the Smallest Number of Neighbors at a Threshold Distance.cpp:47
MethodgetCityWithFewestReachable
Graph/Bellman-Ford Based Problems/Find the City With the Smallest Number of Neighbors at a Threshold Distance.cpp:44
MethodgetCityWithFewestReachable
Graph/Floyd Warshall/Find the City With the Smallest Number of Neighbors at a Threshold Distance.cpp:34
MethodgetClosestIndex
Arrays/Binary Search/Shortest Distance to Target Color.cpp:45
FunctiongetCommon
Arrays/Leetcode Easy/Minimum Common Value.cpp:134
MethodgetCommon
Arrays/Leetcode Easy/Minimum Common Value.cpp:15
MethodgetComplex
strings/Complex Number Multiplication.cpp:18
MethodgetCoord
DP/Minimum Distance to Type a Word Using Two Fingers.cpp:78
← previousnext →1,501–1,600 of 3,557, ranked by callers