MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

MethodrobotWithString
strings/Using a Robot to Print the Lexicographically Smallest String.cpp:15
Methodrotate
Graph/BFS_DFS/Lexicographically Smallest String After Applying Operations.cpp:18
Methodrotate
Arrays/Rotating_an_Array.cpp:19
Methodrotate
Arrays/2-D Array/Leetcode Easy/Determine Whether Matrix Can Be Obtained By Rotation.cpp:17
MethodrotateClockWise
Arrays/2-D Array/Find the Minimum Area to Cover All Ones II.cpp:16
MethodrotateGrid
Arrays/2-D Array/Cyclically Rotating a Grid.cpp:15
MethodrotateLeft
Arrays/2-D Array/Leetcode Easy/Matrix Similarity After Cyclic Shifts.cpp:117
MethodrotateRight
Linked List/Rotate List.cpp:15
MethodrotateRight
Arrays/2-D Array/Leetcode Easy/Matrix Similarity After Cyclic Shifts.cpp:123
FunctionrotateString
strings/Easy Tagged/Rotate String.cpp:81
MethodrotateString
strings/Easy Tagged/Rotate String.cpp:14
FunctionrotateTheBox
Arrays/2-D Array/Rotating the Box.cpp:178
MethodrotateTheBox
Arrays/2-D Array/Rotating the Box.cpp:15
FunctionrotatedDigits
DP/1-D DP/Rotated Digits.cpp:214
MethodrotatedDigits
DP/1-D DP/Rotated Digits.cpp:30
MethodrowColWin
Design/Design Tic-Tac-Toe.cpp:73
Methodsearch
strings/String Algorithms/Knuth-Morris-Pratt KMP String Matching Algorithm.cpp:44
Methodsearch
Returns if the word is in the trie. */
Trie/Replace Words.cpp:50
Methodsearch
Trie/Palindrome Pairs.cpp:57
Methodsearch
returns the length of th elongest prefix
Trie/Find the Length of the Longest Common Prefix.cpp:80
Methodsearch
Returns if the word is in the trie. */
Trie/Implement Trie (Prefix Tree).cpp:56
Methodsearch
Trie/Longest Common Suffix Queries.cpp:56
Methodsearch
Arrays/Binary Search/Search in Rotated Sorted Array.cpp:38
Methodsearch
Arrays/Binary Search/Binary Search.cpp:10
Methodsearch
Arrays/Binary Search/Search in Rotated Sorted Array II.cpp:56
Methodsearch
Sliding Window/Count Occurences of Anagrams.cpp:18
Methodsearch
Design/Design Add and Search Words Data Structure.cpp:72
Methodsearch
Design/Search_Suggestions_System.cpp:57
Methodsearch
Design/Design Movie Rental System.cpp:43
MethodsearchKMP
strings/Easy Tagged/String Matching in an Array.cpp:66
MethodsearchMatrix
Arrays/Binary Search/Search a 2D Matrix.cpp:14
MethodsearchRange
Arrays/Binary Search/Find First and Last Position of Element in Sorted Array.cpp:49
MethodsearchUtil
Design/Design Add and Search Words Data Structure.cpp:47
Methodsearch_stl
Approach-2
Arrays/Binary Search/Find First and Last Position of Element in Sorted Array.cpp:64
FunctionsecondMinimum
Graph/Dijkstra'a Based Problems/Second Minimum Time to Reach Destination.cpp:172
MethodsecondMinimum
Graph/Dijkstra'a Based Problems/Second Minimum Time to Reach Destination.cpp:17
MethodseparateSquares
Arrays/Binary Search/Separate Squares I.cpp:38
MethodsequentialDigits
Arrays/Sequential Digits.cpp:14
MethodsequentialDigits
Backtracking/Sequential Digits.cpp:29
Methodset
Design/Time Based Key-Value Store.cpp:14
MethodsetBit
Bit_Magic/Minimize XOR.cpp:20
MethodsetCell
Design/Design Spreadsheet.cpp:21
FunctionsetZeroes
Arrays/2-D Array/Set Matrix Zeroes.cpp:167
MethodsetZeroes
Arrays/2-D Array/Set Matrix Zeroes.cpp:15
Methodsfn
DP/Maximum Profit in Job Scheduling.cpp:143
MethodshiftAndCount
Arrays/2-D Array/Image Overlap.cpp:81
MethodshiftingLetters
strings/Shifting Letters.cpp:8
MethodshiftingLetters
Arrays/Difference Array Technique/Shifting Letters II.cpp:15
MethodshipWithinDays
Arrays/Binary Search/Capacity To Ship Packages Within D Days.cpp:36
MethodshortestBridge
Arrays/2-D Array/Shortest Bridge.cpp:85
FunctionshortestCommonSupersequence
Function to find length of shortest common supersequence of two strings.
DP/DP on Strings/Shortest Common Supersequence.cpp:139
MethodshortestCommonSupersequence
DP/DP on Strings/Print Shortest Common Supersequence.cpp:13
MethodshortestCommonSupersequence
Function to find length of shortest common supersequence of two strings.
DP/DP on Strings/Shortest Common Supersequence.cpp:36
MethodshortestCommonSupersequence
DP/DP on Strings/Shortest Common Supersequence.cpp:164
MethodshortestDistance
Graph/The Maze II.cpp:76
FunctionshortestDistanceAfterQueries
Graph/Dijkstra'a Based Problems/Shortest Distance After Road Addition Queries I.cpp:223
MethodshortestDistanceAfterQueries
Graph/Dijkstra'a Based Problems/Shortest Distance After Road Addition Queries I.cpp:47
FunctionshortestPalindrome
strings/Shortest Palindrome.cpp:132
MethodshortestPalindrome
strings/Shortest Palindrome.cpp:14
MethodshortestPath
Graph/Shortest Path in Weighted undirected graph.cpp:9
MethodshortestPath
Graph/Dijkstra'a Based Problems/Design Graph With Shortest Path Calculator.cpp:37
MethodshortestPath
Graph/BFS_DFS/Shortest Path in a Grid with Obstacles Elimination Solution.cpp:11
MethodshortestPath
Graph/Floyd Warshall/Design Graph With Shortest Path Calculator.cpp:59
MethodshortestPathAllKeys
Arrays/2-D Array/Shortest Path to Get All Keys.cpp:12
MethodshortestPathBinaryMatrix
Graph/Dijkstra'a Based Problems/Shortest Path in Binary Matrix.cpp:11
MethodshortestPathLength
Graph/Shortest Path Visiting All Nodes.cpp:23
MethodshortestSubarray
Sliding Window/Shortest Subarray with Sum at Least K.cpp:18
FunctionshortestSubstrings
strings/Shortest Uncommon Substring in an Array.cpp:68
MethodshortestSubstrings
strings/Shortest Uncommon Substring in an Array.cpp:16
Methodshortest_distance
Graph/Floyd Warshall/Floyd Warshall.cpp:10
Methodshuffle
Mathematical/Shuffle an Array.cpp:20
Methodsieve
Arrays/Prime Subtraction Operation.cpp:17
MethodsieveHelper
Mathematical/Closest Prime Numbers in Range.cpp:15
MethodsimplifyPath
Stack/Simplify Path.cpp:10
MethodsingleNonDuplicate
Arrays/Binary Search/Single Element in a Sorted Array.cpp:14
MethodsingleNumber
Bit_Magic/Single Number II.cpp:26
MethodsingleNumber
Bit_Magic/Single Number III.cpp:16
Methodslices
DP/Arithmetic Slices.cpp:37
MethodslidingPuzzle
Arrays/2-D Array/Sliding Puzzle.cpp:15
MethodslidingWindow
Total count of subarrays having <= k distict elements
Sliding Window/Subarrays with K Different Integers.cpp:17
MethodslidingWindowCount
Find count of pairs having distance <= D
Arrays/Binary Search/Find K-th Smallest Pair Distance.cpp:71
FunctionsmallestChair
Arrays/Intervals_Based_Qn/The Number of the Smallest Unoccupied Chair.cpp:199
MethodsmallestChair
Arrays/Intervals_Based_Qn/The Number of the Smallest Unoccupied Chair.cpp:15
FunctionsmallestDistancePair
Arrays/Binary Search/Find K-th Smallest Pair Distance.cpp:144
MethodsmallestDistancePair
Arrays/Binary Search/Find K-th Smallest Pair Distance.cpp:15
MethodsmallestEquivalentString
Graph/BFS_DFS/Lexicographically Smallest Equivalent String.cpp:32
FunctionsmallestFromLeaf
Tree/Smallest String Starting From Leaf.cpp:122
MethodsmallestFromLeaf
Tree/Smallest String Starting From Leaf.cpp:40
FunctionsmallestNumber
strings/Construct Smallest Number From DI String.cpp:143
FunctionsmallestNumber
Bit_Magic/Leetcode Easy/Smallest Number With All Set Bits.cpp:89
MethodsmallestNumber
strings/Construct Smallest Number From DI String.cpp:26
MethodsmallestNumber
Bit_Magic/Leetcode Easy/Smallest Number With All Set Bits.cpp:18
FunctionsmallestRange
Heap/Smallest Range Covering Elements from K Lists.cpp:166
MethodsmallestRange
Heap/Smallest Range Covering Elements from K Lists.cpp:14
MethodsmallestRepunitDivByK
Mathematical/Smallest Integer Divisible by K.cpp:16
MethodsmallestSubarrays
Bit_Magic/Smallest Subarrays With Maximum Bitwise OR.cpp:14
MethodsmallestSubstring
Sliding Window/Smallest window containing 0, 1 and 2.cpp:14
MethodsmallestSufficientTeam
DP/Bit Magic DP/Smallest Sufficient Team.cpp:48
MethodsnakesAndLadders
Arrays/Snakes and Ladders.cpp:27
Methodsnap
Design/Snapshot Array.cpp:37
← previousnext →3,001–3,100 of 3,557, ranked by callers