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
↓ 60 callers
Method
get
(self, key: int)
lru_cache.py:13
↓ 40 callers
Method
pop
:rtype: void
min_stack.py:20
↓ 6 callers
Function
push
(stack, item)
stack.py:44
↓ 4 callers
Function
f
(x)
find_first_positive_number.py:8
↓ 3 callers
Method
permutations
(self, string)
permutations.py:7
↓ 3 callers
Method
put
(self, key: int, value: int)
lru_cache.py:25
↓ 3 callers
Method
reverse
:type x: int :rtype: int
reverse_integer.py:9
↓ 2 callers
Method
buy_item
(self)
vending_machine.py:13
↓ 2 callers
Method
isPalindrome
:type s: str :rtype: bool
valid_palindrome.py:13
↓ 2 callers
Method
isValid
(self, s, k, l)
valid_palindrome-ii.py:6
↓ 2 callers
Function
is_empty
(stack)
stack.py:29
↓ 2 callers
Method
numJewelsInStones
:type J: str :type S: str :rtype: int
jewels_and_stones.py:14
↓ 2 callers
Method
show_items
(self)
vending_machine.py:10
↓ 2 callers
Method
singleNumber
(self, nums)
single_number.py:9
↓ 1 callers
Method
addBinary
(self, a, b)
add_binary.py:8
↓ 1 callers
Function
addDigits
(digits)
add_digits.py:4
↓ 1 callers
Method
addDigits
(self, num)
add_digits_lc.py:7
↓ 1 callers
Method
addStrings
(self, num1, num2)
add_strings.py:7
↓ 1 callers
Method
addToArrayForm
(self, A, K)
add_to_array_form_of_integer.py:8
↓ 1 callers
Method
add_items
(self, newitem)
vending_machine.py:20
↓ 1 callers
Method
allCellsDistOrder
(self, R, C, r0, c0)
matrix_cells_in_distance_order.py:10
↓ 1 callers
Method
allPathsSourceTarget
(self, graph)
all_paths_from_source_to_target.py:8
↓ 1 callers
Method
areSentencesSimilar
(self, words1, words2, pairs)
sentence_similarity.py:11
↓ 1 callers
Method
areSentencesSimilarTwo
(self, words1, words2, pairs)
sentence_similarity_ii.py:10
↓ 1 callers
Method
arrayPairSum
(self, nums)
array_partition_i.py:9
↓ 1 callers
Method
arraysIntersection
(self, arr1, arr2, arr3)
intersection_of_three_sorted_arrays.py:11
↓ 1 callers
Method
assignBikes
(self, workers, bikes)
campus_bikes.py:9
↓ 1 callers
Function
autocomplete
(s, words)
autocomplete.py:5
↓ 1 callers
Method
backspaceCompare
(self, S: str, T: str)
backspace_string_compare.py:9
↓ 1 callers
Method
balancedStringSplit
(self, s: str)
split_a_string_in_balanced_strings.py:7
↓ 1 callers
Method
beforeAndAfterPuzzles
(self, phrases)
before_and_after_puzzle.py:8
↓ 1 callers
Function
bestseats
(seats)
best_subway_seat.py:10
↓ 1 callers
Function
bin_search
(left, right)
find_first_positive_number.py:13
↓ 1 callers
Method
binaryGap
:type n: int :rtype: int
binary_gap.py:9
↓ 1 callers
Method
break_array
(self, root,nums)
maximum_binary_tree.py:22
↓ 1 callers
Method
bubblesort
:type list: list :rtype: list
bubble_sort.py:7
↓ 1 callers
Function
buildhashmap
(key, value)
expiring_hashtable.py:7
↓ 1 callers
Method
calc
(self, n)
climbing_stairs.py:8
↓ 1 callers
Method
calculateTime
(self, keyboard, word)
single_row_keyboard.py:9
↓ 1 callers
Method
canConstruct
(self, ransomNote: 'str', magazine: 'str')
ransom_note.py:10
↓ 1 callers
Method
canConvert
(self, str1: str, str2: str)
string_transforms_into_another_string.py:7
↓ 1 callers
Function
canMake
(string1, string2)
can_make_string_from_another.py:6
↓ 1 callers
Method
canPermutePalindrome
(self, s)
palindrome_permutation.py:6
↓ 1 callers
Method
canPlaceFlowers
(self, flowerbed, n)
can_place_flowers.py:9
↓ 1 callers
Method
canVisitAllRooms
(self, rooms)
keys_and_rooms.py:8
↓ 1 callers
Method
canWinNim
(self, n: int)
nim_game.py:9
↓ 1 callers
Method
candy
:param ratings: List[int] :return: int
candy.py:8
↓ 1 callers
Method
candyCrush
(self, board)
candy_crush.py:9
↓ 1 callers
Method
carPooling
(self, trips, capacity)
car_pooling.py:9
↓ 1 callers
Method
checkRecord
(self, s)
student_attendance_record_i.py:9
↓ 1 callers
Method
checkStraightLine
(self, coordinates)
check_if_it_is_a_straight_line.py:8
↓ 1 callers
Method
climbStairs
:type n: int :rtype: int
climbing_stairs.py:18
↓ 1 callers
Method
closedIsland
(self, grid)
number_of_closed_islands.py:7
↓ 1 callers
Method
commonChars
(self, A)
find_common_characters.py:8
↓ 1 callers
Method
confusingNumber
(self, N)
confusing_number.py:8
↓ 1 callers
Method
connectSticks
(self, sticks)
minimum_cost_to_connect_sticks.py:9
↓ 1 callers
Method
containsDuplicate
(self, nums)
contains_duplicate.py:8
↓ 1 callers
Method
containsNearbyDuplicate
(self, nums, k)
contains_duplicate_ii.py:10
↓ 1 callers
Method
convertToBase7
(self, num: int)
base_7.py:4
↓ 1 callers
Method
corpFlightBookings
(self, bookings, n)
corporate_flight_bookings.py:8
↓ 1 callers
Method
countBits
(self, num)
counting_bits.py:7
↓ 1 callers
Method
countCharacters
(self, words, chars)
find_words_that_can_be_formed_by_characters.py:9
↓ 1 callers
Method
countLetters
(self, S)
count_substrings_with_only_one_distinct_letter.py:8
↓ 1 callers
Function
create_stack
()
stack.py:25
↓ 1 callers
Method
customSortString
(self, S, T)
custom_sort_string.py:10
↓ 1 callers
Method
decode
:param shorturl: str :return: str
encode_and_decode_tinyurl.py:35
↓ 1 callers
Method
defangIPaddr
(self, address)
defanging_an_ip_address.py:8
↓ 1 callers
Method
detectCapitalUse
:type word: str :rtype: bool
detect_capital.py:8
↓ 1 callers
Method
diStringMatch
(self, S)
di_string_match.py:9
↓ 1 callers
Method
differByOne
(self, dict)
strings_differ_by_one_character.py:6
↓ 1 callers
Method
distanceBetweenBusStops
(self, distance, start, destination)
distance_between_bus_stops.py:10
↓ 1 callers
Method
distributeCandies
(self, candies, num_people)
distribute_candies_to_people.py:9
↓ 1 callers
Method
duplicateZeros
Do not return anything, modify arr in-place instead.
duplicate_zeros.py:8
↓ 1 callers
Method
encode
(self, num)
encode_number.py:8
↓ 1 callers
Method
encode
:param longurl: str :return: str
encode_and_decode_tinyurl.py:20
↓ 1 callers
Method
exist
(self, board, word)
word_search.py:13
↓ 1 callers
Method
fib
(self, N: int)
fibonacci_number.py:9
↓ 1 callers
Function
fib_dp
(n)
fibonacci.py:15
↓ 1 callers
Function
fib_slow
(n)
fibonacci.py:6
↓ 1 callers
Method
fill
(self, image, rid, cid, newColor, oldColor)
flood_fill.py:8
↓ 1 callers
Method
findComplement
(self, num)
number_complement.py:7
↓ 1 callers
Method
findDisappearedNumbers
(self, nums: 'List[int]')
find_all_numbers.py:7
↓ 1 callers
Method
findDuplicates
(self, nums)
find_all_duplicates_in_an_array.py:7
↓ 1 callers
Method
findDuplicates
(self, nums)
find_all_duplicates_in_an_array_o1_space.py:7
↓ 1 callers
Method
findKthLargest
:type nums: List[int] :type k: int :rtype: int
kth_largest_element_in_an_array.py:11
↓ 1 callers
Method
findLengthOfLCIS
(self, nums)
longest_continuous_increasing_subsequence.py:7
↓ 1 callers
Method
findLonelyPixel
(self, picture)
lonely_pixel-i.py:11
↓ 1 callers
Method
findMaxConsecutiveOnes
(self, nums)
max_consecutive_sums.py:9
↓ 1 callers
Method
findMedianSortedArrays
:type: nums1: List[int] :type: nums2: List[int] :return: float
median_of_two_sorted_arrays.py:10
↓ 1 callers
Method
findOcurrences
(self, text: str, first: str, second: str)
occurrences_after_bigram.py:11
↓ 1 callers
Method
findPeakElement
Find the peak element (element greater than neighbors)
find_peak_element.py:9
↓ 1 callers
Method
findPoisonedDuration
(self, timeSeries, duration)
teemo_attacking.py:8
↓ 1 callers
Method
findRepeatedDnaSequences
(self, s)
repeated_dna_sequences.py:7
↓ 1 callers
Method
findTheDifference
(self, s, t)
find_the_difference.py:10
↓ 1 callers
Method
findUnsortedSubarray
(self, nums)
shortest_unsorted_continuous_subarray.py:8
↓ 1 callers
Method
findWords
(self, words)
keyboard_row.py:8
↓ 1 callers
Function
find_first_positive
Function to return first positive in monotonically increasing fx
find_first_positive_number.py:24
↓ 1 callers
Method
firstUniqChar
:type s: str :rtype: int
first_unique_character.py:8
↓ 1 callers
Method
fixedPoint
(self, A)
fixed_point.py:9
↓ 1 callers
Method
fizzBuzz
(self, n: 'int')
fizz-buzz.py:8
next →
1–100 of 440, ranked by callers