MCPcopy Create free account

hub / github.com/codedecks-in/LeetCode-Solutions / functions

Functions283 in github.com/codedecks-in/LeetCode-Solutions

MethodminAddToMakeValid
C++/minimum-add-to-make-parentheses-valid.cpp:5
MethodminCameraCover
C++/Binary-Tree-Cameras.cpp:29
FunctionminDepth
(root)
JavaScript/111-minimum-depth-of-binary-tree.js:25
MethodminDistance
(self, s1: str, s2: str)
Python/edit-distance.py:7
MethodminFlips
C++/Minimum-Number-of-Flips-to-Convert-Binary-Matrix-to-Zero-Matrix.cpp:29
MethodminOperations
C++/Crawler-Log-Folder.cpp:3
MethodminOperations
(String[] logs)
Java/crawler-log-folder-leetcode-1598.java:2
MethodminRemoveToMakeValid
C++/minimum-remove-to-make-valid-parentheses.cpp:3
MethodminimumEffortPath
(int[][] heights)
Java/path-with-minimum-effort.java:21
MethodmissingNumber
(int[] nums)
Java/missing-number.java:10
MethodmoveZeroes
C++/Move-Zeroes.cpp:7
FunctionmyPow
(x, n)
JavaScript/50.Powxn.js:40
MethodmyPow
(self, x: float, n: int)
Python/50.Powxn.py:7
MethodnetworkDelayTime
C++/Network-delay-time.cpp:5
MethodnextGreaterElement
(self, nums1: List[int], nums2: List[int])
Python/496_nextgreaterelement.py:9
MethodnumDecodings
(self, s: str)
Python/decode-ways.py:7
MethodnumIdenticalPairs
(int[] nums)
Java/Number-of-Good-Pairs.java:2
MethodnumIslands
@param grid @return
Java/NumberOfIslands.java:29
MethodnumJewelsInStones
(String J, String S)
Java/May-LeetCoding-Challenge/Day-2-Jewels-and-Stones.java:16
MethodnumOfMinutes
C++/Time-Needed-To-Inform-All-Employees.cpp:18
MethodnumberToRoman
(int number)
Java/integer-to-roman.java:2
MethodorangesRotting
(self, grid: List[List[int]])
Python/994_Rotting_Oranges.py:5
MethodpathSum
C++/Path-Sum-II.cpp:31
Methodpermute
(int[] nums)
Java/Perm_Recus.java:1
Methodping
C++/Number-of-Recent-Calls.cpp:9
MethodpreorderTraversal
(TreeNode root)
Java/binary-tree-preorder-traversal.java:16
MethodprintGrid
A utility function to print grid */
C++/Sudoku-Solver.cpp:92
Methodput
(self, key: int, value: int)
Python/LRUCache.py:27
MethodrecoverFromPreorder
C++/Recover-a-Tree-From-Preorder-Traversal.cpp:14
Methodrecur
C++/combination-sum.cpp:4
MethodremoveCoveredIntervals
C++/Remove-Covered-Intervals.cpp:12
MethodremoveDuplicates
C++/remove-all-adjacent-duplicates-in-string.cpp:3
MethodremoveElement
C++/remove-element.cpp:8
MethodremoveNthFromEnd
(ListNode head, int n)
Java/remove-nth-node-from-end-of-list.java:12
MethodremoveStones
C++/Most-Stones-Removed-with-Same-Row-or-Column.cpp:36
MethodreorganizeString
(self, S: str)
Python/reorganize-string.py:10
Methodreverse
C++/Reverse-Integer.cpp:3
MethodreverseWords
(String s)
Java/reverse-words-in-a-string.java:23
MethodromanToNumber
(String roman)
Java/roman-to-integer.java:28
Methodrotate
Do not return anything, modify nums in-place instead.
Python/rotate-array.py:2
MethodrunningSum
(int[] nums)
Java/running-sum-of-1d-array.java:10
Methodsearch
(self, nums: List[int], target: int)
Python/search-in-rotated-sorted-array.py:10
Methodsearch
C++/BinarySearch.cpp:9
MethodsearchInsert
(self, nums: List[int], target: int)
Python/35.SearchInsertPosition.py:7
MethodsearchMatrix
(int[][] matrix, int target)
Java/Search-a-2d-matrix.java:2
MethodsetZeroes
(int[][] matrix)
Java/set-matrix-zeroes.java:2
MethodshortestBridge
C++/Shortest-Bridge.cpp:29
MethodshortestCommonSupersequence
C++/Shortest-Common-Supersequence.cpp:9
Methodshow
(self,head)
Python/LRUCache.py:58
Methodshuffle
(int[] nums, int n)
Java/shuffle-the-array.java:2
FunctionsingleNumber
(self, nums: List[int])
Python/single-number.py:2
MethodsingleNumber
(self, nums: List[int])
Python/single-number-iii.py:56
MethodsingleNumber
(self, nums: List[int])
Python/single-number-ii.py:2
MethodsingleNumber
C++/Single-Number-III.cpp:9
MethodsingleNumber
C++/Single-Number-II.cpp:9
MethodsingleNumber
C++/Single-Number.cpp:11
MethodsingleNumber
(int[] nums)
Java/single-number.java:20
Functionsolution
(isBadVersion)
JavaScript/First-Bad-Version.js:26
Methodsolve
(self, prices)
Python/best-time-to-buy-and-sell-stock-ii.py:7
Methodsolve
C++/Binary-Tree-Maximum-Path-Sum.cpp:20
Methodsolve
C++/Sudoku-Solver.cpp:69
MethodsolveSudoku
C++/Sudoku-Solver.cpp:102
MethodsortedArrayToBST
(int[] nums)
Java/convert-sorted-list-to-binary-search-tree.java:17
FunctionsubdomainVisits
(cpdomains)
JavaScript/Subdomain-Visit-Count.js:22
MethodsubsetSum
using 0/1 knapsack top down approach
C++/Partition-Equal-Subset-Sum.cpp:12
MethodsumNumbers
(TreeNode root)
Java/sum-root-to-leaf-numbers.java:23
MethodsumRange
(int l, int r)
Java/Range-Sum-Query-Mutable.java:55
MethodthreeSum
C++/3sum.cpp:3
MethodtitleToNumber
C++/Excel-Sheet-Column-Number.cpp:20
Methodtrap
(self, height: List[int])
Python/trapping_rain.py:2
FunctiontwoSum
C++/two-sum.cpp:25
MethodtwoSum
(self, nums: List[int], target: int)
Python/1_TwoSum.py:32
MethodtwoSum
C++/two-sum.cpp:4
MethodtwoSum
(int[] nums, int target)
Java/two-sum.java:11
MethodunionEdge
C++/Most-Stones-Removed-with-Same-Row-or-Column.cpp:21
MethoduniquePathsIII
C++/Unique-Paths-III.cpp:35
Methodupdate
(int pos, int val)
Java/Range-Sum-Query-Mutable.java:36
Methodupdate_root
C++/LRU-Cache.cpp:22
Methodvalid
C++/Minimum-Number-of-Flips-to-Convert-Binary-Matrix-to-Zero-Matrix.cpp:4
MethodwordBreak
(self, s: str, wordDict: List[str])
Python/word-break-1.py:9
MethodxorOperation
(int n, int start)
Java/xor-op-in-array.java:2
FunctionzigzagLevelOrder
(root)
JavaScript/Binary-Tree-ZigZag-Traversal.js:35
MethodzigzagLevelOrder
C++/Binary-Tree-Zigzag-Level-Order-Traversal.cpp:12
← previous201–283 of 283, ranked by callers