Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ayu-99/Data-Structures
/ functions
Functions
807 in github.com/Ayu-99/Data-Structures
⨍
Functions
807
◇
Types & classes
444
↓ 80 callers
Function
max
heightOfABTree.cpp:2
↓ 78 callers
Method
length
Linked List/Convert Sorted List to BST.cpp:41
↓ 60 callers
Method
top
Leetcode Challenge/May/C++/Implement Stack using Queues.cpp:37
↓ 51 callers
Method
empty
Leetcode Challenge/May/C++/Implement Stack using Queues.cpp:57
↓ 48 callers
Method
pop
Leetcode Challenge/March/C++/Maximum Frequency Stack.cpp:11
↓ 48 callers
Method
pop
Stacks and Queues/Stack using LL.cpp:122
↓ 48 callers
Method
push
Stacks and Queues/Stack using LL.cpp:109
↓ 47 callers
Method
push
Leetcode Challenge/March/C++/Maximum Frequency Stack.cpp:7
↓ 41 callers
Method
get
Get the value of the index-th node in the linked list. If the index is invalid, return -1. */
Linked List/Design Linked List.cpp:57
↓ 35 callers
Function
dfs
Graphs/Islands.cpp:22
↓ 34 callers
Function
helper
(last, n)
Leetcode July Challenge/Python/Count Vowels Permutation.py:6
↓ 33 callers
Method
add
Leetcode Challenge/April/C++/Kth Largest Element in a Stream.cpp:15
↓ 31 callers
Method
front
Stacks and Queues/Queue using LL.cpp:141
↓ 20 callers
Method
top
Stacks and Queues/Stack using LL.cpp:134
↓ 17 callers
Method
find
Leetcode Challenge/January/Design Add and Search Words Data Structure.cpp:53
↓ 14 callers
Function
addEdge
Graphs/Beginners/Adjacency Matrix.cpp:5
↓ 14 callers
Function
solve
Graphs/3 cycle.cpp:22
↓ 13 callers
Method
pop
Leetcode Challenge/May/C++/Implement Stack using Queues.cpp:17
↓ 10 callers
Method
isEmpty
Stacks and Queues/Stack using LL.cpp:101
↓ 10 callers
Method
push
Leetcode Challenge/May/C++/Implement Stack using Queues.cpp:10
↓ 8 callers
Method
insert
Leetcode Challenge/January/Maximum XOR of Two Numbers in an Array.cpp:18
↓ 7 callers
Function
addEdge
Graphs/Beginners/Adjacency List.cpp:5
↓ 7 callers
Method
isEmpty
Stacks and Queues/Queue.cpp:55
↓ 7 callers
Method
peek
Leetcode Challenge/december2k22/Implement Queue using Stacks.cpp:27
↓ 6 callers
Method
peek
Stacks and Queues/Stack Implementation using Arrays.cpp:37
↓ 6 callers
Method
push
Leetcode Challenge/december2k22/Implement Queue using Stacks.cpp:9
↓ 6 callers
Function
swap
HashMaps/Minimum Number Of Swaps.cpp:7
↓ 5 callers
Method
enqueue
Stacks and Queues/Queue.cpp:13
↓ 5 callers
Function
findParent
Graphs/Kruskals.cpp:52
↓ 5 callers
Method
insert
Leetcode Challenge/December/Stream of Characters.cpp:16
↓ 5 callers
Method
pop
Leetcode Challenge/december2k22/Implement Queue using Stacks.cpp:21
↓ 5 callers
Method
pop
Stacks and Queues/Stack Implementation using Arrays.cpp:24
↓ 5 callers
Method
push
Stacks and Queues/Stack Implementation using Arrays.cpp:11
↓ 4 callers
Function
DFS
Graphs/All Connected Components.cpp:63
↓ 4 callers
Method
dequeue
Stacks and Queues/Queue.cpp:25
↓ 4 callers
Method
empty
Leetcode Challenge/december2k22/Implement Queue using Stacks.cpp:31
↓ 4 callers
Method
isPalindrome
(String s)
Check If String Is Palindrome After At Most One Deletion.java:12
↓ 4 callers
Function
length
Recursion/Pair Star.cpp:1
↓ 3 callers
Method
isIsomorphic
(String s, String t)
Check If Two Strings Are Isomorphic.java:5
↓ 3 callers
Function
mergeSort
Merge Sort in LL.cpp:84
↓ 3 callers
Method
swap
(int i, int j, int[] nums)
Sorting/Sort colors.java:2
↓ 2 callers
Function
dfs
(i,j)
Graphs/Count Sub Islands.py:7
↓ 2 callers
Function
helper
Find a node in LL.cpp:40
↓ 2 callers
Function
initialize
Graphs/Largest Piece.cpp:23
↓ 2 callers
Function
initialize
Graphs/Coding Ninjas.cpp:28
↓ 2 callers
Method
isEmpty
Heap/Min Heap/Implementation.cpp:6
↓ 2 callers
Function
merge
(array, left, mid, right)
Sorting Algorithms/Merge sort.py:1
↓ 2 callers
Function
printArray
(array, size)
Sorting Algorithms/Merge sort.py:45
↓ 2 callers
Method
reverse
Leetcode Challenge/December/Reorder List.cpp:13
↓ 2 callers
Method
reverse_list
(self, head)
Linked List/Remove Nodes From Linked List.py:7
↓ 2 callers
Function
sumList
(a,n)
Greedy/Maximize sum after K negations.py:1
↓ 1 callers
Function
PerfectMatch
HashMaps/Perfect Sum Pair.cpp:48
↓ 1 callers
Method
add
(int n)
Leetcode Challenge/April/Java/Kth Largest Element in a Stream.java:12
↓ 1 callers
Method
backtrack
( List<List<Integer>> answer, List<Integer> tempList, int[] candidates, int to
Backtracking/Java/Combination Sum 2.java:10
↓ 1 callers
Function
bfs
Graphs/Get Path-BFS.cpp:43
↓ 1 callers
Method
binarySearch
(int x,int[][] arr)
Binary Search/Most Profit Assigning Work.java:3
↓ 1 callers
Method
binarySearch
(int[] arr, int target)
Binary Search/Java/BinarySearch.java:3
↓ 1 callers
Function
bubbleSort
(arr)
Sorting Algorithms/Bubble Sort.py:1
↓ 1 callers
Method
buildLPS
(String pattern)
Check If One String Is Rotation of Another.java:39
↓ 1 callers
Method
canEatInTime
(int piles[], int k, int h)
Leetcode Challenge/January/Java/Koko Eating Bananas.java:13
↓ 1 callers
Function
checkRedundancy
Stacks and Queues/Check Redundant Brackets.cpp:6
↓ 1 callers
Method
combinationUtil
(List<List<Integer>> list, List<Integer> temp, int[] candidates, int start, int target)
Leetcode Challenge/February/java/Combination Sum.java:7
↓ 1 callers
Function
countNumberOfZeros
(n)
Recursion/Count of zeroes in number.py:1
↓ 1 callers
Function
countOfIslands
Graphs/Islands.cpp:42
↓ 1 callers
Function
countStepsToOneHelper
Dynamic Programming/Min steps to 1.cpp:2
↓ 1 callers
Function
create_singly_linked_list_node
Inserting A Node at a given position in Linked List.c:28
↓ 1 callers
Function
dfs
Graphs/Largest Piece.cpp:31
↓ 1 callers
Function
dfs
Graphs/Coding Ninjas.cpp:37
↓ 1 callers
Method
dfs
(self, nums, target, idx, path, ret)
Backtracking/Python/Combination Sum 2.py:7
↓ 1 callers
Method
dfs2
(int[][] jobs, int idx, int[] dp, int n)
Dynamic Programming/aximum Profit in Job Scheduling.java:16
↓ 1 callers
Function
djikstra
Graphs/Dijkstra's Algorithm.cpp:42
↓ 1 callers
Method
find
(int number)
Leetcode Feb challenge2k25/Design a Number Container System.java:18
↓ 1 callers
Method
find
(self, word)
Trie/Find the Length of the Longest Common Prefix.py:23
↓ 1 callers
Function
findMin
(V)
Greedy/Greedy Approach to Minimum Number of Coins.py:2
↓ 1 callers
Function
findMinVertex
Graphs/Dijkstra's Algorithm.cpp:31
↓ 1 callers
Function
findMinVertex
Graphs/Prim's Algorithm.cpp:33
↓ 1 callers
Method
findPathsH
(self,m, n, maxMove, i, j)
Leetcode Challenge/June/Python/Out of Boundary Paths.py:6
↓ 1 callers
Function
findRedundant
Stacks and Queues/Check Redundant Brackets.cpp:39
↓ 1 callers
Function
findSmallest
(m,s)
Greedy/Find smallest number with given number of digits and sum of digits.py:1
↓ 1 callers
Method
findTwoUniques
(int[] nums)
Find Two Unique Numbers.java:6
↓ 1 callers
Function
firstIndexOfNumberInArray
(a,n,x)
Recursion/First Index of element in array.py:1
↓ 1 callers
Method
getFront
Stacks and Queues/Queue.cpp:36
↓ 1 callers
Function
getMaxCountChar
(countArray)
Greedy/Rearrange characters in a string such that no two adjacent are same.py:1
↓ 1 callers
Method
getNumberOfBouqets
(int[] bloomDay, int mid, int k)
Binary Search/Minimum Number of Days to Make m Bouquets.java:3
↓ 1 callers
Function
getPath
Graphs/Get Path-DFS.cpp:39
↓ 1 callers
Function
height1
heightOfABTree.cpp:7
↓ 1 callers
Function
helper
Convert sorted array into BST.cpp:32
↓ 1 callers
Method
helper
(self, root)
Leetcode July Challenge/Python/Binary Tree Pruning.py:9
↓ 1 callers
Method
helper
(TreeNode root, List<Integer> path, int B)
Trees/Path to given node.java:16
↓ 1 callers
Method
helper
(self,root,val)
Leetcode Challenge/April/Python/Search in a Binary Search Tree.py:10
↓ 1 callers
Method
helper
(int cur, int digit, int low, int high, List<Integer> res)
Leetcode Challenge/January/Java/Sequential Digits.java:10
↓ 1 callers
Function
init
Graphs/Beginners/Adjacency Matrix.cpp:21
↓ 1 callers
Method
inorder
(TreeNode node)
Leetcode Challenge/April/Java/Increasing Order Search Tree.java:10
↓ 1 callers
Method
inorderTraverse
(TreeNode root)
Binary Search Tree/Balance a Binary Search Tree.java:22
↓ 1 callers
Method
insert
Heap/Min Heap/Implementation.cpp:18
↓ 1 callers
Method
insert
(self, word)
Trie/Find the Length of the Longest Common Prefix.py:13
↓ 1 callers
Function
insertionSort
(arr)
Sorting Algorithms/Insertion sort.py:1
↓ 1 callers
Function
isConnected
Graphs/Is Connected?.cpp:56
↓ 1 callers
Method
isEmpty
Stacks and Queues/Stack Implementation using Arrays.cpp:46
↓ 1 callers
Method
isPlacementPossible
(int[] positions, int m, int max)
Binary Search/Magnetic Force Between Two Balls.java:19
next →
1–100 of 807, ranked by callers