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
groupThePeople
Arrays/Group the People Given the Group Size They Belong To.cpp:10
Method
guessNumber
Arrays/Binary Search/Guess Number Higher or Lower.cpp:9
Method
halfToPalindrome
strings/Find the Closest Palindrome.cpp:14
Function
halvesAreAlike
strings/Determine if String Halves Are Alike.cpp:85
Method
halvesAreAlike
strings/Determine if String Halves Are Alike.cpp:17
Method
hammingDistanceOne
DP/LIS & Variants/Longest Unequal Adjacent Groups Subsequence II.cpp:121
Function
hammingWeight
Bit_Magic/Number of 1 Bits.cpp:95
Method
hammingWeight
Bit_Magic/Number of 1 Bits.cpp:14
Method
hasAllCodes
Bit_Magic/Check If a String Contains All Binary Codes of Size K.cpp:15
Function
hasAlternatingBits
Bit_Magic/Leetcode Easy/Binary Number with Alternating Bits.cpp:89
Method
hasAlternatingBits
Bit_Magic/Leetcode Easy/Binary Number with Alternating Bits.cpp:15
Method
hasCommon
DP/Maximum Length of a Concatenated String with Unique Characters.cpp:13
Method
hasEvenDigits
Arrays/Leetcode Easy/Find Numbers With Even Number Of Digits.cpp:14
Function
hasIncreasingSubarrays
Arrays/Leetcode Easy/Adjacent Increasing Subarrays Detection I.cpp:103
Method
hasIncreasingSubarrays
Arrays/Leetcode Easy/Adjacent Increasing Subarrays Detection I.cpp:22
Function
hasNext
Design/Flatten Nested List Iterator.cpp:146
Method
hasPath
Graph/The Maze.cpp:113
Method
hasPathSum
Tree/Path Sum.cpp:19
Method
hasSameDigits
strings/Easy Tagged/Check If Digits Are Equal in String After Operations I.cpp:14
Method
hasValidPath
Graph/BFS_DFS/Check if There is a Valid Path in a Grid.cpp:54
Method
hashCode
HashMap/Longest Balanced Substring II.cpp:133
Method
hashCode
HashSet/Minimum Pair Removal to Sort Array II.cpp:130
Method
hashCode
Design/Design Movie Rental System.cpp:130
Method
height
Tree/Easy/Balanced Binary Tree.cpp:14
Method
helper
DP/Knight Probability in Chessboard.cpp:14
Method
helper
DP/Maximum Sum of 3 Non-Overlapping Subarrays.cpp:18
Method
helper
HashMap/Longest Balanced Substring II.cpp:15
Method
helper
Bit_Magic/Gray Code.cpp:29
Method
highestPeak
Graph/Multi-Source BFS/Map of Highest Peak.cpp:18
Function
highestRated
Design/Design a Food Rating System.cpp:99
Method
highestRated
Design/Design a Food Rating System.cpp:47
Method
idealArrays
Mathematical/Count the Number of Ideal Arrays.cpp:60
Function
imageSmoother
Arrays/2-D Array/Image Smoother.cpp:193
Method
imageSmoother
Arrays/2-D Array/Image Smoother.cpp:20
Method
inOrder
Tree/Leaf-Similar Trees.cpp:13
Method
inOrder
Tree/BST/Minimum Absolute Difference in BST.cpp:13
Method
inOrder
Tree/BST/Balance a Binary Search Tree.cpp:15
Method
inc
Design/All O`one Data Structure.cpp:63
Method
increasingTriplet
DP/Increasing Triplet Subsequence.cpp:11
Method
increment
Design/Design a Stack With Increment Operation.cpp:48
Method
inorderTraversal
Tree/Morris Traversal(Binary Tree Inorder Traversal).cpp:13
Method
insert
Inserts a word into the trie. */
Trie/Implement Trie (Prefix Tree).cpp:41
Method
insert
Trie/Delete Duplicate Folders in System.cpp:28
Method
insert
Trie/Word Search II.cpp:30
Method
insert
Trie/Sum of Prefix Scores of Strings.cpp:30
Method
insert
Design/Search_Suggestions_System.cpp:22
Method
insert
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
Method
insertAtBottom
Recursion/Reverse a Stack.cpp:50
Method
insertFront
Design/Design Circular Queue.cpp:29
Method
insertGreatestCommonDivisors
Linked List/Insert Greatest Common Divisors in Linked List.cpp:15
Method
insertInSet
Sliding Window/Find X-Sum of All K-Long Subarrays II.cpp:19
Method
insertLast
Design/Design Circular Queue.cpp:40
Method
insertNode
Design/Map Sum Pairs.cpp:50
Method
insertTrie
Trie/Longest Common Suffix Queries.cpp:38
Function
insertionSortList
Linked List/Insertion Sort List.cpp:48
Method
insertionSortList
Linked List/Insertion Sort List.cpp:13
Method
intToRoman
strings/Integer to Roman.cpp:14
Method
integerBreak
DP/Integer Break.cpp:35
Function
intersect
Arrays/Leetcode Easy/Intersection of Two Arrays II.cpp:106
Method
intersect
Arrays/Leetcode Easy/Intersection of Two Arrays II.cpp:16
Function
intersection
Arrays/Leetcode Easy/Intersection of Two Arrays.cpp:151
Method
intersection
Arrays/Leetcode Easy/Intersection of Two Arrays.cpp:15
Method
intersectionSizeTwo
Arrays/Intervals_Based_Qn/Set Intersection Size At Least Two.cpp:15
Method
intervalIntersection
Arrays/Intervals_Based_Qn/Interval List Intersections.cpp:10
Method
isAlienSorted
HashMap/Verifying an Alien Dictionary.cpp:9
Method
isAllBitsSet
Bit_Magic/Leetcode Easy/Smallest Number With All Set Bits.cpp:15
Method
isAllSame
Tree/N-Ary Tree/Construct Quad Tree.cpp:14
Function
isAnagram
strings/Easy Tagged/Valid Anagram.cpp:65
Method
isAnagram
strings/Easy Tagged/Valid Anagram.cpp:16
Method
isAncestor
Graph/Minimum Score After Removals on a Tree.cpp:31
Function
isArraySpecial
Arrays/Intervals_Based_Qn/Special Array II.cpp:194
Function
isArraySpecial
Arrays/Leetcode Easy/Special Array I.cpp:68
Method
isArraySpecial
Arrays/Intervals_Based_Qn/Special Array II.cpp:15
Method
isArraySpecial
Arrays/Leetcode Easy/Special Array I.cpp:14
Method
isBalanced
Tree/Easy/Balanced Binary Tree.cpp:25
Method
isBipartite
Graph/Bipartite Graph.cpp:36
Method
isBipartite
Graph/Possible Bipartition.cpp:11
Method
isBipartite
1 : Red 0 : Green
Graph/Divide Nodes Into the Maximum Number of Groups.cpp:17
Method
isCompleteTree
Tree/Check Completeness of a Binary Tree.cpp:11
Method
isConcat
strings/Concatenated Words.cpp:17
Method
isConcatenated
strings/Concatenated Words.cpp:60
Method
isConnected
Graph/Euler/Euler circuit and Path.cpp:22
Method
isCycle
Function to detect cycle in an undirected graph.
Graph/Detect cycle in an undirected graph (BFS).cpp:34
Method
isCycleBFS
Graph/Detect cycle in an undirected graph (BFS).cpp:10
Method
isCycleDFS
Graph/Find Eventual Safe States.cpp:15
Method
isCycleDFS
Graph/Detect cycle in a directed graph (DFS).cpp:11
Method
isCycleDFS
Graph/Topological Sorting/Course Schedule.cpp:77
Function
isCyclic
Graph/Detect cycle in an undirected graph (DFS).cpp:22
Function
isCyclic
Graph/Detect cycle in an undirected graph (BFS).cpp:74
Method
isCyclic
Function to detect cycle in a directed graph.
Graph/Detect cycle in a directed graph (DFS).cpp:30
Method
isCyclic
Function to detect cycle in a directed graph.
Graph/Detect cycle in a directed graph (BFS).cpp:11
Method
isEularCircuit
Graph/Euler/Euler circuit and Path.cpp:45
Function
isEularCircuitExist
Graph/Euler/Euler Circuit in an Undirected Graph.cpp:37
Method
isEularCircuitExist
Graph/Euler/Euler Circuit in an Undirected Graph.cpp:12
Method
isEularCircuitExist
Graph/Euler/Euler circuit and Path.cpp:113
Function
isEvenOddTree
Tree/Even Odd Tree.cpp:148
Method
isEvenOddTree
Tree/Even Odd Tree.cpp:14
Method
isFull
Design/Design Circular Queue.cpp:89
Method
isGood
DP/1-D DP/Rotated Digits.cpp:16
Method
isGood
Arrays/Leetcode Easy/Check if Array is Good.cpp:15
← previous
next →
1,701–1,800 of 3,557, ranked by callers