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
↓ 1 callers
Method
fizzBuzz
(int n)
01_Fizz Buzz/Ideal Solutions/fizzBuzz.java:8
↓ 1 callers
Function
frequencyInSortedArray
33_Frequency in Sorted Array/Ideal Solutions/frequencyInSortedArray.cpp:3
↓ 1 callers
Method
frequencyInSortedArray
(int[] arr,int k)
33_Frequency in Sorted Array/Ideal Solutions/frequencyInSortedArray.java:42
↓ 1 callers
Function
gasStations
(gas, cost)
40_Gas Stations/Ideal Solutions/gasStations.py:1
↓ 1 callers
Function
gasStations
40_Gas Stations/Ideal Solutions/gasStations.cpp:3
↓ 1 callers
Method
gasStations
(int[] gas,int[] cost)
40_Gas Stations/Ideal Solutions/gasStations.java:8
↓ 1 callers
Method
generateSinglyLinkedList
(int[] arr)
21_Detect Loop in a Linked List/Ideal Solutions/detectLoopInLinkedList.java:43
↓ 1 callers
Method
generateSinglyLinkedList
(int[] arr)
22_Palindrome Linked List/Ideal Solutions/palindromeLinkedList.java:47
↓ 1 callers
Method
generateSinglyLinkedList
(int[] arr)
20_Reverse a Linked List/Ideal Solutions/reverseLinkedList.java:46
↓ 1 callers
Method
getLength
(self, head)
22_Palindrome Linked List/Ideal Solutions/palindromeList.py:35
↓ 1 callers
Method
getMin
(self)
13_Min Stack/Ideal Solutions/minStack.py:30
↓ 1 callers
Method
getReversed
(self, head)
22_Palindrome Linked List/Ideal Solutions/palindromeList.py:21
↓ 1 callers
Function
greatestCommonDivisor
(N, M)
26_GCD/Ideal Solutions/greatestCommonDivisor.py:2
↓ 1 callers
Function
greatestCommonDivisor
26_GCD/Ideal Solutions/greatestCommonDivisor.cpp:3
↓ 1 callers
Method
greatestCommonDivisor
(int n,int m)
26_GCD/Ideal Solutions/greatestCommonDivisor.java:8
↓ 1 callers
Function
helper
(listNode1, listNode2, carry)
19_Add Two Linked List/Ideal Solutions/addTwoList.py:8
↓ 1 callers
Function
infixPostfix
(expression)
12_Infix-Postfix/Ideal Solutions/infixPostfix.py:5
↓ 1 callers
Function
infixPostfix
12_Infix-Postfix/Ideal Solutions/infixPostfix.cpp:14
↓ 1 callers
Method
infixPostfix
(String a)
12_Infix-Postfix/Ideal Solutions/infixPostfix.java:20
↓ 1 callers
Function
isAttack
31_N-Queens/Ideal Solutions/nQueens.cpp:10
↓ 1 callers
Method
isCharacter
(char a)
12_Infix-Postfix/Ideal Solutions/infixPostfix.java:15
↓ 1 callers
Function
isPalindrome
Function to check if the linked list is palindrome or not
22_Palindrome Linked List/Ideal Solutions/palindromeLinkedList.cpp:15
↓ 1 callers
Function
isPowerOfTwo
07_Power of two/Ideal Solutions/powerOfTwo.cpp:6
↓ 1 callers
Function
isSafe
(row, column, board, size)
31_N-Queens/Ideal Solutions/nQueens.py:4
↓ 1 callers
Function
kMax
24_Sliding Window Maximum/Ideal Solutions/slidingWindowMaximum.cpp:6
↓ 1 callers
Function
kSum
25_Two Numbers in Sorted Array whose sum is K/Ideal Solutions/twoNumbersInSortedArraySumK.cpp:7
↓ 1 callers
Function
longestCommonSubsequence
(sequenceFirst, sequenceSecond)
42_Longest Common Subsequence/Ideal Solutions/longestCommonSubsequence.py:3
↓ 1 callers
Function
longestCommonSubsequence
42_Longest Common Subsequence/Ideal Solutions/longestCommonSubsequence.cpp:6
↓ 1 callers
Method
longestCommonSubsequence
( char[] arr1, char[] arr2)
42_Longest Common Subsequence/Ideal Solutions/longestCommonSubsequence.java:8
↓ 1 callers
Function
longestIncreasingSubsequence
(array)
43_Longest Increasing Subsequence/Ideal Solutions/longestIncreasingSubsequence.py:1
↓ 1 callers
Function
longestIncreasingSubsequence
43_Longest Increasing Subsequence/Ideal Solutions/longestIncreasingSubsequence.cpp:3
↓ 1 callers
Method
longestIncreasingSubsequence
(int[] arr,int n)
43_Longest Increasing Subsequence/Ideal Solutions/longestIncreasingSubsequence.java:8
↓ 1 callers
Function
longestPalindromeSubstring
(str)
44_Longest Palindromic Substring/Ideal Solutions/longestPalindromeSubstring.py:8
↓ 1 callers
Function
longestPalindromicSubstring
44_Longest Palindromic Substring/Ideal Solutions/longestPalindromicSubstring.cpp:4
↓ 1 callers
Method
longestPalindromicSubstring
(String str)
44_Longest Palindromic Substring/Ideal Solutions/longestPalindromicSubstring.java:8
↓ 1 callers
Method
lowerBound
(int[] arr,int k)
33_Frequency in Sorted Array/Ideal Solutions/frequencyInSortedArray.java:25
↓ 1 callers
Function
matrixRotation
(matrix)
18_Matrix rotation/Ideal Solutions/matrixRotation.py:2
↓ 1 callers
Function
matrixRotation
18_Matrix rotation/Ideal Solutions/matrixRotation.cpp:5
↓ 1 callers
Method
matrixRotation
(int[][] matrix)
18_Matrix rotation/Ideal Solutions/matrixRotation.java:8
↓ 1 callers
Function
maxProfit
39_Best Time to Buy and Sell Stock/Ideal Solutions/bestTimeToBuySellStock.cpp:3
↓ 1 callers
Function
maximumSumSubArray
(array, size)
46_Maximum_Sum_Subarray/Ideal Solutions/maximumSumSubArray.py:4
↓ 1 callers
Function
maximumSumSubarray
46_Maximum_Sum_Subarray/Ideal Solutions/maximumSumSubarray.cpp:3
↓ 1 callers
Method
maximumSumSubarray
(int[] arr)
46_Maximum_Sum_Subarray/Ideal Solutions/maximumSumSubarray.java:8
↓ 1 callers
Function
meetingRooms
41_Meeting Rooms/Ideal Solutions/meetingRooms.cpp:3
↓ 1 callers
Function
meetingRooms
(intervals)
41_Meeting Rooms/Ideal Solutions/meetingRooms.py:2
↓ 1 callers
Method
meetingRooms
(int[][] intervals)
41_Meeting Rooms/Ideal Solutions/meetingRooms.java:16
↓ 1 callers
Function
minJumpsToEnd
(jumps)
45_Minimum Jumps To Reach The End/Ideal Solutions/minJumpsToEnd.py:3
↓ 1 callers
Function
minJumpsToEnd
45_Minimum Jumps To Reach The End/Ideal Solutions/minJumpsToEnd.cpp:3
↓ 1 callers
Method
minJumpsToEnd
(int[] array)
45_Minimum Jumps To Reach The End/Ideal Solutions/minJumpsToTheEnd.java:8
↓ 1 callers
Function
minRotatedSortedArray
36_Minimum in Rotated & Sorted Array/Ideal Solutions/minRotatedSortedArray.cpp:4
↓ 1 callers
Method
minimumInSortedRotatedArray
(int[] arr)
36_Minimum in Rotated & Sorted Array/Ideal Solutions/minimumInSorted&RotatedArray.java:8
↓ 1 callers
Function
moneyAndShopping
47_Money and Shopping/Ideal Solutions/moneyAndShopping.cpp:4
↓ 1 callers
Function
moneyAndShopping
(arr, N)
47_Money and Shopping/Ideal Solutions/moneyAndShopping.py:3
↓ 1 callers
Method
moneyAndShopping
(int[][] arr,int n)
47_Money and Shopping/Ideal Solutions/money&Shopping.java:14
↓ 1 callers
Function
mostWaterContainer
(container)
23_Container With Most Water/Ideal Solutions/mostWaterContainer.py:3
↓ 1 callers
Function
mostWaterContainer
23_Container With Most Water/Ideal Solutions/mostWaterContainer.cpp:4
↓ 1 callers
Function
nQueens
31_N-Queens/Ideal Solutions/nQueens.cpp:35
↓ 1 callers
Function
nQueens
(board, size, row )
31_N-Queens/Ideal Solutions/nQueens.py:20
↓ 1 callers
Function
nearestSmallerNeighbour
16_Nearest smaller neighbour/Ideal Solutions/nearestSmallerNeighbour.cpp:6
↓ 1 callers
Method
nearestSmallerNeighbour
(int[] arr,int n)
16_Nearest smaller neighbour/Ideal Solutions/nearestSmallerNeighbour.java:8
↓ 1 callers
Function
nearestSmallestNeighbour
(array)
16_Nearest smaller neighbour/Ideal Solutions/nearestSmallestNeighbour.py:2
↓ 1 callers
Function
nthFibonacci
(Number)
27_Nth Fibonacci/Ideal Solutions/nthFibonacci.py:2
↓ 1 callers
Method
nthFibonacci
(int n)
27_Nth Fibonacci/Ideal Solutions/nthFibonacci.java:7
↓ 1 callers
Function
painterPartition
(arr, noOfPainters)
38_Painter's Partition Problem/Ideal Solutions/painterPartition.py:14
↓ 1 callers
Method
paintersPartitionProblem
(long[] arr,long low,long high,int k)
38_Painter's Partition Problem/Ideal Solutions/paintersPartitionProblem.java:20
↓ 1 callers
Method
palindromeList
(self)
22_Palindrome Linked List/Ideal Solutions/palindromeList.py:42
↓ 1 callers
Function
partition
09_Sort Array Using Quick Sort/Ideal Solutions/sortUsingQuicksort.cpp:6
↓ 1 callers
Function
partition
(array, low, high)
09_Sort Array Using Quick Sort/Ideal Solutions/quickSort.py:3
↓ 1 callers
Function
partition
38_Painter's Partition Problem/Ideal Solutions/painterPartitionProblem.cpp:26
↓ 1 callers
Method
partition
(int[] arr, int low, int high)
09_Sort Array Using Quick Sort/Ideal Solutions/quickSort.java:7
↓ 1 callers
Function
permutationWithLargestSum
28_Permutations with Largest Sum/Ideal Solutions/permutationWithLargestSum.cpp:6
↓ 1 callers
Function
permutationWithLargestSum
(arr, N)
28_Permutations with Largest Sum/Ideal Solutions/permutationWithLargestSum.py:2
↓ 1 callers
Method
permutationWithLargestSum
(int[] arr)
28_Permutations with Largest Sum/Ideal Solutions/permutationWithLargestSum.java:8
↓ 1 callers
Function
permutations
29_Print All Permutations of an Array/Ideal Solutions/printAllPermutationsOfAnArray.cpp:6
↓ 1 callers
Function
permutationsOfArray
(array, permutations , size, result)
29_Print All Permutations of an Array/Ideal Solutions/permutationsOfArray.py:3
↓ 1 callers
Method
permutationsOfArray
(int[] a,int l,int h)
29_Print All Permutations of an Array/Ideal Solutions/permutationsOfArray.java:17
↓ 1 callers
Method
pop
13_Min Stack/Ideal Solutions/minStack.cpp:22
↓ 1 callers
Method
pop
()
13_Min Stack/Ideal Solutions/minStack.java:23
↓ 1 callers
Function
powerOfTwo
(Number)
07_Power of two/Ideal Solutions/powerOfTwo.py:3
↓ 1 callers
Method
powerOfTwo
(int n)
07_Power of two/Ideal Solutions/powerOfTwo.java:8
↓ 1 callers
Function
printAllSubsequences
30_Print all Subsequences of a String/Ideal Solutions/allSubsequencesOfAString.cpp:5
↓ 1 callers
Method
printArr
(int arr[], int n)
17_Sort An Array of 0's. 1's and 2's/Ideal Solutions/sortAnArrayOf012.java:7
↓ 1 callers
Method
printArray
(int[] ans)
16_Nearest smaller neighbour/Ideal Solutions/nearestSmallerNeighbour.java:22
↓ 1 callers
Method
printArray
(int[] arr)
29_Print All Permutations of an Array/Ideal Solutions/permutationsOfArray.java:12
↓ 1 callers
Function
printList
19_Add Two Linked List/Ideal Solutions/addTwoList.cpp:63
↓ 1 callers
Method
printList
(Node head)
19_Add Two Linked List/Ideal Solutions/addTwoLinkedList.java:54
↓ 1 callers
Method
printList
(Node head)
20_Reverse a Linked List/Ideal Solutions/reverseLinkedList.java:35
↓ 1 callers
Method
printMatrix
(int[][] matrix)
18_Matrix rotation/Ideal Solutions/matrixRotation.java:21
↓ 1 callers
Function
printNode
(temp)
19_Add Two Linked List/Ideal Solutions/addTwoList.py:27
↓ 1 callers
Function
quickSort
09_Sort Array Using Quick Sort/Ideal Solutions/sortUsingQuicksort.cpp:29
↓ 1 callers
Function
quickSort
(array, low, high)
09_Sort Array Using Quick Sort/Ideal Solutions/quickSort.py:19
↓ 1 callers
Method
quicksort
(int[] arr, int low, int high)
09_Sort Array Using Quick Sort/Ideal Solutions/quickSort.java:26
↓ 1 callers
Method
reverse
20_Reverse a Linked List/Ideal Solutions/reverseALinkedList.cpp:47
↓ 1 callers
Method
reverseLinkedList
(Node head)
20_Reverse a Linked List/Ideal Solutions/reverseLinkedList.java:20
↓ 1 callers
Method
reverseList
(self)
20_Reverse a Linked List/Ideal Solutions/reverseList.py:14
↓ 1 callers
Function
rodCuttingProblem
(price, size)
51_Rod Cutting Problem/Ideal Solution/rodCuttingProblem.py:3
↓ 1 callers
Method
rodCuttingProblem
(int price[],int n)
51_Rod Cutting Problem/Ideal Solution/rodCuttingProblem.java:8
↓ 1 callers
Function
rotatedSortedArraySearch
(nums, target)
35_Search in Rotated & Sorted Array/Ideal Solutions/rotatedSortedArraySearch.py:1
↓ 1 callers
Function
search
35_Search in Rotated & Sorted Array/Ideal Solutions/searchInRotatedAndSortedArray.cpp:6
↓ 1 callers
Method
sizeStack
(self)
15_Stacksusing two Queues/Ideal Solutions/stackUsingQueues.py:41
← previous
next →
101–200 of 354, ranked by callers