Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ankushchimnani/DSA-Must-Do-Questions
/ functions
Functions
354 in github.com/ankushchimnani/DSA-Must-Do-Questions
⨍
Functions
354
◇
Types & classes
81
↓ 26 callers
Method
pop
(self)
13_Min Stack/Ideal Solutions/minStack.py:17
↓ 18 callers
Method
top
(self)
13_Min Stack/Ideal Solutions/minStack.py:26
↓ 15 callers
Method
print
(self)
21_Detect Loop in a Linked List/Ideal Solutions/detectLoop.py:21
↓ 14 callers
Method
push
(self, x: int)
13_Min Stack/Ideal Solutions/minStack.py:11
↓ 12 callers
Method
add
(int[][] matrix)
31_N-Queens/Ideal Solutions/nQueens.java:54
↓ 8 callers
Method
pop
(self)
15_Stacksusing two Queues/Ideal Solutions/stackUsingQueues.py:29
↓ 8 callers
Method
push
(self, element)
15_Stacksusing two Queues/Ideal Solutions/stackUsingQueues.py:14
↓ 8 callers
Function
swap
(arr, first, second)
08_Bubble sort/Ideal Solutions/bubbleSort.py:3
↓ 6 callers
Method
insert
(self, value)
19_Add Two Linked List/Ideal Solutions/addTwoList.py:40
↓ 6 callers
Function
push
19_Add Two Linked List/Ideal Solutions/addTwoList.cpp:15
↓ 6 callers
Method
size
()
15_Stacksusing two Queues/Ideal Solutions/stackUsingTwoQueues.java:41
↓ 4 callers
Method
enqueue
(self, element)
14_Queue Using Two Stacks/Ideal Solutions/queueUsingStacks.py:11
↓ 4 callers
Method
insert
(self, value)
21_Detect Loop in a Linked List/Ideal Solutions/detectLoop.py:15
↓ 4 callers
Function
push
21_Detect Loop in a Linked List/Ideal Solutions/detectLoop.cpp:11
↓ 4 callers
Method
push
(self, data)
22_Palindrome Linked List/Ideal Solutions/palindromeList.py:15
↓ 4 callers
Method
push
20_Reverse a Linked List/Ideal Solutions/reverseALinkedList.cpp:24
↓ 4 callers
Method
push
15_Stacksusing two Queues/Ideal Solutions/stackUsingTwoQueues.cpp:40
↓ 3 callers
Function
frequencyInSortedArray
(array, N, Q)
33_Frequency in Sorted Array/Ideal Solutions/frequencyInSortedArray.py:15
↓ 3 callers
Method
insertNode
(self, dataItem)
20_Reverse a Linked List/Ideal Solutions/reverseList.py:27
↓ 3 callers
Function
newNode
19_Add Two Linked List/Ideal Solutions/addTwoList.cpp:8
↓ 3 callers
Method
push
13_Min Stack/Ideal Solutions/minStack.cpp:12
↓ 3 callers
Method
push
(int x)
13_Min Stack/Ideal Solutions/minStack.java:16
↓ 3 callers
Method
push
(int x)
15_Stacksusing two Queues/Ideal Solutions/stackUsingTwoQueues.java:17
↓ 2 callers
Function
calculateSum
(arr, intial, final)
38_Painter's Partition Problem/Ideal Solutions/painterPartition.py:4
↓ 2 callers
Method
dequeue
(self)
14_Queue Using Two Stacks/Ideal Solutions/queueUsingStacks.py:24
↓ 2 callers
Function
expandAroundCenter
(left, right, lengthOfString, str)
44_Longest Palindromic Substring/Ideal Solutions/longestPalindromeSubstring.py:1
↓ 2 callers
Method
generateSinglyLinkedList
(int[] arr)
19_Add Two Linked List/Ideal Solutions/addTwoLinkedList.java:64
↓ 2 callers
Method
getMin
13_Min Stack/Ideal Solutions/minStack.cpp:37
↓ 2 callers
Method
getMin
()
13_Min Stack/Ideal Solutions/minStack.java:36
↓ 2 callers
Method
pop
()
15_Stacksusing two Queues/Ideal Solutions/stackUsingTwoQueues.java:28
↓ 2 callers
Method
pop
15_Stacksusing two Queues/Ideal Solutions/stackUsingTwoQueues.cpp:17
↓ 2 callers
Function
precedence
12_Infix-Postfix/Ideal Solutions/infixPostfix.cpp:3
↓ 2 callers
Method
print
20_Reverse a Linked List/Ideal Solutions/reverseALinkedList.cpp:67
↓ 2 callers
Method
printLinkedList
(self)
20_Reverse a Linked List/Ideal Solutions/reverseList.py:32
↓ 2 callers
Method
priority
(char a)
12_Infix-Postfix/Ideal Solutions/infixPostfix.java:8
↓ 2 callers
Method
searchInRotatedSortedArray
(int[] arr,int low,int high,int k)
35_Search in Rotated & Sorted Array/Ideal Solutions/searchInRotatedSortedArray.java:7
↓ 2 callers
Method
swap
(int[] a,int i,int j)
29_Print All Permutations of an Array/Ideal Solutions/permutationsOfArray.java:7
↓ 2 callers
Method
top
(self)
15_Stacksusing two Queues/Ideal Solutions/stackUsingQueues.py:36
↓ 1 callers
Function
Sqrt
37_Square Root of an Integer/Ideal Solution/squareRootOfAnInteger.cpp:6
↓ 1 callers
Method
addTwoLinkedList
(Node head1, Node head2)
19_Add Two Linked List/Ideal Solutions/addTwoLinkedList.java:19
↓ 1 callers
Function
addTwoList
19_Add Two Linked List/Ideal Solutions/addTwoList.cpp:22
↓ 1 callers
Function
allSubsequenceOfString
(input, subsequenceString="")
30_Print all Subsequences of a String/Ideal Solutions/allSbsequenceOfString.py:1
↓ 1 callers
Method
arrayToString
(int[] arr)
03_Binary Representation of a Number/Ideal Solutions/binaryRepresentation.java:8
↓ 1 callers
Function
balancedParanthesis
(S)
10_Balanced Parenthesis/Ideal Solutions/balancedParanthesis.py:3
↓ 1 callers
Function
balancedParenthesis
10_Balanced Parenthesis/Ideal Solutions/balancedParenthesis.cpp:3
↓ 1 callers
Method
balancedParenthesis
(String a)
10_Balanced Parenthesis/Ideal Solutions/balancedParanthesis.java:7
↓ 1 callers
Function
bestTimeToBuySellStock
(prices)
39_Best Time to Buy and Sell Stock/Ideal Solutions/bestTimeToBuySellStock.py:1
↓ 1 callers
Method
bestTimeToBuySellStock
(int[] prices)
39_Best Time to Buy and Sell Stock/Ideal Solutions/bestTimeToBuySellStock.java:9
↓ 1 callers
Function
binaryRepresentation
(Number)
03_Binary Representation of a Number/Ideal Solutions/binaryRepresentation.py:3
↓ 1 callers
Function
binaryRepresentation
03_Binary Representation of a Number/Ideal Solutions/binaryRepresentation.cpp:3
↓ 1 callers
Method
binaryRepresentation
(int n)
03_Binary Representation of a Number/Ideal Solutions/binaryRepresentation.java:14
↓ 1 callers
Function
binarySearch
32_Binary Search/Ideal Solutions/binarySearch.cpp:3
↓ 1 callers
Function
binarySearch
(arr, N, target)
32_Binary Search/Ideal Solutions/binarySearch.py:2
↓ 1 callers
Function
binarySearch
(array, low, high, element)
33_Frequency in Sorted Array/Ideal Solutions/frequencyInSortedArray.py:2
↓ 1 callers
Method
binarySearch
(int[] arr,int n,int k)
32_Binary Search/Ideal Solutions/binarySearch.java:8
↓ 1 callers
Function
binaryToNumber
(nums)
04_Binary Representation to Number/Ideal Solutions/binaryToNumber.py:3
↓ 1 callers
Function
binaryToNumber
04_Binary Representation to Number/Ideal Solutions/binaryToNumber.cpp:4
↓ 1 callers
Method
binaryToNumber
(int[] arr)
04_Binary Representation to Number/Ideal Solutions/binaryToNumber.java:16
↓ 1 callers
Function
bubbleSort
(arr, N)
08_Bubble sort/Ideal Solutions/bubbleSort.py:10
↓ 1 callers
Function
bubbleSort
08_Bubble sort/Ideal Solutions/bubbleSort.cpp:3
↓ 1 callers
Method
bubbleSort
(int[] arr,int n)
08_Bubble sort/Ideal Solutions/bubbleSort.java:13
↓ 1 callers
Function
checkAnagram
(X, Y)
05_Check for anagram/Ideal Solutions/anagram.py:2
↓ 1 callers
Function
checkAnagram
05_Check for anagram/Ideal Solutions/checkAnagram.cpp:3
↓ 1 callers
Method
checkAnagram
(String a,String b)
05_Check for anagram/Ideal Solutions/checkAnagram.java:17
↓ 1 callers
Method
checkForAttack
(int[][] matrix,HashSet<Integer> d1,HashSet<Integer> d2,HashSet<Integer> v,int row)
31_N-Queens/Ideal Solutions/nQueens.java:31
↓ 1 callers
Method
checkIfPossible
(long[] a,int k,long val)
38_Painter's Partition Problem/Ideal Solutions/paintersPartitionProblem.java:7
↓ 1 callers
Function
checkPalindrome
06_Check for palindrome/Ideal Solutions/checkPalindrome.cpp:3
↓ 1 callers
Function
checkPalindrome
(inputString)
06_Check for palindrome/Ideal Solutions/checkPalindrome.py:2
↓ 1 callers
Method
checkPalindrome
(String a)
06_Check for palindrome/Ideal Solutions/checkPalindrome.java:9
↓ 1 callers
Function
checkPrime
02_Check for prime/Ideal Solutions/checkPrime.cpp:3
↓ 1 callers
Function
checkPrime
(Number)
02_Check for prime/Ideal Solutions/checkPrime.py:5
↓ 1 callers
Method
checkPrime
(int n)
02_Check for prime/Ideal Solutions/checkPrime.java:8
↓ 1 callers
Function
coinChange
49_Coin Change Problem/Ideal Solutions/coinChange.cpp:3
↓ 1 callers
Function
coinChange
(coins, amount)
49_Coin Change Problem/Ideal Solutions/coinChange.py:2
↓ 1 callers
Method
coinChange
(int[] coins,int amount)
49_Coin Change Problem/Ideal Solutions/coinChange.java:8
↓ 1 callers
Method
containerWithMostWater
(int[] container)
23_Container With Most Water/Ideal Solutions/containerWithMostWater.java:8
↓ 1 callers
Function
cutRod
51_Rod Cutting Problem/Ideal Solution/rodCuttingProblem.cpp:6
↓ 1 callers
Method
deQueue
Dequeue an item from the queue
14_Queue Using Two Stacks/Ideal Solutions/queueUsingTwoStacks.cpp:17
↓ 1 callers
Method
dequeue
()
14_Queue Using Two Stacks/Ideal Solutions/queueUsingTwoStacks.java:22
↓ 1 callers
Function
detectLoop
21_Detect Loop in a Linked List/Ideal Solutions/detectLoop.cpp:22
↓ 1 callers
Method
detectLoop
(self)
21_Detect Loop in a Linked List/Ideal Solutions/detectLoop.py:29
↓ 1 callers
Method
detectLoop
(Node head)
21_Detect Loop in a Linked List/Ideal Solutions/detectLoopInLinkedList.java:20
↓ 1 callers
Method
detectPalindromeLinkedList
(Node head)
22_Palindrome Linked List/Ideal Solutions/palindromeLinkedList.java:20
↓ 1 callers
Method
enQueue
Enqueue an item to the queue
14_Queue Using Two Stacks/Ideal Solutions/queueUsingTwoStacks.cpp:10
↓ 1 callers
Method
enqueue
(int x)
14_Queue Using Two Stacks/Ideal Solutions/queueUsingTwoStacks.java:11
↓ 1 callers
Method
equalArrays
(char[] arr1, char[] arr2)
05_Check for anagram/Ideal Solutions/checkAnagram.java:9
↓ 1 callers
Function
fibonacci
27_Nth Fibonacci/Ideal Solutions/nthFibonacci.cpp:6
↓ 1 callers
Function
findDuplicateInArray
11_Find Duplicates in array/Ideal Solutions/findDuplicatesInArray.cpp:3
↓ 1 callers
Function
findDuplicatesInArray
(array, N)
11_Find Duplicates in array/Ideal Solutions/findDuplicatesInArray.py:3
↓ 1 callers
Method
findDuplicatesInArray
(int[] arr,int n)
11_Find Duplicates in array/Ideal Solutions/findDuplicatesInArray.java:12
↓ 1 callers
Function
findMin
(array)
36_Minimum in Rotated & Sorted Array/Ideal Solutions/minRotatedSortedArray.py:3
↓ 1 callers
Method
findMin
(int a,int b,int c)
47_Money and Shopping/Ideal Solutions/money&Shopping.java:8
↓ 1 callers
Function
findPainters
38_Painter's Partition Problem/Ideal Solutions/painterPartitionProblem.cpp:6
↓ 1 callers
Function
findPeakElement
(array, N)
34_Find Peak Element/Ideal Solutions/findPeakElement.py:1
↓ 1 callers
Function
findPeakElement
34_Find Peak Element/Ideal Solutions/findPeakElement.cpp:3
↓ 1 callers
Method
findPeakElement
(int n,int[] arr)
34_Find Peak Element/Ideal Solutions/findPeakElement.java:9
↓ 1 callers
Method
findPivotIndex
(int[] arr)
35_Search in Rotated & Sorted Array/Ideal Solutions/searchInRotatedSortedArray.java:19
↓ 1 callers
Method
findsubsequences
(String s,String ans)
30_Print all Subsequences of a String/Ideal Solutions/allSubsequencesOfAString.java:15
↓ 1 callers
Function
fizzBuzz
01_Fizz Buzz/Ideal Solutions/fizzBuzz.cpp:3
↓ 1 callers
Function
fizzBuzz
(N)
01_Fizz Buzz/Ideal Solutions/fizzBuzz.py:2
next →
1–100 of 354, ranked by callers