Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codedecks-in/LeetCode-Solutions
/ functions
Functions
283 in github.com/codedecks-in/LeetCode-Solutions
⨍
Functions
283
◇
Types & classes
171
Method
deleteFront
Deletes an item from the front of Deque. Return true if the operation is successful.
Java/design-circular-deque.java:72
Method
deleteLast
Deletes an item from the rear of Deque. Return true if the operation is successful.
Java/design-circular-deque.java:98
Method
detectCapitalUse
(self, word: str)
Python/detect-capital.py:23
Method
detectCapitalUse
C++/Detect-Capital.cpp:9
Method
detectCapitalUse
(String word)
Java/detect-capital-use.java:2
Method
detectCycle
C++/Linked-List-Cycle-II.cpp:5
Method
detectCycle
(ListNode head)
Java/linked-list-cycle-ii.java:14
Method
dfs
C++/Unique-Paths-III.cpp:13
Method
dfs
C++/Binary-Tree-Cameras.cpp:16
Method
dfs
Let's run a simple dfs. If we come to the same cell with two robots, let's subtract that value.
C++/Cherry-Pickup-II.cpp:4
Method
dfs
helper function
C++/Course-Schedule.cpp:17
Method
dfs
C++/Critical-Connections-in-a-Network.cpp:35
Method
dfs
C++/Time-Needed-To-Inform-All-Employees.cpp:9
Method
dfs
C++/Path-Sum-II.cpp:6
Method
diagonalSum
(int[][] mat)
Java/matrix-diagonal-sum.java:10
Method
divisorGame
(self, N: int)
Python/divisor-game.py:7
Function
duplicateZeros
(arr)
JavaScript/Duplicate-Zeroes.js:24
Method
editdistance
(i,j,s1=s1,s2=s2)
Python/edit-distance.py:9
Method
enQueue
Insert an element into the circular queue. Return true if the operation is successful.
Python/622-Design-Circular-Queue.py:35
Method
evalRPN
(self, tokens: List[str])
Python/150.EvaluateReversePolishNotation.py:7
Method
findComplement
C++/Number-Complement.cpp:9
Method
findComplement
(int num)
Java/number-complement.java:2
Method
findMedianSortedArrays
(int[] nums1, int[] nums2)
Java/median-of-two-sorted-arrays.java:2
Method
findMin
(self, nums: List[int])
Python/find-minimum-in-rotated-sorted-array.py:7
Method
findOrder
C++/Course-Schedule-II.cpp:6
Method
findPairs
C++/k-diff-pairs-in-an-array.cpp:5
Method
findPoisonedDuration
C++/teemo-attacking.cpp:10
Method
findRedundantConnection
(int[][] edges)
Java/Redundant-Connection/redundant-connection.java:38
Method
findShortestSubArray
C++/Degree-of-an-Array.cpp:11
Method
findShortestSubArray
(int[] nums)
Java/Degree-of-an-Array.java:8
Method
findTheDifference
C++/Find-The-Difference.cpp:12
Method
findUnassignedLocation
C++/Sudoku-Solver.cpp:53
Method
find_parent
C++/Most-Stones-Removed-with-Same-Row-or-Column.cpp:15
Method
firstBadVersion
(int n)
Java/May-LeetCoding-Challenge/Day-1-First-Bad-Version.java:26
Method
firstUniqChar
(String s)
Java/first-unique-character-in-a-string.java:8
Method
firstUniqChar
(String s)
Java/May-LeetCoding-Challenge/Day-5-First-Unique-Character.java:13
Method
gardenNoAdj
(self, N, paths)
Python/1042_FlowerPlantingwithNoAdjacent.py:18
Method
generateTheString
(int n)
Java/generate-a-string-with-characters-that-have-odd-counts.java:2
Method
get
C++/Minimum-Number-of-Flips-to-Convert-Binary-Matrix-to-Zero-Matrix.cpp:20
Method
getFront
Get the front item from the deque.
Java/design-circular-deque.java:124
Method
getIntersectionNode
(ListNode headA, ListNode headB)
Java/intersection-of-two-linked-lists.java:13
Method
getRear
Get the last item from the deque.
Java/design-circular-deque.java:132
Method
getRow
(self, k: int)
Python/pascals-triangle-ii.py:7
Method
get_root
()
Java/complete-binary-tree-inserter.java:61
Method
hasCycle
(ListNode head)
Java/linked-list-cycle.java:13
Method
hasPathSum
(TreeNode root, int sum)
Java/path-sum.java:17
Method
helper
(s,dict,dp)
Python/word-break-1.py:12
Method
increment
(int k, int val)
Java/Design-a-Stack-With-Increment-Operation.java:22
Method
initParent
C++/Critical-Connections-in-a-Network.cpp:17
Method
initParent
C++/Most-Stones-Removed-with-Same-Row-or-Column.cpp:8
Method
inorderTraversal
(self, root: TreeNode)
Python/binary-tree-inorder-traversal.py:13
Method
inorderTraversal
(self, root: TreeNode)
Python/Iterative-Inorder-tree-traversal.py:8
Method
inorderTraversal
(TreeNode root)
Java/binary-tree-inorder-traversal.java:16
Method
insertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Java/design-circular-deque.java:23
Method
insertLast
Adds an item at the rear of Deque. Return true if the operation is successful.
Java/design-circular-deque.java:47
Method
integerBreak
C++/Integer-Break.cpp:12
Method
isAnagram
(String s, String t)
Java/valid-anagram.java:73
Method
isAnagramUsingBruteForce
(String s, String t)
Java/valid-anagram.java:17
Method
isAnagramUsingSorting
(String s, String t)
Java/valid-anagram.java:51
Method
isArmstrongNumber
(int N, int k)
Java/Armstrong-Number.java:37
Method
isBalanced
(TreeNode root)
Java/Balanced-Binary-Tree.java:17
Method
isBipartite
C++/Is-Graph-Bipartite.cpp:6
Method
isBoxSafe
to check whether num is valid in that 3*3 matrix grid
C++/Sudoku-Solver.cpp:33
Method
isColumnSafe
to check whether num is valid in that column
C++/Sudoku-Solver.cpp:22
Method
isFull
Checks whether the circular deque is full or not.
Java/design-circular-deque.java:145
Method
isHappy
(int n)
Java/Happy-Number.java:2
Method
isMatch
(self, s: str, p: str)
Python/wildcard-matching.py:39
Method
isPalindrome
(int x)
Java/palindrome-number.java:2
Method
isPowerOfThree
(int n)
Java/Power-of-Three.java:2
Method
isRowSafe
to check whether num is valid in that row
C++/Sudoku-Solver.cpp:11
Method
isSafe
C++/Sudoku-Solver.cpp:47
Method
isSameTree
(self, p: TreeNode, q: TreeNode)
Python/100.SameTree.py:15
Method
isSameTree
(TreeNode p, TreeNode q)
Java/Same-Tree.java:19
Method
isSymmetric
(self, root: TreeNode)
Python/101.SymmetricTree.py:7
Method
isSymmetric
(TreeNode root)
Java/symmetric-tree.java:13
Method
isUgly
(int num)
Java/Ugly-Number.java:2
Method
isValid
(self, s: str)
Python/20_ValidParentheses.py:23
Method
isValid
C++/Unique-Paths-III.cpp:9
Function
isValidBST
( root, lower = Number.MIN_SAFE_INTEGER, upper = Number.MAX_SAFE_INTEGER )
JavaScript/98.Validate-Binary-Search-Tree.js:32
Method
isValidSudoku
(char[][] board)
Java/valid-sudoku.java:30
Method
kClosest
C++/k-closest-points-to-origin.cpp:11
Method
ladderLength
(String beginWord, String endWord, List<String> wordList)
Java/word-ladder.java:19
Method
largestRectangleArea
C++/Largest-Rectangle-in-Histogram.cpp:7
Method
leastBricks
C++/brick-wall.cpp:4
Method
leastInterval
(self, tasks: List[str], n: int)
Python/621-Task-Scheduler.py:21
Method
longestMountain
C++/Longest-Mountain-in-Array.cpp:37
Function
longestPalindrome
(s)
JavaScript/5.Longest-Palindromic-Substring.js:33
Method
longestPalindrome
(self, s: str)
Python/5_LongestPalindromicSubstring.py:23
Method
longestValidParentheses
(self, s)
Python/longest-valid-parentheses.py:8
Method
markIsland
C++/Shortest-Bridge.cpp:15
Method
maxArea
:type height: List[int] :rtype: int
Python/container_with_most_water.py:2
Method
maxDepth
(self, root: TreeNode)
Python/maximum-depth-of-binary-tree.py:13
Method
maxDepth
(String s)
Java/max-nesting-depth-parentheses.java:2
Method
maxPathSum
C++/Binary-Tree-Maximum-Path-Sum.cpp:41
Function
maxProduct
(nums)
JavaScript/152.Maximum-Product-Subarray.js:20
Method
maxProfit
C++/Best-Time-to-Buy-and-Sell-Stock-II.cpp:8
Method
maxSubArray
C++/maximum-subarray.cpp:9
Method
merge
(self, intervals: List[List[int]])
Python/56_MergeIntervals.py:21
Method
mergeKLists
C++/merge-k-sorted-lists.cpp:29
Method
middleNode
(ListNode head)
Java/middle-of-the-linked-list.java:12
← previous
next →
101–200 of 283, ranked by callers