Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bwiens/leetcode-python
/ functions
Functions
440 in github.com/bwiens/leetcode-python
⨍
Functions
440
◇
Types & classes
332
↓ 1 callers
Method
flipAndInvertImage
:type A: List[List[int]] :rtype: List[List[int]]
flipping_an_image.py:7
↓ 1 callers
Method
floodFill
(self, image, sr, sc, newColor)
flood_fill.py:20
↓ 1 callers
Method
fourSumCount
(self, A, B, C, D)
4sum_ii.py:10
↓ 1 callers
Method
frequencySort
(self, s: str)
sort_characters_by_frequency.py:9
↓ 1 callers
Method
gameOfLife
Do not return anything, modify board in-place instead.
game_of_life.py:9
↓ 1 callers
Method
generateParenthesis
(self, n)
generate_parentheses.py:9
↓ 1 callers
Method
generateTheString
(self, n: int)
generate_a_string_with_characters_that_have_odd_counts.py:8
↓ 1 callers
Method
getHint
(self, secret: str, guess: str)
bulls_and_cows.py:7
↓ 1 callers
Method
getMaximumGold
(self, grid)
path_with_maximum_gold.py:8
↓ 1 callers
Method
getMin
:rtype: int
min_stack.py:34
↓ 1 callers
Function
getvalue
(key)
expiring_hashtable.py:14
↓ 1 callers
Method
groupAnagrams
(self, strs)
group_anagrams.py:6
↓ 1 callers
Method
hammingDistance
(self, x: int, y: int)
hamming_distance.py:9
↓ 1 callers
Function
hasNeighbour
(grid, rindex, cindex, c)
island_perimeter.py:13
↓ 1 callers
Method
hasNext
:rtype: bool
peeking_iterator.py:52
↓ 1 callers
Method
highFive
(self, items)
high_five.py:9
↓ 1 callers
Method
increasingTriplet
(self, nums)
increasing_triplet_subsequence.py:9
↓ 1 callers
Method
insert_money
(self, money)
vending_machine.py:22
↓ 1 callers
Method
intersect
(self, nums1, nums2)
intersection_of_two_arrays-ii.py:9
↓ 1 callers
Method
intersection
(self, nums1, nums2)
intersection_of_two_arrays.py:10
↓ 1 callers
Method
isAlienSorted
(self, words, order)
verifying_an_alien_dictionary.py:7
↓ 1 callers
Method
isAnagram
(self, s: str, t: str)
valid_anagram.py:8
↓ 1 callers
Method
isArmstrong
(self, N)
armstrong_number.py:8
↓ 1 callers
Method
isHappy
(self, n: int)
happy_number.py:7
↓ 1 callers
Method
isMajorityElement
(self, nums, target)
check_if_a_number_is_majority_element_in_a_sorted_array.py:9
↓ 1 callers
Method
isMonotonic
(self, A)
monotonic_array.py:9
↓ 1 callers
Method
isPalindrome
(self, x: 'int')
palindrome_numbers.py:7
↓ 1 callers
Method
isStrobogrammatic
(self, num: str)
strobogrammatic_number.py:8
↓ 1 callers
Method
isSubsequence
:type s: str :type t: str :rtype: bool
is_subsequence.py:8
↓ 1 callers
Method
isValid
(self, s: str)
valid_parentheses_v2.py:9
↓ 1 callers
Method
isValid
(self, s: str)
valid_parentheses.py:9
↓ 1 callers
Method
islandPerimeter
:param grid: List[List[int]] :return: int
island_perimeter.py:41
↓ 1 callers
Function
itercomb
(string)
permutations_exercises.py:47
↓ 1 callers
Function
iterperm
(string)
permutations_exercises.py:42
↓ 1 callers
Method
judgeCircle
(self, moves: str)
robot_return_to_origin.py:10
↓ 1 callers
Method
kClosest
(self, points, K)
k_closest_points_to_origin.py:10
↓ 1 callers
Method
kClosest
(self, points, K)
k_closest_points_to_origins.py:10
↓ 1 callers
Method
kidsWithCandies
(self, candies, extraCandies)
kids_with_the_greatest_number_of_candies.py:7
↓ 1 callers
Method
killProcess
(self, pid, ppid, kill)
kill_process.py:10
↓ 1 callers
Method
kthSmallest
:type matrix: List[List[int]] :type k: int :rtype: int
kth_smallest_element_in_a_sorted_matrix.py:10
↓ 1 callers
Function
landToWater
(grid, rindex, index, column_length, row2_length)
number_of_islands.py:12
↓ 1 callers
Method
largeGroupPositions
(self, S)
positions_of_large_groups.py:7
↓ 1 callers
Method
largestUniqueNumber
(self, A)
largest_unique_number.py:8
↓ 1 callers
Method
lastStoneWeight
(self, stones: List[int])
last_stone_weight.py:9
↓ 1 callers
Method
lemonadeChange
(self, bills)
lemonade_change.py:4
↓ 1 callers
Method
lengthOfLongestSubstring
:type s: str :rtype: int
longest_substring_without_repeating_characters.py:9
↓ 1 callers
Method
lengthOfLongestSubstringTwoDistinct
:type s: str :rtype: int
longest_substring_with_at_most_two_distinct_characters.py:8
↓ 1 callers
Method
letterCombinations
:type digits: str :rtype: List[str]
letter_combinations_of_a_phone_number.py:8
↓ 1 callers
Method
licenseKeyFormatting
(self, S: str, K: int)
license_key_formatting.py:9
↓ 1 callers
Method
longestCommonPrefix
(self, strs)
longest_common_prefix.py:9
↓ 1 callers
Method
longestPalindrome
(self, s: str)
longest_palindromic_substring.py:9
↓ 1 callers
Function
longestsub
:param string: str :param chars: num :return: str
longest_substring.py:11
↓ 1 callers
Method
majorityElement
(self, nums)
majority_element_ii.py:9
↓ 1 callers
Method
majorityElement
(self, nums)
majority_element.py:8
↓ 1 callers
Method
makeGood
(self, s)
make_the_string_great.py:6
↓ 1 callers
Method
maxAreaOfIsland
(self, grid)
max_area_of_island.py:16
↓ 1 callers
Method
maxCoins
(self, piles)
maximum_number_of_coins.py:5
↓ 1 callers
Method
maxDistToClosest
(self, seats)
maximize_distance_to_closest_person.py:10
↓ 1 callers
Method
maxIncreaseKeepingSkyline
(self, grid)
max_increase_to_keep_city_skyline.py:9
↓ 1 callers
Method
maxLength
(self, arr)
maximum_length_of_a_concatenated_string_with_unique_characters.py:8
↓ 1 callers
Method
maxNumberOfBalloons
(self, text: str)
maximum_number_of_balloons_o1space.py:9
↓ 1 callers
Method
maxNumberOfBalloons
(self, text)
maximum_number_of_balloons.py:8
↓ 1 callers
Method
maxProfit
(self, prices)
best_time_to_buy_and_sell_stock_ii.py:7
↓ 1 callers
Method
maxProfit
(self, prices: 'List[int]')
best_time_to_buy_and_sell_stock.py:8
↓ 1 callers
Method
maxSlidingWindow
:type nums: List[int] :type k: int :rtype: List[int]
sliding_window_maximum.py:10
↓ 1 callers
Method
maxSubArray
(self, nums)
maximum_subarray.py:9
↓ 1 callers
Method
maximizeSweetness
(self, sweetness, K)
divide_chocolate.py:7
↓ 1 callers
Method
maximumProduct
(self, nums)
maximum_product_of_three_numbers.py:10
↓ 1 callers
Method
maximumSwap
(self, num)
maximum_swap.py:9
↓ 1 callers
Method
merge
(self, intervals)
merge_intervals_lc.py:8
↓ 1 callers
Function
mergintervals
(intervals)
merge_intervals.py:9
↓ 1 callers
Method
minAddToMakeValid
(self, S: str)
minimum_add_to_make_parantheses_valid.py:8
↓ 1 callers
Method
minAvailableDuration
(self, slots1, slots2, duration)
meeting_scheduler.py:8
↓ 1 callers
Method
minCostClimbingStairs
(self, cost)
min_cost_climbing_stairs.py:5
↓ 1 callers
Method
minCostToMoveChips
(self, chips)
play_with_chips.py:8
↓ 1 callers
Method
minDeletionSize
(self, A)
delete_columns_to_make_sorted.py:7
↓ 1 callers
Method
minDominoRotations
(self, A, B)
minimum_domino_rotations_for_equal_row.py:9
↓ 1 callers
Method
minMeetingRooms
(self, intervals)
meeting_rooms_ii.py:9
↓ 1 callers
Method
minMoves
(self, nums)
minimum_moves_to_equal_array_elements.py:9
↓ 1 callers
Method
minMoves2
(self, nums)
minimum_moves_to_equal_array_elements_ii.py:8
↓ 1 callers
Function
minSwaps
:param s: str :return: int
girls_boys_swap.py:15
↓ 1 callers
Method
minimumAbsDifference
(self, arr)
minimum_absolute_difference.py:8
↓ 1 callers
Method
missingElement
(self, nums, k)
missing_element_in_sorted_array.py:9
↓ 1 callers
Method
missingNumber
(self, arr)
missing_number_in_arithmetic_progression.py:8
↓ 1 callers
Method
missingNumber
(self, nums)
missing_number.py:7
↓ 1 callers
Method
mostCommonWord
(self, paragraph, banned)
most_common_word.py:11
↓ 1 callers
Method
moveZeroes
Do not return anything, modify nums in-place instead.
move_zeroes.py:7
↓ 1 callers
Method
next
:rtype: int
peeking_iterator.py:39
↓ 1 callers
Function
nextEarliest
(string)
next_closest_time.py:9
↓ 1 callers
Method
nextGreaterElement
(self, nums1, nums2)
next_greater_element_i.py:9
↓ 1 callers
Method
nextGreatestLetter
(self, letters, target)
find_smallest_letter_greater_than_target.py:9
↓ 1 callers
Method
nextPermutation
(self, nums)
next_permutation.py:5
↓ 1 callers
Method
numIdenticalPairs
(self, nums)
number_of_good_pairs.py:6
↓ 1 callers
Method
numIslands
:type grid: List[List[str]] :rtype: int
number_of_islands.py:26
↓ 1 callers
Method
numKLenSubstrNoRepeats
(self, S, K)
find_k_length_substrings_with_no_repeated_characters.py:8
↓ 1 callers
Method
numPairsDivisibleBy60
(self, time)
pairs_of_songs_with_total_durations_divisible_by_60.py:8
↓ 1 callers
Method
numRescueBoats
:type people: List[int] :type limit: int :rtype: int
boats_to_save_people.py:9
↓ 1 callers
Method
numRookCaptures
(self, board)
available_captures_for_rook.py:8
↓ 1 callers
Method
numSmallerByFrequency
(self, queries, words)
compare_strings_by_frequency_of_the_smallest_character.py:9
↓ 1 callers
Method
numUniqueEmails
:type emails: List[str] :rtype: int
unique_email_addresses.py:9
← previous
next →
101–200 of 440, ranked by callers