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
↓ 1 callers
Method
isRotation
(String s1, String s2)
Check If One String Is Rotation of Another.java:4
↓ 1 callers
Method
isRotation
(String s1, String s2)
Check If One String Is Rotation of Another.java:93
↓ 1 callers
Method
kmpSearch
(String text, String pattern)
Check If One String Is Rotation of Another.java:64
↓ 1 callers
Function
kruskals
Graphs/Kruskals.cpp:60
↓ 1 callers
Function
lastIndexOfNumberInArray
(a,n,x)
Recursion/Last Index of number in array.py:1
↓ 1 callers
Function
length
Recursion/String To Integer.cpp:1
↓ 1 callers
Method
lengthOfLinkedList
(self, head)
Leetcode July Challenge/Python/Reverse Nodes in k-Group.py:8
↓ 1 callers
Method
majorityElement
(int[] nums)
Algorithms/Majority element.java:5
↓ 1 callers
Method
majorityElement
(int[] nums)
Algorithms/Majority element.java:28
↓ 1 callers
Method
markTree
(TreeNode curr)
Leetcode Challenge/April/Java/Recover Binary Search Tree.java:11
↓ 1 callers
Method
maxDotProduct_helper
(self, nums1, nums2, i, j)
Dynamic Programming/Max Dot Product of Two Subsequences.py:7
↓ 1 callers
Function
maxMEX
(arr, N, K)
Sliding window/Fixed-size sliding window/Maximum MEX from all subarrays of length K.py:1
↓ 1 callers
Function
maxMeeting
(l, n)
Greedy/Find maximum meetings in one room.py:1
↓ 1 callers
Function
maxProductSubset
(a, n)
Greedy/Maximum product subset of an array.py:2
↓ 1 callers
Function
maxProducts
(price,k)
Greedy/Buy Maximum Stocks if i stocks can be bought on i-th day.py:1
↓ 1 callers
Function
maxStops
(arr,n,m)
Greedy/Maximum trains for which stoppage can be provided.py:1
↓ 1 callers
Function
maxSum
(stack1, stack2, stack3, n1, n2, n3)
Greedy/Find maximum sum possible equal sum of three stacks.py:2
↓ 1 callers
Function
maxSum
(a,n)
Greedy/Maximum sum of absolute difference of any permutation.py:1
↓ 1 callers
Method
max_xor
Leetcode Challenge/January/Maximum XOR of Two Numbers in an Array.cpp:33
↓ 1 callers
Function
mergeLL
Merge Sort in LL.cpp:33
↓ 1 callers
Function
mergeSort
(array, begin, end)
Sorting Algorithms/Merge sort.py:36
↓ 1 callers
Method
mergelist
(ListNode head1, ListNode head2)
Leetcode Challenge/February/java/Sort List.java:37
↓ 1 callers
Function
minCountHelper
Minimum Count.cpp:34
↓ 1 callers
Function
minElements
(arr , n)
Greedy/Smallest subset with sum greater than all other elements.py:1
↓ 1 callers
Function
minimumNumberOfSwaps
HashMaps/Minimum Number Of Swaps.cpp:13
↓ 1 callers
Function
partition
(array, low, high)
Sorting Algorithms/Quick Sort.py:1
↓ 1 callers
Function
prims
Graphs/Prim's Algorithm.cpp:45
↓ 1 callers
Function
printAllPossibleCodes
Recursion/Print all Possible Decodings of a given Digit Sequence.cpp:6
↓ 1 callers
Function
printDFS
Graphs/Has Path.cpp:37
↓ 1 callers
Function
printDFS
Graphs/All Connected Components.cpp:39
↓ 1 callers
Function
printDFS
Graphs/Is Connected?.cpp:38
↓ 1 callers
Function
printGraph
Graphs/Beginners/Adjacency List.cpp:12
↓ 1 callers
Function
printGraph
Graphs/Beginners/Adjacency Matrix.cpp:11
↓ 1 callers
Function
printPermutations
Recursion/Print all Permutations.cpp:4
↓ 1 callers
Function
quicksort
(array, low, high)
Sorting Algorithms/Quick Sort.py:13
↓ 1 callers
Function
rearrangeString
(s)
Greedy/Rearrange characters in a string such that no two adjacent are same.py:11
↓ 1 callers
Function
replaceHelper
Recursion/Recursive program to replace all occurrences of pi with 3.14 in a given string.cpp:1
↓ 1 callers
Method
reverseKGroupH
(self, head, k, length)
Leetcode July Challenge/Python/Reverse Nodes in k-Group.py:18
↓ 1 callers
Method
rob_helper
(self,root)
Leetcode Challenge/December/House Robber III.py:12
↓ 1 callers
Method
singleNumber
(int[] nums)
Find Two Unique Numbers.java:31
↓ 1 callers
Function
sort_by_order
HashMaps/Sort strings lexicographically according to given sequence of characters.cpp:41
↓ 1 callers
Method
sortedArrayToBST
(int start, int end)
Binary Search Tree/Balance a Binary Search Tree.java:28
↓ 1 callers
Function
survival
(S, N, M)
Greedy/Check if it is possible to survive on Island.py:4
↓ 1 callers
Method
verticalSumHelper
(self, root, hd)
Trees/Vertical sum.py:6
Method
DFS
Leetcode Challenge/december2k22/Leaf-Similar Trees.cpp:21
Method
Edge
Graphs/Kruskals.cpp:41
Method
FreqStack
()
Leetcode Challenge/March/Java/Maximum Frequency Stack.java:7
Method
KthLargest
Leetcode Challenge/April/C++/Kth Largest Element in a Stream.cpp:5
Method
KthLargest
(int k, int[] a)
Leetcode Challenge/April/Java/Kth Largest Element in a Stream.java:5
Method
MyCalendar
Leetcode Challenge/June/My Calendar I.cpp:5
Method
MyLinkedList
Initialize your data structure here. */
Linked List/Design Linked List.cpp:51
Method
MyQueue
Leetcode Challenge/december2k22/Implement Queue using Stacks.cpp:5
Method
MyStack
Leetcode Challenge/May/C++/Implement Stack using Queues.cpp:7
Method
Node
Linked List/Design Linked List.cpp:43
Method
Node
(int node, int dist, int visited)
Leetcode Challenge/February/java/Shortest Path Visiting All Nodes.java:9
Method
NumArray
Leetcode Challenge/June/Range Sum Query - Mutable.cpp:46
Method
NumberContainers
()
Leetcode Feb challenge2k25/Design a Number Container System.java:5
Method
Queue
Stacks and Queues/Queue using LL.cpp:94
Method
Solution
Leetcode July Challenge/C++/Shuffle an Array.cpp:7
Method
Solution
@param head The linked list's head. Note that the head is guaranteed to be not null, so it contains at least one node. */
Leetcode Challenge/January/Linked List Random Node.cpp:17
Method
Stack
Stacks and Queues/Stack using LL.cpp:92
Method
StreamChecker
Leetcode Challenge/December/Stream of Characters.cpp:27
Method
TrieNode
Leetcode Challenge/January/Maximum XOR of Two Numbers in an Array.cpp:13
Method
TrieNode
Leetcode Challenge/December/Stream of Characters.cpp:5
Method
Tuple
(Integer val, Integer freq, Integer order)
Leetcode Challenge/March/Java/Maximum Frequency Stack.java:32
Method
UndergroundSystem
Leetcode Challenge/April/C++/Design Underground System.cpp:6
Method
UndergroundSystem
()
Leetcode Challenge/April/Java/Design Underground System.java:5
Method
WordDictionary
Leetcode Challenge/January/Design Add and Search Words Data Structure.cpp:34
Method
__init__
(self, matrix: List[List[int]])
Algorithms/Kadane's Algorithm (2D).py:27
Method
__init__
(self, nums: List[int])
Leetcode July Challenge/Python/Shuffle an Array.py:4
Method
__init__
(self)
Leetcode July Challenge/Python/Find Median from Data Stream.py:5
Method
__init__
(self, c)
Trie/Find the Length of the Longest Common Prefix.py:3
Method
__init__
(self)
Trie/Find the Length of the Longest Common Prefix.py:10
Method
__init__
(self)
Trees/Vertical sum.py:3
Method
__init__
(self)
Leetcode Challenge/April/Python/Convert BST to Greater Tree.py:2
Method
__init__
(self)
Leetcode Challenge/April/Python/Recover Binary Search Tree.py:11
Method
__init__
(self)
Leetcode Challenge/April/Python/Design Underground System.py:3
Method
__init__
(self)
Leetcode Challenge/June/Python/Out of Boundary Paths.py:2
Method
__init__
(self)
Leetcode Challenge/December/House Robber.py:4
Method
__init__
(self)
Leetcode Challenge/December/House Robber III.py:9
Method
__init__
(self)
Dynamic Programming/Max Dot Product of Two Subsequences.py:4
Method
addAtHead
Add a node of value val before the first element of the linked list. After the insertion, the new node will be the first node of the linked list. */
Linked List/Design Linked List.cpp:65
Method
addAtIndex
Add a node of value val before the index-th node in the linked list. If index equals to the length of linked list, the node will be appended to the en
Linked List/Design Linked List.cpp:86
Method
addAtTail
Append a node of value val to the last element of the linked list. */
Linked List/Design Linked List.cpp:73
Method
addBinary
Leetcode Challenge/January/Add Binary.cpp:3
Method
addDigits
int addDigits(int num) { int sum=0; while(num>9) { while(num) { sum+=(num%10); num/=10; } num=sum; sum=0; } return num; }
Leetcode Challenge/February/cpp/Add Digits.cpp:17
Method
addDigits
(int num)
Leetcode Challenge/February/java/Add Digits.java:17
Method
addNum
(self, num: int)
Leetcode July Challenge/Python/Find Median from Data Stream.py:10
Method
addNum
Leetcode July Challenge/C++/Find Median from Data Stream.cpp:7
Method
addWord
Leetcode Challenge/January/Design Add and Search Words Data Structure.cpp:38
Function
arrange_LinkedList
Even After odd Linked List.cpp:31
Method
atMostNGivenDigitSet
Leetcode Challenge/December/Numbers At Most N Given Digit Set.cpp:3
Method
backspaceCompare
Leetcode Challenge/May/C++/Backspace String Compare.cpp:3
Method
backtrack
(index)
Leetcode July Challenge/Python/Decode Ways II.py:4
Method
balanceBST
(TreeNode root)
Binary Search Tree/Balance a Binary Search Tree.java:18
Method
book
Leetcode Challenge/June/My Calendar I.cpp:9
Method
brokenCalc
(self, X: int, Y: int)
Leetcode Challenge/March/Python/Broken Calculator.py:2
Method
brokenCalc
Leetcode Challenge/March/C++/Broken Calculator.cpp:3
Method
brokenCalc
(int startValue, int target)
Leetcode Challenge/March/Java/Broken Calculator.java:2
Method
bstToGst
(TreeNode root)
Binary Search Tree/Binary Search Tree to Greater Sum Tree.java:19
← previous
next →
101–200 of 807, ranked by callers