MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

MethodrelativeSortArray
Arrays/Leetcode Easy/Relative Sort Array.cpp:14
Functionremove
Design/Design HashMap.cpp:168
Methodremove
Removes a value from the set. Returns true if the set contained the specified element. */
Design/Insert Delete GetRandom O(1).cpp:29
Methodremove
Design/Design HashSet.cpp:20
MethodremoveAnagrams
strings/Easy Tagged/Find Resultant Array After Removing Anagrams.cpp:34
MethodremoveBoxes
DP/Remove Boxes.cpp:42
FunctionremoveCoveredIntervals
Arrays/Intervals_Based_Qn/Remove Covered Intervals.cpp:150
MethodremoveCoveredIntervals
Arrays/Intervals_Based_Qn/Remove Covered Intervals.cpp:15
FunctionremoveDupUsingStack
Approach-1 (With stack)
Stack/Remove All Adjacent Duplicates In String.cpp:8
FunctionremoveDuplicateLetters
strings/Remove Duplicate Letters.cpp:158
MethodremoveDuplicateLetters
strings/Remove Duplicate Letters.cpp:20
MethodremoveDuplicates
Trie/Delete Duplicate Folders in System.cpp:62
MethodremoveDuplicates
Arrays/Two Pointer/Remove Duplicates from Sorted Array.cpp:12
MethodremoveDuplicates
Stack/Remove All Adjacent Duplicates In String.cpp:29
MethodremoveFromSet
Sliding Window/Find X-Sum of All K-Long Subarrays II.cpp:35
FunctionremoveKdigits
Stack/Remove K Digits.cpp:53
MethodremoveKdigits
Stack/Remove K Digits.cpp:15
MethodremoveLeafNodes
Tree/Delete Leaves With a Given Value.cpp:15
MethodremoveNode
Remove the node from the doubly linked list
Design/All O`one Data Structure.cpp:45
MethodremoveNodes
Linked List/Remove Nodes From Linked List.cpp:14
FunctionremoveNthFromEnd
Linked List/Remove Nth Node From End of List.cpp:96
MethodremoveNthFromEnd
Linked List/Remove Nth Node From End of List.cpp:25
FunctionremoveOccurrences
Stack/Remove All Occurrences of a Substring.cpp:146
MethodremoveOccurrences
Stack/Remove All Occurrences of a Substring.cpp:15
MethodremoveSenator
Greedy/Dota2 Senate.cpp:12
MethodremoveStars
Stack/Removing Stars From a String.cpp:10
MethodremoveStones
Graph/BFS_DFS/Most Stones Removed with Same Row or Column.cpp:27
MethodremoveStones
Graph/Disjoint Set/Most Stones Removed with Same Row or Column.cpp:42
MethodremoveSubfolders
strings/Remove Sub-Folders from the Filesystem.cpp:15
MethodremoveSubstring
Stack/Maximum Score From Removing Substrings.cpp:37
FunctionremoveZeroSumSublists
Linked List/Remove Zero Sum Consecutive Nodes from Linked List.cpp:60
MethodremoveZeroSumSublists
Linked List/Remove Zero Sum Consecutive Nodes from Linked List.cpp:14
Methodrent
Design/Design Movie Rental System.cpp:58
FunctionreorderList
Linked List/Reorder List.cpp:120
MethodreorderList
Linked List/Reorder List.cpp:15
FunctionreorderedPowerOf2
Mathematical/Reordered Power of 2.cpp:175
MethodreorderedPowerOf2
Mathematical/Reordered Power of 2.cpp:21
FunctionreorganizeString
Heap/Reorganize String.cpp:13
MethodreorganizeString
Heap/Reorganize String.cpp:65
MethodrepairCars
Arrays/Binary Search/Minimum Time to Repair Cars.cpp:29
MethodrepeatLimitedString
strings/Construct String With Repeat Limit.cpp:15
FunctionrepeatedNTimes
HashSet/Leetcode Easy/N-Repeated Element in Size 2N Array.cpp:92
MethodrepeatedNTimes
HashSet/Leetcode Easy/N-Repeated Element in Size 2N Array.cpp:15
FunctionrepeatedSubstringPattern
strings/Repeated Substring Pattern.cpp:49
MethodreplaceNonCoprimes
Stack/Replace Non-Coprime Numbers in Array.cpp:15
FunctionreplaceValueInTree
Tree/Cousins in Binary Tree II.cpp:190
MethodreplaceValueInTree
Tree/Cousins in Binary Tree II.cpp:15
MethodreplaceWords
Trie/Replace Words.cpp:65
MethodreplaceWords
HashSet/Replace Words.cpp:30
Methodreport
Design/Design Movie Rental System.cpp:74
Functionreserve
Design/Seat Reservation Manager.cpp:129
Methodreserve
Design/Seat Reservation Manager.cpp:20
Methodreset
Mathematical/Shuffle an Array.cpp:16
MethodresetCell
Design/Design Spreadsheet.cpp:29
FunctionrestoreArray
HashMap/Restore the Array From Adjacent Pairs.cpp:63
MethodrestoreArray
HashMap/Restore the Array From Adjacent Pairs.cpp:27
MethodrestoreIpAddresses
strings/Restore IP Addresses.cpp:39
MethodrestoreMatrix
Arrays/2-D Array/Find Valid Matrix Given Row and Column Sums.cpp:14
FunctionresultsArray
Sliding Window/Find the Power of K-Size Subarrays I.cpp:154
MethodresultsArray
Sliding Window/Find the Power of K-Size Subarrays I.cpp:18
Methodreverse
Linked List/Reverse Nodes in k-Group.cpp:16
Methodreverse
Linked List/Reverse Linked List II.cpp:48
Methodreverse
Arrays/Cumulative_Sum(Prefix Array)/Equal Sum Grid Partition II.cpp:176
Methodreverse
Recursion/Reverse a Stack.cpp:82
MethodreverseArray
Greedy/Maximize Happiness of Selected Children.cpp:87
MethodreverseBetween
Linked List/Reverse Linked List II.cpp:11
MethodreverseBinarySearch
Arrays/Binary Search/Find in Mountain Array.cpp:58
MethodreverseBits
Bit_Magic/Leetcode Easy/Reverse Bits.cpp:15
MethodreverseHelp
Linked List/Reverse Linked List.cpp:41
MethodreverseKGroup
Linked List/Reverse Nodes in k-Group.cpp:25
MethodreverseLL
Linked List/Add Two Numbers II.cpp:11
MethodreverseLL
Linked List/Reorder List.cpp:45
MethodreverseLL
Linked List/Leetcode Easy/Convert Binary Number in a Linked List to Integer.cpp:15
MethodreverseList
Linked List/Palindrome Linked List.cpp:44
MethodreverseList
Linked List/Reverse Linked List.cpp:29
MethodreverseList
Linked List/Double a Number Represented as a Linked List.cpp:16
MethodreverseList
Linked List/Merge 2 sorted linked list in reverse order.cpp:35
MethodreverseList
Linked List/Remove Nodes From Linked List.cpp:79
FunctionreverseOddLevels
Tree/Reverse Odd Levels of Binary Tree.cpp:146
MethodreverseOddLevels
Tree/Reverse Odd Levels of Binary Tree.cpp:15
FunctionreverseParentheses
Stack/Reverse Substrings Between Each Pair of Parentheses.cpp:111
MethodreverseParentheses
Stack/Reverse Substrings Between Each Pair of Parentheses.cpp:15
FunctionreversePrefix
strings/Easy Tagged/Reverse Prefix of Word.cpp:72
MethodreversePrefix
strings/Easy Tagged/Reverse Prefix of Word.cpp:15
MethodreverseRange
Graph/BFS_DFS/Lexicographically Smallest String After Applying Operations.cpp:117
MethodreverseRow
Arrays/2-D Array/Rotating the Box.cpp:161
MethodreverseSolve
Linked List/Reverse Linked List.cpp:16
MethodreverseSubmatrix
Arrays/2-D Array/Leetcode Easy/Flip Square Submatrix Vertically.cpp:15
MethodreverseVowels
Arrays/Two Pointer/Reverse Vowels of a String.cpp:19
FunctionreverseWords
strings/Reverse Words in a String III.cpp:57
MethodreverseWords
strings/Reverse Words in a String II.cpp:39
MethodreverseWords
strings/Reverse Words in a String III.cpp:11
MethodreverseWords
strings/Reverse Words in a String.cpp:11
MethodrightHeight
Tree/Count Complete Tree Nodes.cpp:22
MethodrightSideView
Tree/Binary Tree Right Side View.cpp:24
Methodrmv
Remove a task from the system
Design/Design Task Manager.cpp:42
Methodrob
DP/House Robber III.cpp:28
Methodrob
DP/1-D DP/House Robber II.cpp:27
Methodrob
DP/1-D DP/House Robber.cpp:27
MethodrobotSim
Arrays/Simulation/Walking Robot Simulation.cpp:15
← previousnext →2,901–3,000 of 3,557, ranked by callers