MCPcopy Create free account

hub / github.com/Ayu-99/Data-Structures / functions

Functions807 in github.com/Ayu-99/Data-Structures

↓ 1 callersMethodisRotation
(String s1, String s2)
Check If One String Is Rotation of Another.java:4
↓ 1 callersMethodisRotation
(String s1, String s2)
Check If One String Is Rotation of Another.java:93
↓ 1 callersMethodkmpSearch
(String text, String pattern)
Check If One String Is Rotation of Another.java:64
↓ 1 callersFunctionkruskals
Graphs/Kruskals.cpp:60
↓ 1 callersFunctionlastIndexOfNumberInArray
(a,n,x)
Recursion/Last Index of number in array.py:1
↓ 1 callersFunctionlength
Recursion/String To Integer.cpp:1
↓ 1 callersMethodlengthOfLinkedList
(self, head)
Leetcode July Challenge/Python/Reverse Nodes in k-Group.py:8
↓ 1 callersMethodmajorityElement
(int[] nums)
Algorithms/Majority element.java:5
↓ 1 callersMethodmajorityElement
(int[] nums)
Algorithms/Majority element.java:28
↓ 1 callersMethodmarkTree
(TreeNode curr)
Leetcode Challenge/April/Java/Recover Binary Search Tree.java:11
↓ 1 callersMethodmaxDotProduct_helper
(self, nums1, nums2, i, j)
Dynamic Programming/Max Dot Product of Two Subsequences.py:7
↓ 1 callersFunctionmaxMEX
(arr, N, K)
Sliding window/Fixed-size sliding window/Maximum MEX from all subarrays of length K.py:1
↓ 1 callersFunctionmaxMeeting
(l, n)
Greedy/Find maximum meetings in one room.py:1
↓ 1 callersFunctionmaxProductSubset
(a, n)
Greedy/Maximum product subset of an array.py:2
↓ 1 callersFunctionmaxProducts
(price,k)
Greedy/Buy Maximum Stocks if i stocks can be bought on i-th day.py:1
↓ 1 callersFunctionmaxStops
(arr,n,m)
Greedy/Maximum trains for which stoppage can be provided.py:1
↓ 1 callersFunctionmaxSum
(stack1, stack2, stack3, n1, n2, n3)
Greedy/Find maximum sum possible equal sum of three stacks.py:2
↓ 1 callersFunctionmaxSum
(a,n)
Greedy/Maximum sum of absolute difference of any permutation.py:1
↓ 1 callersMethodmax_xor
Leetcode Challenge/January/Maximum XOR of Two Numbers in an Array.cpp:33
↓ 1 callersFunctionmergeLL
Merge Sort in LL.cpp:33
↓ 1 callersFunctionmergeSort
(array, begin, end)
Sorting Algorithms/Merge sort.py:36
↓ 1 callersMethodmergelist
(ListNode head1, ListNode head2)
Leetcode Challenge/February/java/Sort List.java:37
↓ 1 callersFunctionminCountHelper
Minimum Count.cpp:34
↓ 1 callersFunctionminElements
(arr , n)
Greedy/Smallest subset with sum greater than all other elements.py:1
↓ 1 callersFunctionminimumNumberOfSwaps
HashMaps/Minimum Number Of Swaps.cpp:13
↓ 1 callersFunctionpartition
(array, low, high)
Sorting Algorithms/Quick Sort.py:1
↓ 1 callersFunctionprims
Graphs/Prim's Algorithm.cpp:45
↓ 1 callersFunctionprintAllPossibleCodes
Recursion/Print all Possible Decodings of a given Digit Sequence.cpp:6
↓ 1 callersFunctionprintDFS
Graphs/Has Path.cpp:37
↓ 1 callersFunctionprintDFS
Graphs/All Connected Components.cpp:39
↓ 1 callersFunctionprintDFS
Graphs/Is Connected?.cpp:38
↓ 1 callersFunctionprintGraph
Graphs/Beginners/Adjacency List.cpp:12
↓ 1 callersFunctionprintGraph
Graphs/Beginners/Adjacency Matrix.cpp:11
↓ 1 callersFunctionprintPermutations
Recursion/Print all Permutations.cpp:4
↓ 1 callersFunctionquicksort
(array, low, high)
Sorting Algorithms/Quick Sort.py:13
↓ 1 callersFunctionrearrangeString
(s)
Greedy/Rearrange characters in a string such that no two adjacent are same.py:11
↓ 1 callersFunctionreplaceHelper
Recursion/Recursive program to replace all occurrences of pi with 3.14 in a given string.cpp:1
↓ 1 callersMethodreverseKGroupH
(self, head, k, length)
Leetcode July Challenge/Python/Reverse Nodes in k-Group.py:18
↓ 1 callersMethodrob_helper
(self,root)
Leetcode Challenge/December/House Robber III.py:12
↓ 1 callersMethodsingleNumber
(int[] nums)
Find Two Unique Numbers.java:31
↓ 1 callersFunctionsort_by_order
HashMaps/Sort strings lexicographically according to given sequence of characters.cpp:41
↓ 1 callersMethodsortedArrayToBST
(int start, int end)
Binary Search Tree/Balance a Binary Search Tree.java:28
↓ 1 callersFunctionsurvival
(S, N, M)
Greedy/Check if it is possible to survive on Island.py:4
↓ 1 callersMethodverticalSumHelper
(self, root, hd)
Trees/Vertical sum.py:6
MethodDFS
Leetcode Challenge/december2k22/Leaf-Similar Trees.cpp:21
MethodEdge
Graphs/Kruskals.cpp:41
MethodFreqStack
()
Leetcode Challenge/March/Java/Maximum Frequency Stack.java:7
MethodKthLargest
Leetcode Challenge/April/C++/Kth Largest Element in a Stream.cpp:5
MethodKthLargest
(int k, int[] a)
Leetcode Challenge/April/Java/Kth Largest Element in a Stream.java:5
MethodMyCalendar
Leetcode Challenge/June/My Calendar I.cpp:5
MethodMyLinkedList
Initialize your data structure here. */
Linked List/Design Linked List.cpp:51
MethodMyQueue
Leetcode Challenge/december2k22/Implement Queue using Stacks.cpp:5
MethodMyStack
Leetcode Challenge/May/C++/Implement Stack using Queues.cpp:7
MethodNode
Linked List/Design Linked List.cpp:43
MethodNode
(int node, int dist, int visited)
Leetcode Challenge/February/java/Shortest Path Visiting All Nodes.java:9
MethodNumArray
Leetcode Challenge/June/Range Sum Query - Mutable.cpp:46
MethodNumberContainers
()
Leetcode Feb challenge2k25/Design a Number Container System.java:5
MethodQueue
Stacks and Queues/Queue using LL.cpp:94
MethodSolution
Leetcode July Challenge/C++/Shuffle an Array.cpp:7
MethodSolution
@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
MethodStack
Stacks and Queues/Stack using LL.cpp:92
MethodStreamChecker
Leetcode Challenge/December/Stream of Characters.cpp:27
MethodTrieNode
Leetcode Challenge/January/Maximum XOR of Two Numbers in an Array.cpp:13
MethodTrieNode
Leetcode Challenge/December/Stream of Characters.cpp:5
MethodTuple
(Integer val, Integer freq, Integer order)
Leetcode Challenge/March/Java/Maximum Frequency Stack.java:32
MethodUndergroundSystem
Leetcode Challenge/April/C++/Design Underground System.cpp:6
MethodUndergroundSystem
()
Leetcode Challenge/April/Java/Design Underground System.java:5
MethodWordDictionary
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
MethodaddAtHead
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
MethodaddAtIndex
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
MethodaddAtTail
Append a node of value val to the last element of the linked list. */
Linked List/Design Linked List.cpp:73
MethodaddBinary
Leetcode Challenge/January/Add Binary.cpp:3
MethodaddDigits
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
MethodaddDigits
(int num)
Leetcode Challenge/February/java/Add Digits.java:17
MethodaddNum
(self, num: int)
Leetcode July Challenge/Python/Find Median from Data Stream.py:10
MethodaddNum
Leetcode July Challenge/C++/Find Median from Data Stream.cpp:7
MethodaddWord
Leetcode Challenge/January/Design Add and Search Words Data Structure.cpp:38
Functionarrange_LinkedList
Even After odd Linked List.cpp:31
MethodatMostNGivenDigitSet
Leetcode Challenge/December/Numbers At Most N Given Digit Set.cpp:3
MethodbackspaceCompare
Leetcode Challenge/May/C++/Backspace String Compare.cpp:3
Methodbacktrack
(index)
Leetcode July Challenge/Python/Decode Ways II.py:4
MethodbalanceBST
(TreeNode root)
Binary Search Tree/Balance a Binary Search Tree.java:18
Methodbook
Leetcode Challenge/June/My Calendar I.cpp:9
MethodbrokenCalc
(self, X: int, Y: int)
Leetcode Challenge/March/Python/Broken Calculator.py:2
MethodbrokenCalc
Leetcode Challenge/March/C++/Broken Calculator.cpp:3
MethodbrokenCalc
(int startValue, int target)
Leetcode Challenge/March/Java/Broken Calculator.java:2
MethodbstToGst
(TreeNode root)
Binary Search Tree/Binary Search Tree to Greater Sum Tree.java:19
← previousnext →101–200 of 807, ranked by callers