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
Method
scoreOfParentheses
Leetcode Challenge/March/C++/Score of Parentheses.cpp:22
Method
scoreOfParentheses
(String s)
Leetcode Challenge/March/Java/Score of Parentheses.java:2
Method
search
(self, nums: List[int], target: int)
Leetcode Challenge/March/Python/Binary Search.py:2
Method
search
Leetcode Challenge/March/C++/Binary Seach.cpp:3
Method
search
Leetcode Challenge/March/C++/Search in Rotated Sorted Array II.cpp:3
Method
search
(int[] nums, int target)
Leetcode Challenge/March/Java/Binary Search.java:2
Method
search
Leetcode Challenge/January/Design Add and Search Words Data Structure.cpp:48
Method
searchBST
(self, root: TreeNode, val: int)
Leetcode Challenge/April/Python/Search in a Binary Search Tree.py:21
Method
searchBST
Leetcode Challenge/April/C++/Search in a Binary Search Tree.cpp:14
Method
searchBST
(TreeNode root, int val)
Leetcode Challenge/April/Java/Search in Binary Search Tree.java:17
Function
searchInBST
Search in BST.cpp:40
Method
searchMatrix
Leetcode Challenge/March/C++/Search a 2D Matrix.cpp:3
Method
searchRange
(self, nums: List[int], target: int)
Find First and Last Position of Element in Sorted Array.py:2
Method
searchWord
Leetcode Challenge/June2k22/cpp/Search Suggestions System.cpp:39
Method
sequentialDigits
Leetcode Challenge/January/Sequential Digits.cpp:17
Method
sequentialDigits
(int low, int high)
Leetcode Challenge/January/Java/Sequential Digits.java:1
Method
shiftGrid
Leetcode Challenge/April/C++/Shift 2D Grid.cpp:3
Method
shipWithinDays
Trees/Capacity To Ship Packages Within D Days.cpp:18
Method
shortestPathLength
Leetcode Challenge/February/cpp/Shortest Path Visiting All Nodes.cpp:39
Method
shortestPathLength
(int[][] graph)
Leetcode Challenge/February/java/Shortest Path Visiting All Nodes.java:15
Method
shuffle
Returns a random shuffling of the array.
Leetcode July Challenge/Python/Shuffle an Array.py:13
Method
shuffle
Leetcode July Challenge/C++/Shuffle an Array.cpp:16
Method
simplifyPath
Leetcode Challenge/March/C++/Simplify Path.cpp:3
Method
singleNumber
(int[] nums)
Elements appearing Thrice.java:4
Method
singleNumber
Leetcode Challenge/January/Single Number.cpp:3
Method
singleNumber
(int[] nums)
Leetcode Challenge/January/Java/Single Number Java.java:2
Method
singleNumber
(int[] nums)
Leetcode Challenge/January/Java/Single Number.java:2
Function
skipMdeleteN
Delete every N nodes.cpp:40
Method
smallestDistancePair
(self, nums: List[int], k: int)
Binary Search/Python/Find K-th Smallest Pair Distance.py:2
Method
smallestDistancePair
Binary Search/C++/Find K-th Smallest Pair Distance.cpp:18
Method
smallestDistancePair
(self, nums, k): nums.sort()
Binary Search/Java/Find K-th Smallest Pair Distance.java:2
Function
solve
Graphs/Largest Piece.cpp:57
Function
solve
Graphs/Coding Ninjas.cpp:92
Function
solve
Graphs/Islands.cpp:60
Method
solve
Graphs/Longest Increasing Path in a Matrix.cpp:12
Method
solve
(TreeNode A, int B)
Trees/Path to given node.java:34
Method
solve
Trees/Construct Quad Tree.cpp:74
Method
solve
Leetcode Challenge/February/cpp/Shortest Path Visiting All Nodes.cpp:4
Method
solve
Leetcode Challenge/February/cpp/Combination Sum.cpp:4
Method
sortArrayByParity
Leetcode Challenge/May/C++/Sort Array By Parity.cpp:3
Method
sortColors
(int[] nums)
Sorting/Sort colors.java:7
Method
sortList
Leetcode Challenge/February/cpp/SortList.cpp:13
Method
sortList
(ListNode head)
Leetcode Challenge/February/java/Sort List.java:12
Function
sortedInsert
Inserting a Node Into a Sorted Doubly Linked List.cpp:1
Method
sortedListToBST
Linked List/Convert Sorted List to BST.cpp:75
Method
sortedSquares
(int[] nums)
Squares of a Sorted Array.java:2
Method
sortedSquares
Leetcode Challenge/March2k24/Squares of a Sorted Array.cpp:3
Method
splitArray
Leetcode Challenge/March/C++/Split Array Largest Sum.cpp:13
Function
staircase
Recursion/Staircase.cpp:1
Function
stockSpan
Stacks and Queues/Assignment/Stock span.cpp:28
Method
stoneGameVII
Leetcode Challenge/June/Stone Game VII.cpp:34
Method
stoneGame_helper
Leetcode Challenge/June/Stone Game VII.cpp:4
Function
stringToNumber
Recursion/String To Integer.cpp:9
Method
sub
Recursion/Print all subsets of an array.cpp:8
Method
subarraySum
Leetcode Challenge/February/cpp/Subarray Sum Equals K.cpp:3
Method
subarraySum
(int[] nums, int k)
Leetcode Challenge/February/java/Subarray Sum Equals K.java:2
Method
subsets
Recursion/Print all subsets of an array.cpp:21
Method
suggestedProducts
Leetcode Challenge/June2k22/cpp/Search Suggestions System.cpp:61
Function
sumOfMaxAndMin
(nums, n, k)
Sliding window/Fixed-size sliding window/Sum of minimum and maximum elements of all subarrays of size k.py:5
Method
sumRange
Leetcode Challenge/June/Range Sum Query - Mutable.cpp:18
Method
sumRegion
(self, row1: int, col1: int, row2: int, col2: int)
Algorithms/Kadane's Algorithm (2D).py:50
Method
sumRootToLeaf
Leetcode Challenge/January/Sum of Root To Leaf Binary Numbers.cpp:14
Method
summaryRanges
Leetcode Challenge/February/cpp/Summary Ranges.cpp:3
Method
summaryRanges
(int[] nums)
Leetcode Challenge/February/java/Summary Ranges.java:1
Method
swapNodes
(self, head: Optional[ListNode], k: int)
Leetcode Challenge/April/Python/Swapping Nodes in a Linked List.py:7
Method
swapNodes
Leetcode Challenge/April/C++/Swapping Nodes in a Linked List.cpp:13
Method
swapNodes
(ListNode head, int k)
Leetcode Challenge/April/Java/Swapping Nodes in a Linked List.java:3
Method
swapPairs
Leetcode Challenge/February/cpp/Swap Nodes in Pairs.cpp:13
Method
swapPairs
(ListNode head)
Leetcode Challenge/February/java/Swap Nodes in Pairs.java:12
Function
swap_nodes
SwapTwoNodesinLL.cpp:39
Method
swimInWater
Leetcode Challenge/June/Swim in Rising Water.cpp:4
Method
threeEqualParts
(self, arr: List[int])
Leetcode July Challenge/Python/Three Equal Parts.py:2
Method
threeEqualParts
Leetcode July Challenge/C++/Three Equal Parts.cpp:3
Method
threeSumMulti
Leetcode Challenge/April/C++/3Sum With Multiplicity.cpp:3
Method
titleToNumber
Leetcode Challenge/February/cpp/Excel Sheet Column Number.cpp:3
Method
titleToNumber
(String columnTitle)
Leetcode Challenge/February/java/Excel Sheet Column Number.java:2
Method
topKFrequent
(int[] nums, int k)
Heap/Min Heap/Top K Frequent Elements.java:4
Method
topKFrequent
Leetcode Challenge/April/C++/Top K Frequent Elements.cpp:3
Method
totalNQueens
Leetcode Challenge/June2k22/cpp/N Queens II.cpp:3
Function
towerOfHanoi
Recursion/Tower Of Hanoi.cpp:1
Method
traverse
Trees/Find Duplicate Subtrees.cpp:42
Method
triangleNumber
(self, nums: List[int])
Leetcode July Challenge/Python/Valid Triangle Number.py:2
Method
triangleNumber
Leetcode July Challenge/C++/Valid Triangle Number.cpp:3
Method
trie
Leetcode Challenge/January/Maximum XOR of Two Numbers in an Array.cpp:3
Method
trimBST
(self, root: TreeNode, L: int, R: int)
Leetcode Challenge/April/Python/Trim a BST.py:10
Method
trimBST
Leetcode Challenge/April/C++/Trim a BST.cpp:14
Method
trimBST
Leetcode Challenge/April/C++/Trim a BST.cpp:29
Method
trimBST
(TreeNode root, int low, int high)
Leetcode Challenge/April/Java/Trim a BST.java:17
Method
twoCitySchedCost
(self, costs: List[List[int]])
Leetcode Challenge/March/Python/Two City Scheduling.py:2
Method
twoCitySchedCost
Leetcode Challenge/March/C++/Two City Scheduling.cpp:3
Method
twoCitySchedCost
(int[][] costs)
Leetcode Challenge/March/Java/Two City Scheduling.java:2
Method
twoSum
Leetcode Challenge/June2k22/cpp/Two Sum II - Input Array Is Sorted.cpp:3
Method
update
Leetcode Challenge/June/Range Sum Query - Mutable.cpp:32
Method
validMountainArray
Leetcode Challenge/January/Valid Mountain Array.cpp:3
Method
validPalindrome
(String s)
Check If String Is Palindrome After At Most One Deletion.java:2
Method
validPalindrome
Leetcode Challenge/April/C++/Valid Palindrome II.cpp:12
Method
validPath
Leetcode Challenge/december2k22/Find if Path Exists in Graph.cpp:20
Method
validateStackSequences
Leetcode Challenge/March/C++/Validate Stack Sequences.cpp:19
Method
verticalSum
(self, root)
Trees/Vertical sum.py:14
Method
widthOfBinaryTree
Leetcode Challenge/February/cpp/Maximum Width of Binary Tree.cpp:14
← previous
next →
701–800 of 807, ranked by callers