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
robotWithString
strings/Using a Robot to Print the Lexicographically Smallest String.cpp:15
Method
rotate
Graph/BFS_DFS/Lexicographically Smallest String After Applying Operations.cpp:18
Method
rotate
Arrays/Rotating_an_Array.cpp:19
Method
rotate
Arrays/2-D Array/Leetcode Easy/Determine Whether Matrix Can Be Obtained By Rotation.cpp:17
Method
rotateClockWise
Arrays/2-D Array/Find the Minimum Area to Cover All Ones II.cpp:16
Method
rotateGrid
Arrays/2-D Array/Cyclically Rotating a Grid.cpp:15
Method
rotateLeft
Arrays/2-D Array/Leetcode Easy/Matrix Similarity After Cyclic Shifts.cpp:117
Method
rotateRight
Linked List/Rotate List.cpp:15
Method
rotateRight
Arrays/2-D Array/Leetcode Easy/Matrix Similarity After Cyclic Shifts.cpp:123
Function
rotateString
strings/Easy Tagged/Rotate String.cpp:81
Method
rotateString
strings/Easy Tagged/Rotate String.cpp:14
Function
rotateTheBox
Arrays/2-D Array/Rotating the Box.cpp:178
Method
rotateTheBox
Arrays/2-D Array/Rotating the Box.cpp:15
Function
rotatedDigits
DP/1-D DP/Rotated Digits.cpp:214
Method
rotatedDigits
DP/1-D DP/Rotated Digits.cpp:30
Method
rowColWin
Design/Design Tic-Tac-Toe.cpp:73
Method
search
strings/String Algorithms/Knuth-Morris-Pratt KMP String Matching Algorithm.cpp:44
Method
search
Returns if the word is in the trie. */
Trie/Replace Words.cpp:50
Method
search
Trie/Palindrome Pairs.cpp:57
Method
search
returns the length of th elongest prefix
Trie/Find the Length of the Longest Common Prefix.cpp:80
Method
search
Returns if the word is in the trie. */
Trie/Implement Trie (Prefix Tree).cpp:56
Method
search
Trie/Longest Common Suffix Queries.cpp:56
Method
search
Arrays/Binary Search/Search in Rotated Sorted Array.cpp:38
Method
search
Arrays/Binary Search/Binary Search.cpp:10
Method
search
Arrays/Binary Search/Search in Rotated Sorted Array II.cpp:56
Method
search
Sliding Window/Count Occurences of Anagrams.cpp:18
Method
search
Design/Design Add and Search Words Data Structure.cpp:72
Method
search
Design/Search_Suggestions_System.cpp:57
Method
search
Design/Design Movie Rental System.cpp:43
Method
searchKMP
strings/Easy Tagged/String Matching in an Array.cpp:66
Method
searchMatrix
Arrays/Binary Search/Search a 2D Matrix.cpp:14
Method
searchRange
Arrays/Binary Search/Find First and Last Position of Element in Sorted Array.cpp:49
Method
searchUtil
Design/Design Add and Search Words Data Structure.cpp:47
Method
search_stl
Approach-2
Arrays/Binary Search/Find First and Last Position of Element in Sorted Array.cpp:64
Function
secondMinimum
Graph/Dijkstra'a Based Problems/Second Minimum Time to Reach Destination.cpp:172
Method
secondMinimum
Graph/Dijkstra'a Based Problems/Second Minimum Time to Reach Destination.cpp:17
Method
separateSquares
Arrays/Binary Search/Separate Squares I.cpp:38
Method
sequentialDigits
Arrays/Sequential Digits.cpp:14
Method
sequentialDigits
Backtracking/Sequential Digits.cpp:29
Method
set
Design/Time Based Key-Value Store.cpp:14
Method
setBit
Bit_Magic/Minimize XOR.cpp:20
Method
setCell
Design/Design Spreadsheet.cpp:21
Function
setZeroes
Arrays/2-D Array/Set Matrix Zeroes.cpp:167
Method
setZeroes
Arrays/2-D Array/Set Matrix Zeroes.cpp:15
Method
sfn
DP/Maximum Profit in Job Scheduling.cpp:143
Method
shiftAndCount
Arrays/2-D Array/Image Overlap.cpp:81
Method
shiftingLetters
strings/Shifting Letters.cpp:8
Method
shiftingLetters
Arrays/Difference Array Technique/Shifting Letters II.cpp:15
Method
shipWithinDays
Arrays/Binary Search/Capacity To Ship Packages Within D Days.cpp:36
Method
shortestBridge
Arrays/2-D Array/Shortest Bridge.cpp:85
Function
shortestCommonSupersequence
Function to find length of shortest common supersequence of two strings.
DP/DP on Strings/Shortest Common Supersequence.cpp:139
Method
shortestCommonSupersequence
DP/DP on Strings/Print Shortest Common Supersequence.cpp:13
Method
shortestCommonSupersequence
Function to find length of shortest common supersequence of two strings.
DP/DP on Strings/Shortest Common Supersequence.cpp:36
Method
shortestCommonSupersequence
DP/DP on Strings/Shortest Common Supersequence.cpp:164
Method
shortestDistance
Graph/The Maze II.cpp:76
Function
shortestDistanceAfterQueries
Graph/Dijkstra'a Based Problems/Shortest Distance After Road Addition Queries I.cpp:223
Method
shortestDistanceAfterQueries
Graph/Dijkstra'a Based Problems/Shortest Distance After Road Addition Queries I.cpp:47
Function
shortestPalindrome
strings/Shortest Palindrome.cpp:132
Method
shortestPalindrome
strings/Shortest Palindrome.cpp:14
Method
shortestPath
Graph/Shortest Path in Weighted undirected graph.cpp:9
Method
shortestPath
Graph/Dijkstra'a Based Problems/Design Graph With Shortest Path Calculator.cpp:37
Method
shortestPath
Graph/BFS_DFS/Shortest Path in a Grid with Obstacles Elimination Solution.cpp:11
Method
shortestPath
Graph/Floyd Warshall/Design Graph With Shortest Path Calculator.cpp:59
Method
shortestPathAllKeys
Arrays/2-D Array/Shortest Path to Get All Keys.cpp:12
Method
shortestPathBinaryMatrix
Graph/Dijkstra'a Based Problems/Shortest Path in Binary Matrix.cpp:11
Method
shortestPathLength
Graph/Shortest Path Visiting All Nodes.cpp:23
Method
shortestSubarray
Sliding Window/Shortest Subarray with Sum at Least K.cpp:18
Function
shortestSubstrings
strings/Shortest Uncommon Substring in an Array.cpp:68
Method
shortestSubstrings
strings/Shortest Uncommon Substring in an Array.cpp:16
Method
shortest_distance
Graph/Floyd Warshall/Floyd Warshall.cpp:10
Method
shuffle
Mathematical/Shuffle an Array.cpp:20
Method
sieve
Arrays/Prime Subtraction Operation.cpp:17
Method
sieveHelper
Mathematical/Closest Prime Numbers in Range.cpp:15
Method
simplifyPath
Stack/Simplify Path.cpp:10
Method
singleNonDuplicate
Arrays/Binary Search/Single Element in a Sorted Array.cpp:14
Method
singleNumber
Bit_Magic/Single Number II.cpp:26
Method
singleNumber
Bit_Magic/Single Number III.cpp:16
Method
slices
DP/Arithmetic Slices.cpp:37
Method
slidingPuzzle
Arrays/2-D Array/Sliding Puzzle.cpp:15
Method
slidingWindow
Total count of subarrays having <= k distict elements
Sliding Window/Subarrays with K Different Integers.cpp:17
Method
slidingWindowCount
Find count of pairs having distance <= D
Arrays/Binary Search/Find K-th Smallest Pair Distance.cpp:71
Function
smallestChair
Arrays/Intervals_Based_Qn/The Number of the Smallest Unoccupied Chair.cpp:199
Method
smallestChair
Arrays/Intervals_Based_Qn/The Number of the Smallest Unoccupied Chair.cpp:15
Function
smallestDistancePair
Arrays/Binary Search/Find K-th Smallest Pair Distance.cpp:144
Method
smallestDistancePair
Arrays/Binary Search/Find K-th Smallest Pair Distance.cpp:15
Method
smallestEquivalentString
Graph/BFS_DFS/Lexicographically Smallest Equivalent String.cpp:32
Function
smallestFromLeaf
Tree/Smallest String Starting From Leaf.cpp:122
Method
smallestFromLeaf
Tree/Smallest String Starting From Leaf.cpp:40
Function
smallestNumber
strings/Construct Smallest Number From DI String.cpp:143
Function
smallestNumber
Bit_Magic/Leetcode Easy/Smallest Number With All Set Bits.cpp:89
Method
smallestNumber
strings/Construct Smallest Number From DI String.cpp:26
Method
smallestNumber
Bit_Magic/Leetcode Easy/Smallest Number With All Set Bits.cpp:18
Function
smallestRange
Heap/Smallest Range Covering Elements from K Lists.cpp:166
Method
smallestRange
Heap/Smallest Range Covering Elements from K Lists.cpp:14
Method
smallestRepunitDivByK
Mathematical/Smallest Integer Divisible by K.cpp:16
Method
smallestSubarrays
Bit_Magic/Smallest Subarrays With Maximum Bitwise OR.cpp:14
Method
smallestSubstring
Sliding Window/Smallest window containing 0, 1 and 2.cpp:14
Method
smallestSufficientTeam
DP/Bit Magic DP/Smallest Sufficient Team.cpp:48
Method
snakesAndLadders
Arrays/Snakes and Ladders.cpp:27
Method
snap
Design/Snapshot Array.cpp:37
← previous
next →
3,001–3,100 of 3,557, ranked by callers