MCPcopy Create free account

hub / github.com/bwiens/leetcode-python / functions

Functions440 in github.com/bwiens/leetcode-python

↓ 1 callersMethodflipAndInvertImage
:type A: List[List[int]] :rtype: List[List[int]]
flipping_an_image.py:7
↓ 1 callersMethodfloodFill
(self, image, sr, sc, newColor)
flood_fill.py:20
↓ 1 callersMethodfourSumCount
(self, A, B, C, D)
4sum_ii.py:10
↓ 1 callersMethodfrequencySort
(self, s: str)
sort_characters_by_frequency.py:9
↓ 1 callersMethodgameOfLife
Do not return anything, modify board in-place instead.
game_of_life.py:9
↓ 1 callersMethodgenerateParenthesis
(self, n)
generate_parentheses.py:9
↓ 1 callersMethodgenerateTheString
(self, n: int)
generate_a_string_with_characters_that_have_odd_counts.py:8
↓ 1 callersMethodgetHint
(self, secret: str, guess: str)
bulls_and_cows.py:7
↓ 1 callersMethodgetMaximumGold
(self, grid)
path_with_maximum_gold.py:8
↓ 1 callersMethodgetMin
:rtype: int
min_stack.py:34
↓ 1 callersFunctiongetvalue
(key)
expiring_hashtable.py:14
↓ 1 callersMethodgroupAnagrams
(self, strs)
group_anagrams.py:6
↓ 1 callersMethodhammingDistance
(self, x: int, y: int)
hamming_distance.py:9
↓ 1 callersFunctionhasNeighbour
(grid, rindex, cindex, c)
island_perimeter.py:13
↓ 1 callersMethodhasNext
:rtype: bool
peeking_iterator.py:52
↓ 1 callersMethodhighFive
(self, items)
high_five.py:9
↓ 1 callersMethodincreasingTriplet
(self, nums)
increasing_triplet_subsequence.py:9
↓ 1 callersMethodinsert_money
(self, money)
vending_machine.py:22
↓ 1 callersMethodintersect
(self, nums1, nums2)
intersection_of_two_arrays-ii.py:9
↓ 1 callersMethodintersection
(self, nums1, nums2)
intersection_of_two_arrays.py:10
↓ 1 callersMethodisAlienSorted
(self, words, order)
verifying_an_alien_dictionary.py:7
↓ 1 callersMethodisAnagram
(self, s: str, t: str)
valid_anagram.py:8
↓ 1 callersMethodisArmstrong
(self, N)
armstrong_number.py:8
↓ 1 callersMethodisHappy
(self, n: int)
happy_number.py:7
↓ 1 callersMethodisMajorityElement
(self, nums, target)
check_if_a_number_is_majority_element_in_a_sorted_array.py:9
↓ 1 callersMethodisMonotonic
(self, A)
monotonic_array.py:9
↓ 1 callersMethodisPalindrome
(self, x: 'int')
palindrome_numbers.py:7
↓ 1 callersMethodisStrobogrammatic
(self, num: str)
strobogrammatic_number.py:8
↓ 1 callersMethodisSubsequence
:type s: str :type t: str :rtype: bool
is_subsequence.py:8
↓ 1 callersMethodisValid
(self, s: str)
valid_parentheses_v2.py:9
↓ 1 callersMethodisValid
(self, s: str)
valid_parentheses.py:9
↓ 1 callersMethodislandPerimeter
:param grid: List[List[int]] :return: int
island_perimeter.py:41
↓ 1 callersFunctionitercomb
(string)
permutations_exercises.py:47
↓ 1 callersFunctioniterperm
(string)
permutations_exercises.py:42
↓ 1 callersMethodjudgeCircle
(self, moves: str)
robot_return_to_origin.py:10
↓ 1 callersMethodkClosest
(self, points, K)
k_closest_points_to_origin.py:10
↓ 1 callersMethodkClosest
(self, points, K)
k_closest_points_to_origins.py:10
↓ 1 callersMethodkidsWithCandies
(self, candies, extraCandies)
kids_with_the_greatest_number_of_candies.py:7
↓ 1 callersMethodkillProcess
(self, pid, ppid, kill)
kill_process.py:10
↓ 1 callersMethodkthSmallest
:type matrix: List[List[int]] :type k: int :rtype: int
kth_smallest_element_in_a_sorted_matrix.py:10
↓ 1 callersFunctionlandToWater
(grid, rindex, index, column_length, row2_length)
number_of_islands.py:12
↓ 1 callersMethodlargeGroupPositions
(self, S)
positions_of_large_groups.py:7
↓ 1 callersMethodlargestUniqueNumber
(self, A)
largest_unique_number.py:8
↓ 1 callersMethodlastStoneWeight
(self, stones: List[int])
last_stone_weight.py:9
↓ 1 callersMethodlemonadeChange
(self, bills)
lemonade_change.py:4
↓ 1 callersMethodlengthOfLongestSubstring
:type s: str :rtype: int
longest_substring_without_repeating_characters.py:9
↓ 1 callersMethodlengthOfLongestSubstringTwoDistinct
:type s: str :rtype: int
longest_substring_with_at_most_two_distinct_characters.py:8
↓ 1 callersMethodletterCombinations
:type digits: str :rtype: List[str]
letter_combinations_of_a_phone_number.py:8
↓ 1 callersMethodlicenseKeyFormatting
(self, S: str, K: int)
license_key_formatting.py:9
↓ 1 callersMethodlongestCommonPrefix
(self, strs)
longest_common_prefix.py:9
↓ 1 callersMethodlongestPalindrome
(self, s: str)
longest_palindromic_substring.py:9
↓ 1 callersFunctionlongestsub
:param string: str :param chars: num :return: str
longest_substring.py:11
↓ 1 callersMethodmajorityElement
(self, nums)
majority_element_ii.py:9
↓ 1 callersMethodmajorityElement
(self, nums)
majority_element.py:8
↓ 1 callersMethodmakeGood
(self, s)
make_the_string_great.py:6
↓ 1 callersMethodmaxAreaOfIsland
(self, grid)
max_area_of_island.py:16
↓ 1 callersMethodmaxCoins
(self, piles)
maximum_number_of_coins.py:5
↓ 1 callersMethodmaxDistToClosest
(self, seats)
maximize_distance_to_closest_person.py:10
↓ 1 callersMethodmaxIncreaseKeepingSkyline
(self, grid)
max_increase_to_keep_city_skyline.py:9
↓ 1 callersMethodmaxLength
(self, arr)
maximum_length_of_a_concatenated_string_with_unique_characters.py:8
↓ 1 callersMethodmaxNumberOfBalloons
(self, text: str)
maximum_number_of_balloons_o1space.py:9
↓ 1 callersMethodmaxNumberOfBalloons
(self, text)
maximum_number_of_balloons.py:8
↓ 1 callersMethodmaxProfit
(self, prices)
best_time_to_buy_and_sell_stock_ii.py:7
↓ 1 callersMethodmaxProfit
(self, prices: 'List[int]')
best_time_to_buy_and_sell_stock.py:8
↓ 1 callersMethodmaxSlidingWindow
:type nums: List[int] :type k: int :rtype: List[int]
sliding_window_maximum.py:10
↓ 1 callersMethodmaxSubArray
(self, nums)
maximum_subarray.py:9
↓ 1 callersMethodmaximizeSweetness
(self, sweetness, K)
divide_chocolate.py:7
↓ 1 callersMethodmaximumProduct
(self, nums)
maximum_product_of_three_numbers.py:10
↓ 1 callersMethodmaximumSwap
(self, num)
maximum_swap.py:9
↓ 1 callersMethodmerge
(self, intervals)
merge_intervals_lc.py:8
↓ 1 callersFunctionmergintervals
(intervals)
merge_intervals.py:9
↓ 1 callersMethodminAddToMakeValid
(self, S: str)
minimum_add_to_make_parantheses_valid.py:8
↓ 1 callersMethodminAvailableDuration
(self, slots1, slots2, duration)
meeting_scheduler.py:8
↓ 1 callersMethodminCostClimbingStairs
(self, cost)
min_cost_climbing_stairs.py:5
↓ 1 callersMethodminCostToMoveChips
(self, chips)
play_with_chips.py:8
↓ 1 callersMethodminDeletionSize
(self, A)
delete_columns_to_make_sorted.py:7
↓ 1 callersMethodminDominoRotations
(self, A, B)
minimum_domino_rotations_for_equal_row.py:9
↓ 1 callersMethodminMeetingRooms
(self, intervals)
meeting_rooms_ii.py:9
↓ 1 callersMethodminMoves
(self, nums)
minimum_moves_to_equal_array_elements.py:9
↓ 1 callersMethodminMoves2
(self, nums)
minimum_moves_to_equal_array_elements_ii.py:8
↓ 1 callersFunctionminSwaps
:param s: str :return: int
girls_boys_swap.py:15
↓ 1 callersMethodminimumAbsDifference
(self, arr)
minimum_absolute_difference.py:8
↓ 1 callersMethodmissingElement
(self, nums, k)
missing_element_in_sorted_array.py:9
↓ 1 callersMethodmissingNumber
(self, arr)
missing_number_in_arithmetic_progression.py:8
↓ 1 callersMethodmissingNumber
(self, nums)
missing_number.py:7
↓ 1 callersMethodmostCommonWord
(self, paragraph, banned)
most_common_word.py:11
↓ 1 callersMethodmoveZeroes
Do not return anything, modify nums in-place instead.
move_zeroes.py:7
↓ 1 callersMethodnext
:rtype: int
peeking_iterator.py:39
↓ 1 callersFunctionnextEarliest
(string)
next_closest_time.py:9
↓ 1 callersMethodnextGreaterElement
(self, nums1, nums2)
next_greater_element_i.py:9
↓ 1 callersMethodnextGreatestLetter
(self, letters, target)
find_smallest_letter_greater_than_target.py:9
↓ 1 callersMethodnextPermutation
(self, nums)
next_permutation.py:5
↓ 1 callersMethodnumIdenticalPairs
(self, nums)
number_of_good_pairs.py:6
↓ 1 callersMethodnumIslands
:type grid: List[List[str]] :rtype: int
number_of_islands.py:26
↓ 1 callersMethodnumKLenSubstrNoRepeats
(self, S, K)
find_k_length_substrings_with_no_repeated_characters.py:8
↓ 1 callersMethodnumPairsDivisibleBy60
(self, time)
pairs_of_songs_with_total_durations_divisible_by_60.py:8
↓ 1 callersMethodnumRescueBoats
:type people: List[int] :type limit: int :rtype: int
boats_to_save_people.py:9
↓ 1 callersMethodnumRookCaptures
(self, board)
available_captures_for_rook.py:8
↓ 1 callersMethodnumSmallerByFrequency
(self, queries, words)
compare_strings_by_frequency_of_the_smallest_character.py:9
↓ 1 callersMethodnumUniqueEmails
:type emails: List[str] :rtype: int
unique_email_addresses.py:9
← previousnext →101–200 of 440, ranked by callers