MCPcopy Create free account

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

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

Methoddfs
Leetcode Challenge/June/Matchsticks to Square.cpp:4
Methoddfs
Leetcode Challenge/June2k22/cpp/N Queens II.cpp:12
Methoddfs
Leetcode Challenge/June2k22/cpp/Search Suggestions System.cpp:50
Methoddfs
Leetcode Challenge/June2k22/cpp/Binary Tree Cameras.cpp:20
Methoddfs
Leetcode Challenge/February/cpp/Clone Graph.cpp:24
Methoddfs
Leetcode Challenge/January/Cherry Pickup II.cpp:6
Methoddfs
Leetcode Challenge/January/Sequential Digits.cpp:5
Methoddfs
Leetcode Challenge/December/Course Schedule II.cpp:3
FunctionelementsInRangeK1K2
Print Elements in Range in BST.cpp:35
Methodenough
(distance)
Binary Search/Python/Find K-th Smallest Pair Distance.py:4
Methodenqueue
Stacks and Queues/Queue using LL.cpp:100
MethodevalRPN
Leetcode Challenge/december2k22/Evaluate Reverse Polish Notation.cpp:4
MethodevalRPN
(self, A)
Stacks and Queues/Evaluate Expression.py:5
Methodfib
Leetcode Challenge/July2K22/cpp/Fibonacci Number.cpp:3
Methodfind132pattern
Leetcode Challenge/May/C++/132 Pattern.cpp:3
MethodfindAnagrams
Leetcode Challenge/February/cpp/Find all anagrams in a string.cpp:3
MethodfindCenter
(int[][] edges)
Graphs/Find Center of Star Graph.java:2
MethodfindClosestElements
(self, arr: List[int], k: int, x: int)
Leetcode July Challenge/Python/Find K Closest Elements.py:2
MethodfindClosestElements
Leetcode July Challenge/C++/Find K Closest Elements.cpp:23
MethodfindComplement
Leetcode Challenge/December/Number Complement.cpp:4
MethodfindContentChildren
(int[] g, int[] s)
Greedy/Assign Cookies.java:2
MethodfindDuplicate
(int[] nums)
Find Duplicate Number.java:6
MethodfindDuplicateSubtrees
Trees/Find Duplicate Subtrees.cpp:59
MethodfindInMountainArray
(self, target: int, mountain_arr: 'MountainArray')
Binary Search/Find in Mountain Array.py:11
MethodfindJudge
Leetcode Challenge/January/Find the Town Judge.cpp:3
MethodfindKthLargest
Leetcode Challenge/June2k22/cpp/Kth Largest Element in an Array.cpp:3
MethodfindLength
(self, A: List[int], B: List[int])
Leetcode July Challenge/Python/Maximum Length of Repeated Subarray Maximum Length of Repeated Subarray.py:2
MethodfindLength
Leetcode July Challenge/C++/Maximum Length of Repeated Subarray.cpp:3
MethodfindMatrix
(int[] v)
HashMaps/Convert an Array Into a 2D Array With Conditions.java:2
MethodfindMaxAverage
(self, nums: List[int], k: int)
Sliding window/Fixed-size sliding window/Maximum Average Subarray I.py:2
MethodfindMaxLength
Leetcode Challenge/February/cpp/Contiguous Array.cpp:3
MethodfindMaxLength
(int[] nums)
Leetcode Challenge/February/java/Contiguous Array.java:2
MethodfindMaximizedCapital
Heap/Max Heap/IPO.cpp:5
MethodfindMaximumXOR
Leetcode Challenge/January/Maximum XOR of Two Numbers in an Array.cpp:56
MethodfindMedian
(self)
Leetcode July Challenge/Python/Find Median from Data Stream.py:17
MethodfindMedian
Leetcode July Challenge/C++/Find Median from Data Stream.cpp:26
MethodfindMid
Linked List/Palindrome Linked List.cpp:13
MethodfindMinArrowShots
Leetcode Challenge/January/Minimum Number of Arrows to Burst Balloons.cpp:7
FunctionfindMinDiff
(self, A,N,M)
Greedy/Chocolate Distribution Problem.py:1
MethodfindMinHeightTrees
Leetcode Challenge/December/Minimum Height Trees.cpp:3
MethodfindOrder
Leetcode Challenge/December/Course Schedule II.cpp:18
MethodfindPairs
Leetcode Challenge/February/cpp/K-diff Pairs in an Array.cpp:3
MethodfindPairs
(int[] nums, int k)
Leetcode Challenge/February/java/K-diff Pairs in an Array.java:2
MethodfindParent
(src)
Leetcode Challenge/June/Python/Redundant Connection.py:8
FunctionfindPath
Find Path in BST.cpp:37
MethodfindPaths
Leetcode Challenge/June/Out of Boundary Paths.cpp:28
MethodfindPaths
(self, m: int, n: int, maxMove: int, startRow: int, startColumn: int)
Leetcode Challenge/June/Python/Out of Boundary Paths.py:27
MethodfindPathsH
Leetcode Challenge/June/Out of Boundary Paths.cpp:6
MethodfindPeakElement
(self, arr: List[int])
Leetcode July Challenge/Python/Find Peak Element.py:2
MethodfindPeakElement
Leetcode July Challenge/C++/Find Peak Element.cpp:3
MethodfindRedundantConnection
Leetcode Challenge/June/Redundant Connection.cpp:3
MethodfindRedundantConnection
(self, edges: List[List[int]])
Leetcode Challenge/June/Python/Redundant Connection.py:3
MethodfindRepeatedDnaSequences
(self, s: str)
Sliding window/Repeated DNA Sequences.py:2
MethodfindTheDifference
(String s, String t)
Find Extra Character.java:3
MethodfindTheDifference
Leetcode Challenge/February/cpp/Find the Difference.cpp:3
MethodfindTheDifference
(String s, String t)
Leetcode Challenge/February/java/Find the Difference.java:2
MethodfindTilt
Leetcode Challenge/December/Binary Tree Tilt.cpp:21
MethodfindUnsortedSubarray
Leetcode Challenge/May/C++/Shortest Unsorted Continuous Subarray.cpp:3
MethodfirstNegInt
(self, arr, k)
Sliding window/Fixed-size sliding window/First negative in every window of size k.py:4
MethodfourSum
(self, nums: List[int], target: int)
Leetcode July Challenge/Python/4 Sum.py:2
MethodfourSum
Leetcode July Challenge/C++/4 Sum.cpp:3
MethodfourSumCount
Leetcode Challenge/February/cpp/4 sum II.cpp:3
MethodfourSumCount
(int[] nums1, int[] nums2, int[] nums3, int[] nums4)
Leetcode Challenge/February/java/4 Sum II.java:2
Functionfree_singly_linked_list
Inserting A Node at a given position in Linked List.c:61
MethodfullBloomFlowers
(self, flowers: List[List[int]], people: List[int])
Binary Search/Number of Flowers in Full Bloom.py:2
MethodfurthestBuilding
Leetcode Challenge/June2k22/cpp/Furthest Building You Can Reach.cpp:34
MethodgameOfLife
Leetcode Challenge/April/C++/Game of Life.cpp:8
Methodgenerate
Leetcode July Challenge/C++/Gray Code.cpp:13
Methodgenerate
Leetcode Challenge/June/Pascal's Triangle.cpp:3
MethodgenerateMatrix
Leetcode Challenge/April/C++/Spiral Matrix II.cpp:3
MethodgenerateParenthesis
Leetcode Challenge/June/Generate Parentheses.cpp:22
MethodgetAllElements
Leetcode Challenge/January/All Elements in Two Binary Search Trees.cpp:60
MethodgetAverageTime
(self, startStation: str, endStation: str)
Leetcode Challenge/April/Python/Design Underground System.py:17
MethodgetAverageTime
Leetcode Challenge/April/C++/Design Underground System.cpp:21
MethodgetAverageTime
(String startStation, String endStation)
Leetcode Challenge/April/Java/Design Underground System.java:22
MethodgetDecimalValue
Linked List/Convert Binary Number In a LL To Integer.cpp:70
MethodgetDecimalValue
Leetcode Challenge/December/Convert Binary Number in a Linked List to Integer.cpp:27
MethodgetMin
Heap/Min Heap/Implementation.cpp:10
MethodgetRandom
Returns a random node's value. */
Leetcode Challenge/January/Linked List Random Node.cpp:27
MethodgetRear
Stacks and Queues/Queue.cpp:46
MethodgetSize
Heap/Min Heap/Implementation.cpp:14
MethodgetSize
Stacks and Queues/Stack using LL.cpp:97
MethodgetSize
Stacks and Queues/Queue using LL.cpp:119
MethodgetSmallestString
(self, n: int, k: int)
Leetcode Challenge/March/Python/Smallest String With A Given Numeric Value.py:2
MethodgetSmallestString
Leetcode Challenge/March/C++/Smallest String With A Given Numeric Value.cpp:3
MethodgetSmallestString
(int n, int k)
Leetcode Challenge/March/Java/Smallest String With A Given Numeric Value.java:2
MethodgetSuccessor
(self, A, B)
Trees/Next Greater Number BST.py:12
MethodgrayCode
(self, n: int)
Leetcode July Challenge/Python/Gray Code.py:4
MethodgrayCode
Leetcode July Challenge/C++/Gray Code.cpp:3
MethodhasAllCodes
Leetcode Challenge/May/C++/Check If a String Contains All Binary Codes of Size K.cpp:3
FunctionhasCycle
Leetcode Challenge/March/Java/Linked List Cycle.cpp:13
MethodhasCycle
(self, head: Optional[ListNode])
Leetcode Challenge/March/Python/Linked List Cycle.py:8
MethodhasCycle
Leetcode Challenge/March/C++/Linked List Cycle.cpp:11
Functionheight
heightOfABTree.cpp:27
MethodheightChecker
(int[] heights)
Sorting/Height checker.java:4
Methodhelper
(n)
Leetcode July Challenge/Python/Gray Code.py:6
Methodhelper
Leetcode July Challenge/C++/Count Vowels Permutation.cpp:9
Methodhelper
Leetcode July Challenge/C++/Binary Tree Pruning.cpp:15
Methodhelper
Linked List/Convert Sorted List to BST.cpp:51
Methodhelper
Leetcode Challenge/April/C++/Increasing Order Search Tree.cpp:16
← previousnext →301–400 of 807, ranked by callers