Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SHY-Corp/LeetCode-Solutions
/ functions
Functions
846 in github.com/SHY-Corp/LeetCode-Solutions
⨍
Functions
846
◇
Types & classes
583
Method
coinChange
(int[] coins, int amount)
Java/322. CoinChange.java:18
Method
collinear
to check if 3 points are collinear or not
C++/593. Valid Square.cpp:29
Method
combinationSum
(self, candidates: List[int], target: int)
Python/39. combinationSum.py:2
Method
combinationSum
C++/39. Combination Sum.cpp:57
Method
combinationSum2
C++/40.CombinationSumII.cpp:13
Method
combinationSum3
C++/216.CombinationSumIII.cpp:20
Method
combine
C++/77. Combinations.cpp:51
Method
comparator_sort
C++/871. MinimumNumberOfRefuelingStops.cpp:17
Method
connect
connect to nodes to belong to the same set
C++/1627. Graph Connectivity With Threshold.cpp:24
Method
connect
C++/117.PopulatingNextRightPointersInEachNodeII.cpp:21
Method
connect
C++/116. PopulatingNextRightPointersInEachNode.cpp:21
Method
consecutiveNumbersSum
C++/829. ConsecutiveNumbersSum.cpp:11
Method
consecutiveNumbersSum
(int N)
Java/829. ConsecutiveNumberSum.java:38
Method
constructMaximumBinaryTree
C++/654. MaximumBinaryTree.cpp:34
Method
constructMaximumBinaryTreeUtil
C++/654. MaximumBinaryTree.cpp:15
Method
containVirus
(int[][] grid)
Java/749. ContainVirus.java:43
Method
containsDuplicate
C++/217. ContainsDuplicate.cpp:3
Method
containsNearbyAlmostDuplicate
C++/220. ContainsDuplicateIII.cpp:7
Method
convert
C++/6. ZigzagConversion.cpp:16
Method
convertBST
C++/538.ConvertBSTtoGreaterTree.cpp:16
Method
convertToBase7
(self, num)
Python/504. Base7.py:3
Method
convertToBase7
C++/504. Base 7.cpp:3
Method
copyRandomList
(self, head: 'Node')
Python/138. CopyListWithRandomPointer.py:49
Method
copyRandomList
C++/138.CopyListWithRandomPointer.cpp:19
Method
countAndSay
C++/38. CountAndSay.cpp:14
Method
countBits
(self, num: int)
Python/338. CountingBits.py:13
Method
countBits
C++/338. CountingBits.cpp:13
Method
countBits
counting the no. of 1's in the binary representation of each integer in the array
C++/1356.SortIntegersByTheNumberOf1Bits.cpp:4
Method
countMatches
C++/1773.CountItemsMatchingARule.cpp:52
Method
countNegatives
(self, grid: List[List[int]])
Python/1351. CountNegativeNumbersInASortedMatrix.py:4
Method
countNegatives
C++/1351. Count Negative Numbers in a Sorted Matrix.cpp:55
Method
countOdds
C++/1523.CountOddNumbersInAnIntervalRange.cpp:3
Method
countOrders
C++/1359.CountAllValidPickupandDeliver Options.cpp:3
Method
countPalindromicSubsequences
C++/730. CountDifferentPalindromicSubsequences.cpp:24
Method
countPrimes
:type n: int :rtype: int
Python/204. CountPrimes.py:5
Method
countPrimes
C++/204.CountPrimes.cpp:3
Method
countSquares
C++/1277. CountSquareSubmatricesWithAllOnes.cpp:32
Method
countSubstrings
(self, s: str)
Python/647. PalandromicSubstrings.py:2
Method
countSubstrings
(String s)
Java/647. Palindromic Substrings.java:22
Method
createBST
C++/108. ConvertSortedArraytoBinarySearchTree.cpp:50
Method
createTargetArray
C++/1389. Create Target Array in the Given Order.cpp:37
Method
decode
Decodes a shortened URL to its original URL.
C++/535.EncodeAndDecodeTinyURL.cpp:37
Method
decodeString
C++/394. Decode String.cpp:21
Method
decompressRLElist
C++/1313. Decompress Run-Length Encoded List.cpp:11
Method
defangIPAddress
C++/1108. DefangingAnIPAddress.cpp:19
Method
delElement
(int[] arr, int key, int len)
Java/27. RemoveElement.java:3
Method
deleteAndEarn
C++/740.DeleteAndEarn.cpp:9
Method
deleteDuplicates
C++/83. RemoveDuplicatesFromSortedList.cpp:47
Method
deleteDuplicates
C++/82. RemoveDuplicatesFromSortedListII.cpp:33
Method
deserialize
C++/297. SerializeAndDeserializeBinaryTree.cpp:51
Method
destCity
(self, paths: List[List[str]])
Python/1436. DestinationCity.py:2
Method
detectCycle
C++/142. LinkedListCycle.cpp:25
Method
detectCycle
(final ListNode head)
Java/142_linkedlist_cycle_2.java:5
Method
dfs
(r)
Python/51. N-Queens.py:38
Method
dfs
C++/547. FriendCircles.cpp:15
Method
dfs
C++/765. Couples Holding Hands.cpp:20
Method
dfs
C++/1022. SumofRootToLeafBinaryNumbers.cpp:32
Method
dfs
C++/129. Sum Root to Leaf Numbers.cpp:51
Method
dfs
C++/733. FloodFill.cpp:13
Method
dfs
dfs function call to mark a node visited if it's not and push that node and its index into respective their vectors
C++/1202.SmallestStringWithSwaps.cpp:13
Method
dfs
C++/200. NumberOfIslands.cpp:20
Method
dfs1
C++/834. Sum of Distances in Tree.cpp:13
Method
dfs2
C++/834. Sum of Distances in Tree.cpp:25
Method
diStringMatch
C++/942. DIStringMatch.cpp:12
Method
diagonalSum
C++/1572. Matrix Diagonal Sum.cpp:8
Method
diameterHelper
C++/543. DiameterOfBinaryTree.cpp:33
Method
diameterOfBinaryTree
C++/543. DiameterOfBinaryTree.cpp:44
Method
distance
returns euclidean distance between 2 points
C++/593. Valid Square.cpp:15
Method
distinctSubseqII
C++/940. DistinctSubseqII.cpp:9
Method
divide
C++/29.DivideTwoIntegers.cpp:3
Method
divisorGame
C++/1025. DivisorGame.cpp:14
Method
duplicateZeros
(int[] arr)
Java/1089. DuplicateZeros.java:10
Method
edit
C++/72. Edit_Distance.cpp:13
Method
encode
Encodes a URL to a shortened URL.
C++/535.EncodeAndDecodeTinyURL.cpp:18
Method
equalSubstring
(String s, String t, int maxCost)
Java/1208. GetEqualSubstringsWithinBudget.java:38
Method
exclusiveTime
:type n: int :type logs: List[str] :rtype: List[int]
Python/636. ExclusiveTimeOfFunctions.py:4
Method
exist
C++/79.WordSearch.cpp:3
Method
exist
(char[][] board, String word)
Java/79. WordSearch.java:22
Method
factorsOf
(int n)
Java/1050. PrimeFactors.java:10
Method
fib
C++/509.FibonacciNumber.cpp:6
Method
findAllCombinations
C++/77. Combinations.cpp:57
Method
findAnagrams
C++/438. FindAllAnagramsInAString.cpp:23
Method
findAnagrams
(String s, String p)
Java/438. FindAllAnagramsInAString.java:36
Method
findAndReplacePattern
C++/890. Find and Replace Pattern.cpp:9
Method
findCandidate
C++/169. Majority_Element.cpp:16
Method
findCircleNum
C++/547. FriendCircles.cpp:24
Method
findComplement
C++/476. NumberComplement.cpp:18
Method
findContentChildren
:type g: List[int] :type s: List[int] :rtype: int
Python/455. AssignCookies.py:10
Method
findDisappearedNumbers
:type nums: List[int] :rtype: List[int]
Python/448.FindAllNumbersDisappearedinanArray.py:2
Method
findDisappearedNumbers
C++/448. Find_All_Numbers_Disappeared_in_an_Array.cpp:6
Method
findDistance
returns distance to 0
C++/542. 01Matrix.cpp:15
Method
findDuplicate
(self, nums)
Python/287. FindTheDuplicateNumber.py:5
Method
findDuplicate
C++/287. Find the Duplicate Number.cpp:3
Method
findDuplicate
(int[] nums)
Java/287. FindTheDuplicateNumber.java:21
Method
findDuplicates
(int[] nums)
Java/442. FindAllDuplicatesInAnArray.java:13
Method
findInMountainArray
C++/1095. Find in Mountain Array.cpp:32
Method
findJudge
C++/997. FindTheTownJudge.cpp:57
Method
findKthLargest
(int[] nums, int k)
Java/215.KthElementInAnArray.java:13
Method
findKthPositive
C++/1539. KthMissingPositiveNumber.cpp:20
Method
findMaxConsecutiveOnes
(self, nums)
Python/485. MaxConsecutiveOnes.py:9
← previous
next →
201–300 of 846, ranked by callers