Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RealHacker/leetcode-solutions
/ functions
Functions
604 in github.com/RealHacker/leetcode-solutions
⨍
Functions
604
◇
Types & classes
388
↓ 40 callers
Method
add
Add the number to an internal data structure. :rtype: nothing
170_two_sum_iii/two_sum_iii.py:10
↓ 40 callers
Method
pop
(self)
155_min_stack/min_stack.py:21
↓ 15 callers
Method
insert
:type intervals: List[Interval] :type newInterval: Interval :rtype: List[Interval]
057_insert_interval/insert_interval.py:8
↓ 14 callers
Method
remove
(self, point)
218_skyline_problem/skyline.py:8
↓ 12 callers
Method
pop
(self)
225_impl_stack_using_queues/stack_using_queues.py:16
↓ 5 callers
Method
insert
(self, word)
208_implement_trie/implement_trie_prefix_tree.py:15
↓ 4 callers
Method
explore
(self, board, x, y)
130_surrounded_regions/surrounded_regions.py:24
↓ 4 callers
Method
isInterleave
(self, s1, s2, s3)
097_interleaving_string/interleaving_take2.py:7
↓ 4 callers
Method
set
(self, key, value)
146_lru_cache/lrucache.py:20
↓ 3 callers
Method
advance
(self)
251_flatten_2d_vector/flatten.py:16
↓ 3 callers
Method
convertToTitle
(self, n)
168_excel_sheet/excel_sheet_column_title.py:4
↓ 3 callers
Method
factorial
(m)
060_permutation_sequence/permutation_sequence.py:8
↓ 3 callers
Method
get
(self, key)
146_lru_cache/lrucache.py:10
↓ 3 callers
Method
getMedian
(self, is_odd, array)
004_median_of_2_sorted_arrays/median_sorted_arrays.py:2
↓ 3 callers
Method
pop
(self)
232_make_queue_using_stacks/queue_using_stacks.py:13
↓ 3 callers
Method
recurse
(self, start_index, color)
256_paint_house/paint_house.py:14
↓ 3 callers
Method
reverse
(self, x)
007_reverse_integer/reverse_integer.py:4
↓ 3 callers
Method
sequencesWithDigits
(self, n)
248_strobogrammatic_number_iii/strobo.py:84
↓ 2 callers
Method
bfs
(self, v0, v)
310_minimum_height_trees/mininum_height_trees.py:21
↓ 2 callers
Method
canJump
(self, nums)
055_jump_game/jump_game.py:4
↓ 2 callers
Method
canJump
(self, nums)
055_jump_game/jump_game_TLE.py:4
↓ 2 callers
Method
countLessThan
(self, n)
248_strobogrammatic_number_iii/strobo.py:38
↓ 2 callers
Method
find
(seg, s)
044_wildcard_matching/wildcard_matching.py:32
↓ 2 callers
Method
getMax
(self, a1, i1, a2, i2)
004_median_of_2_sorted_arrays/median_sorted_arrays.py:7
↓ 2 callers
Method
getSection
(self, data)
297_serialize_and_deserialize_binary_tree/serialize_and_desialize_binary_tree.py:20
↓ 2 callers
Method
getTable
(self, num, k)
321_create_maximum_number/create_maximum_number.py:4
↓ 2 callers
Method
get_token
(self,s,i)
224_basic_calculator/cal.py:2
↓ 2 callers
Method
isInterleave
(self, s1, s2, s3)
097_interleaving_string/interleaving_naive.py:7
↓ 2 callers
Method
isScramble
:type s1: str :type s2: str :rtype: bool
087_scramble_string/scramble_string.py:4
↓ 2 callers
Method
merge
(self, res, lst)
023_merge_k_sorted_lists/merge_k_lists.py:20
↓ 2 callers
Method
numIslands
(self, grid)
200_islands/number_of_islands.py:4
↓ 2 callers
Method
pop
:rtype: nothing
225_impl_stack_using_queues/stack_using_queues_take2.py:17
↓ 2 callers
Method
recurse
(self, root, robbed)
337_house_robber_iii/337_house_robber_iii.py:21
↓ 2 callers
Method
recurse
(self, s1, s2)
087_scramble_string/scramble_string.py:18
↓ 2 callers
Method
restoreIpAddresses
(self, s)
093_restore_ip_addresses/restore_ip_address.py:5
↓ 2 callers
Method
rob
:type root: TreeNode :rtype: int
337_house_robber_iii/337_house_robber_iii.py:9
↓ 2 callers
Method
shorten
(self, word)
288_unique_word_abbrevation/abbr.py:13
↓ 2 callers
Method
strobolize
(self, digits)
248_strobogrammatic_number_iii/strobo.py:34
↓ 2 callers
Method
sum
(self, i)
307_range_sum_query_mutable/range_sum_query.py:27
↓ 2 callers
Method
translate
(self, table, length)
321_create_maximum_number/create_maximum_number_TLE_take2.py:4
↓ 2 callers
Method
update
:type i: int :type val: int :rtype: int
307_range_sum_query_mutable/range_sum_query.py:13
↓ 1 callers
Method
_buildTree
(self, l1, h1, l2, h2)
105_construct_bt_from_preorder_inorder/contruct_binary_tree_from_preorder_inorder.py:20
↓ 1 callers
Method
_calculate
(self, s, i)
224_basic_calculator/cal.py:23
↓ 1 callers
Method
_getnum
(self, n)
096_unique_binary_search_trees/unique_binary_search_trees.py:14
↓ 1 callers
Method
_isInterleave
(self, s1, s2, s3)
097_interleaving_string/interleaving_dp.py:20
↓ 1 callers
Method
_recurse
(self, tokens)
241_different_ways_to_add_parenthesis/different_ways_to_add_parenthesis_take2.py:21
↓ 1 callers
Method
_recurse
(self, node, k)
230_kth_smallest_element/kth.py:18
↓ 1 callers
Method
add_to_mat
(self, c1, c2)
269_alien_dictionary/dictionary.py:52
↓ 1 callers
Method
buildMemo
(self, segment, start)
093_restore_ip_addresses/restore_ip_address.py:23
↓ 1 callers
Method
buildNode
(self, word, tree)
140_word_break_ii/word_break_ii.py:13
↓ 1 callers
Method
buildNode
(self, word, tree)
139_word_break/word_break.py:34
↓ 1 callers
Method
buildTable
(self, idx, target)
040_combination_sum_ii/combination_sum_ii.py:24
↓ 1 callers
Method
buildTree
(self, n1, n2)
095_unique_binary_search_trees_ii/unique_binary_search_trees_ii.py:16
↓ 1 callers
Method
buildtrie
(self, words)
336_palindrome_pairs/palindrome_pairs.py:46
↓ 1 callers
Method
calculate
(self, s)
224_basic_calculator/basic_calculator.py:5
↓ 1 callers
Method
compareVersion
(self, version1, version2)
165_compare_version_numbers/compare_version_numbers.py:5
↓ 1 callers
Method
computeIndexes
(self, s1, s3)
097_interleaving_string/interleaving_take2.py:21
↓ 1 callers
Method
compute_height
(self, node)
110_balanced_binary_treee/balanced_binary_tree.py:22
↓ 1 callers
Method
consume
(self, s1, s2, front, end, l)
097_interleaving_string/interleaving_take2.py:37
↓ 1 callers
Method
countSubs
(self, s, t)
115_distinct_subsequences/distinct_subsequences.py:19
↓ 1 callers
Method
dfs
(self, x, y, node)
212_word_search_ii/wordsearch.py:38
↓ 1 callers
Method
dfs
(self, node, p, q)
236_lowest_common_ancestor/lowest_common_ancestor_complex.py:23
↓ 1 callers
Method
divide
(self, dividend, divisor)
029_divide_2integers/divide_two_integers.py:5
↓ 1 callers
Method
eval
(self)
224_basic_calculator/basic_calculator.py:10
↓ 1 callers
Method
explore
(self, board, x, y)
130_surrounded_regions/surrounded_regions_TLE.py:18
↓ 1 callers
Method
find
Find if there exists any pair of numbers which sum is equal to the value. :type value: int :rtype: bool
170_two_sum_iii/two_sum_iii.py:17
↓ 1 callers
Method
find_longest
(self, i, s)
032_longest_valid_parentheses/longest_valid_parentheses_wrong.py:20
↓ 1 callers
Method
find_longest
(self, i, s)
032_longest_valid_parentheses/longest_valid_parentheses_TE.py:21
↓ 1 callers
Method
flatten
(self, node)
173_binary_tree_iterator/binary_search_tree_iterator.py:16
↓ 1 callers
Method
flatten
(self, nestedList)
341_flatten_nested_list_iterator/flatten.py:36
↓ 1 callers
Method
gen
(self, s, n)
140_word_break_ii/word_break_ii.py:22
↓ 1 callers
Method
generate
(self, current, left, right)
022_generate_parentheses/generate_parentheses.py:11
↓ 1 callers
Method
getCombi
(self, nums, i, temp)
090_subsets_ii/subsets_ii.py:13
↓ 1 callers
Method
getCount
(self, s, i)
091_decode_ways/decode_ways.py:10
↓ 1 callers
Method
getMask
(self, word)
318_maximum_product_of_word_lengths/maximum_product_of_word_lengths.py:19
↓ 1 callers
Method
get_combinations
(self, times_list, slen)
291_word_pattern_ii/pattern.py:39
↓ 1 callers
Method
get_first_k
(self, node, k)
272_closest_binary_search_tree_values/closest.py:56
↓ 1 callers
Method
get_last_k
(self, node, k)
272_closest_binary_search_tree_values/closest.py:46
↓ 1 callers
Method
getpal
(self, node, s)
336_palindrome_pairs/palindrome_pairs.py:34
↓ 1 callers
Method
hasNext
:rtype: bool
281_zigzag_iterator/iterator.py:32
↓ 1 callers
Method
hasNext
:rtype: bool
284_peeking_iterator/peeking_iterator.py:54
↓ 1 callers
Method
helper
(self, num)
273_english_words/integer_to_english.py:46
↓ 1 callers
Method
increment_fre
(self)
347_top_k_frequent_elements/topki_pairing_heap.py:8
↓ 1 callers
Method
inorder_traverse
(self, root)
114_flatten_binary_tree_to_linked_list/flatten_binary_tree_take2.py:15
↓ 1 callers
Method
insertionSortList
(self, head)
147_insertion_sort_list/insertion_sort_list.py:17
↓ 1 callers
Method
insort
(self, point)
218_skyline_problem/skyline.py:2
↓ 1 callers
Method
isMirror
(self, node1, node2)
101_symmetric_tree/symmetric_tree.py:11
↓ 1 callers
Method
isStrobogrammatic
:type num: str :rtype: bool
248_strobogrammatic_number_iii/strobo.py:17
↓ 1 callers
Method
isUnival
(self, root)
250_count_univalue_subtrees/univalue_subtrees.py:19
↓ 1 callers
Method
largestNumber
(self, nums)
179_largest_number/largest_number_take1.py:4
↓ 1 callers
Method
largestRectangleArea
:type heights: List[int] :rtype: int
085_maximal_rectangle/maximal_rectangle.py:22
↓ 1 callers
Method
lengthOfLongestSubstring
:type s: str :rtype: int
003_longest_substring_without_repeating_chars/longest_substr_without_repeat_TLE.py:2
↓ 1 callers
Method
lengthOfLongestSubstring
:type s: str :rtype: int
003_longest_substring_without_repeating_chars/longest_substr_without_repeat.py:2
↓ 1 callers
Method
longestPalindrome
:type s: str :rtype: str
005_longest_palindromic_substring/longest_panlindrome_substring.py:2
↓ 1 callers
Method
maxStartFrom
(self, i)
152_maximum_products_subarray/maximum_products_subarray.py:17
↓ 1 callers
Method
maxStartFrom
(self, i)
152_maximum_products_subarray/maximum_products_subarray_recurse.py:15
↓ 1 callers
Method
mergeN
(self, lists)
023_merge_k_sorted_lists/merge_k_lists.py:11
↓ 1 callers
Method
mergeheap
(self, heaps)
347_top_k_frequent_elements/topki_pairing_heap.py:59
↓ 1 callers
Method
minPath
(self, grid, x, y)
064_minimum_path_sum/minimum_path_sum.py:11
↓ 1 callers
Method
next
:rtype: int
284_peeking_iterator/peeking_iterator.py:43
next →
1–100 of 604, ranked by callers