MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

MethodgroupThePeople
Arrays/Group the People Given the Group Size They Belong To.cpp:10
MethodguessNumber
Arrays/Binary Search/Guess Number Higher or Lower.cpp:9
MethodhalfToPalindrome
strings/Find the Closest Palindrome.cpp:14
FunctionhalvesAreAlike
strings/Determine if String Halves Are Alike.cpp:85
MethodhalvesAreAlike
strings/Determine if String Halves Are Alike.cpp:17
MethodhammingDistanceOne
DP/LIS & Variants/Longest Unequal Adjacent Groups Subsequence II.cpp:121
FunctionhammingWeight
Bit_Magic/Number of 1 Bits.cpp:95
MethodhammingWeight
Bit_Magic/Number of 1 Bits.cpp:14
MethodhasAllCodes
Bit_Magic/Check If a String Contains All Binary Codes of Size K.cpp:15
FunctionhasAlternatingBits
Bit_Magic/Leetcode Easy/Binary Number with Alternating Bits.cpp:89
MethodhasAlternatingBits
Bit_Magic/Leetcode Easy/Binary Number with Alternating Bits.cpp:15
MethodhasCommon
DP/Maximum Length of a Concatenated String with Unique Characters.cpp:13
MethodhasEvenDigits
Arrays/Leetcode Easy/Find Numbers With Even Number Of Digits.cpp:14
FunctionhasIncreasingSubarrays
Arrays/Leetcode Easy/Adjacent Increasing Subarrays Detection I.cpp:103
MethodhasIncreasingSubarrays
Arrays/Leetcode Easy/Adjacent Increasing Subarrays Detection I.cpp:22
FunctionhasNext
Design/Flatten Nested List Iterator.cpp:146
MethodhasPath
Graph/The Maze.cpp:113
MethodhasPathSum
Tree/Path Sum.cpp:19
MethodhasSameDigits
strings/Easy Tagged/Check If Digits Are Equal in String After Operations I.cpp:14
MethodhasValidPath
Graph/BFS_DFS/Check if There is a Valid Path in a Grid.cpp:54
MethodhashCode
HashMap/Longest Balanced Substring II.cpp:133
MethodhashCode
HashSet/Minimum Pair Removal to Sort Array II.cpp:130
MethodhashCode
Design/Design Movie Rental System.cpp:130
Methodheight
Tree/Easy/Balanced Binary Tree.cpp:14
Methodhelper
DP/Knight Probability in Chessboard.cpp:14
Methodhelper
DP/Maximum Sum of 3 Non-Overlapping Subarrays.cpp:18
Methodhelper
HashMap/Longest Balanced Substring II.cpp:15
Methodhelper
Bit_Magic/Gray Code.cpp:29
MethodhighestPeak
Graph/Multi-Source BFS/Map of Highest Peak.cpp:18
FunctionhighestRated
Design/Design a Food Rating System.cpp:99
MethodhighestRated
Design/Design a Food Rating System.cpp:47
MethodidealArrays
Mathematical/Count the Number of Ideal Arrays.cpp:60
FunctionimageSmoother
Arrays/2-D Array/Image Smoother.cpp:193
MethodimageSmoother
Arrays/2-D Array/Image Smoother.cpp:20
MethodinOrder
Tree/Leaf-Similar Trees.cpp:13
MethodinOrder
Tree/BST/Minimum Absolute Difference in BST.cpp:13
MethodinOrder
Tree/BST/Balance a Binary Search Tree.cpp:15
Methodinc
Design/All O`one Data Structure.cpp:63
MethodincreasingTriplet
DP/Increasing Triplet Subsequence.cpp:11
Methodincrement
Design/Design a Stack With Increment Operation.cpp:48
MethodinorderTraversal
Tree/Morris Traversal(Binary Tree Inorder Traversal).cpp:13
Methodinsert
Inserts a word into the trie. */
Trie/Implement Trie (Prefix Tree).cpp:41
Methodinsert
Trie/Delete Duplicate Folders in System.cpp:28
Methodinsert
Trie/Word Search II.cpp:30
Methodinsert
Trie/Sum of Prefix Scores of Strings.cpp:30
Methodinsert
Design/Search_Suggestions_System.cpp:22
Methodinsert
Inserts a value to the set. Returns true if the set did not already contain the specified element. */
Design/Insert Delete GetRandom O(1).cpp:19
MethodinsertAtBottom
Recursion/Reverse a Stack.cpp:50
MethodinsertFront
Design/Design Circular Queue.cpp:29
MethodinsertGreatestCommonDivisors
Linked List/Insert Greatest Common Divisors in Linked List.cpp:15
MethodinsertInSet
Sliding Window/Find X-Sum of All K-Long Subarrays II.cpp:19
MethodinsertLast
Design/Design Circular Queue.cpp:40
MethodinsertNode
Design/Map Sum Pairs.cpp:50
MethodinsertTrie
Trie/Longest Common Suffix Queries.cpp:38
FunctioninsertionSortList
Linked List/Insertion Sort List.cpp:48
MethodinsertionSortList
Linked List/Insertion Sort List.cpp:13
MethodintToRoman
strings/Integer to Roman.cpp:14
MethodintegerBreak
DP/Integer Break.cpp:35
Functionintersect
Arrays/Leetcode Easy/Intersection of Two Arrays II.cpp:106
Methodintersect
Arrays/Leetcode Easy/Intersection of Two Arrays II.cpp:16
Functionintersection
Arrays/Leetcode Easy/Intersection of Two Arrays.cpp:151
Methodintersection
Arrays/Leetcode Easy/Intersection of Two Arrays.cpp:15
MethodintersectionSizeTwo
Arrays/Intervals_Based_Qn/Set Intersection Size At Least Two.cpp:15
MethodintervalIntersection
Arrays/Intervals_Based_Qn/Interval List Intersections.cpp:10
MethodisAlienSorted
HashMap/Verifying an Alien Dictionary.cpp:9
MethodisAllBitsSet
Bit_Magic/Leetcode Easy/Smallest Number With All Set Bits.cpp:15
MethodisAllSame
Tree/N-Ary Tree/Construct Quad Tree.cpp:14
FunctionisAnagram
strings/Easy Tagged/Valid Anagram.cpp:65
MethodisAnagram
strings/Easy Tagged/Valid Anagram.cpp:16
MethodisAncestor
Graph/Minimum Score After Removals on a Tree.cpp:31
FunctionisArraySpecial
Arrays/Intervals_Based_Qn/Special Array II.cpp:194
FunctionisArraySpecial
Arrays/Leetcode Easy/Special Array I.cpp:68
MethodisArraySpecial
Arrays/Intervals_Based_Qn/Special Array II.cpp:15
MethodisArraySpecial
Arrays/Leetcode Easy/Special Array I.cpp:14
MethodisBalanced
Tree/Easy/Balanced Binary Tree.cpp:25
MethodisBipartite
Graph/Bipartite Graph.cpp:36
MethodisBipartite
Graph/Possible Bipartition.cpp:11
MethodisBipartite
1 : Red 0 : Green
Graph/Divide Nodes Into the Maximum Number of Groups.cpp:17
MethodisCompleteTree
Tree/Check Completeness of a Binary Tree.cpp:11
MethodisConcat
strings/Concatenated Words.cpp:17
MethodisConcatenated
strings/Concatenated Words.cpp:60
MethodisConnected
Graph/Euler/Euler circuit and Path.cpp:22
MethodisCycle
Function to detect cycle in an undirected graph.
Graph/Detect cycle in an undirected graph (BFS).cpp:34
MethodisCycleBFS
Graph/Detect cycle in an undirected graph (BFS).cpp:10
MethodisCycleDFS
Graph/Find Eventual Safe States.cpp:15
MethodisCycleDFS
Graph/Detect cycle in a directed graph (DFS).cpp:11
MethodisCycleDFS
Graph/Topological Sorting/Course Schedule.cpp:77
FunctionisCyclic
Graph/Detect cycle in an undirected graph (DFS).cpp:22
FunctionisCyclic
Graph/Detect cycle in an undirected graph (BFS).cpp:74
MethodisCyclic
Function to detect cycle in a directed graph.
Graph/Detect cycle in a directed graph (DFS).cpp:30
MethodisCyclic
Function to detect cycle in a directed graph.
Graph/Detect cycle in a directed graph (BFS).cpp:11
MethodisEularCircuit
Graph/Euler/Euler circuit and Path.cpp:45
FunctionisEularCircuitExist
Graph/Euler/Euler Circuit in an Undirected Graph.cpp:37
MethodisEularCircuitExist
Graph/Euler/Euler Circuit in an Undirected Graph.cpp:12
MethodisEularCircuitExist
Graph/Euler/Euler circuit and Path.cpp:113
FunctionisEvenOddTree
Tree/Even Odd Tree.cpp:148
MethodisEvenOddTree
Tree/Even Odd Tree.cpp:14
MethodisFull
Design/Design Circular Queue.cpp:89
MethodisGood
DP/1-D DP/Rotated Digits.cpp:16
MethodisGood
Arrays/Leetcode Easy/Check if Array is Good.cpp:15
← previousnext →1,701–1,800 of 3,557, ranked by callers