MCPcopy Create free account

hub / github.com/RealHacker/leetcode-solutions / functions

Functions604 in github.com/RealHacker/leetcode-solutions

↓ 40 callersMethodadd
Add the number to an internal data structure. :rtype: nothing
170_two_sum_iii/two_sum_iii.py:10
↓ 40 callersMethodpop
(self)
155_min_stack/min_stack.py:21
↓ 15 callersMethodinsert
:type intervals: List[Interval] :type newInterval: Interval :rtype: List[Interval]
057_insert_interval/insert_interval.py:8
↓ 14 callersMethodremove
(self, point)
218_skyline_problem/skyline.py:8
↓ 12 callersMethodpop
(self)
225_impl_stack_using_queues/stack_using_queues.py:16
↓ 5 callersMethodinsert
(self, word)
208_implement_trie/implement_trie_prefix_tree.py:15
↓ 4 callersMethodexplore
(self, board, x, y)
130_surrounded_regions/surrounded_regions.py:24
↓ 4 callersMethodisInterleave
(self, s1, s2, s3)
097_interleaving_string/interleaving_take2.py:7
↓ 4 callersMethodset
(self, key, value)
146_lru_cache/lrucache.py:20
↓ 3 callersMethodadvance
(self)
251_flatten_2d_vector/flatten.py:16
↓ 3 callersMethodconvertToTitle
(self, n)
168_excel_sheet/excel_sheet_column_title.py:4
↓ 3 callersMethodfactorial
(m)
060_permutation_sequence/permutation_sequence.py:8
↓ 3 callersMethodget
(self, key)
146_lru_cache/lrucache.py:10
↓ 3 callersMethodgetMedian
(self, is_odd, array)
004_median_of_2_sorted_arrays/median_sorted_arrays.py:2
↓ 3 callersMethodpop
(self)
232_make_queue_using_stacks/queue_using_stacks.py:13
↓ 3 callersMethodrecurse
(self, start_index, color)
256_paint_house/paint_house.py:14
↓ 3 callersMethodreverse
(self, x)
007_reverse_integer/reverse_integer.py:4
↓ 3 callersMethodsequencesWithDigits
(self, n)
248_strobogrammatic_number_iii/strobo.py:84
↓ 2 callersMethodbfs
(self, v0, v)
310_minimum_height_trees/mininum_height_trees.py:21
↓ 2 callersMethodcanJump
(self, nums)
055_jump_game/jump_game.py:4
↓ 2 callersMethodcanJump
(self, nums)
055_jump_game/jump_game_TLE.py:4
↓ 2 callersMethodcountLessThan
(self, n)
248_strobogrammatic_number_iii/strobo.py:38
↓ 2 callersMethodfind
(seg, s)
044_wildcard_matching/wildcard_matching.py:32
↓ 2 callersMethodgetMax
(self, a1, i1, a2, i2)
004_median_of_2_sorted_arrays/median_sorted_arrays.py:7
↓ 2 callersMethodgetSection
(self, data)
297_serialize_and_deserialize_binary_tree/serialize_and_desialize_binary_tree.py:20
↓ 2 callersMethodgetTable
(self, num, k)
321_create_maximum_number/create_maximum_number.py:4
↓ 2 callersMethodget_token
(self,s,i)
224_basic_calculator/cal.py:2
↓ 2 callersMethodisInterleave
(self, s1, s2, s3)
097_interleaving_string/interleaving_naive.py:7
↓ 2 callersMethodisScramble
:type s1: str :type s2: str :rtype: bool
087_scramble_string/scramble_string.py:4
↓ 2 callersMethodmerge
(self, res, lst)
023_merge_k_sorted_lists/merge_k_lists.py:20
↓ 2 callersMethodnumIslands
(self, grid)
200_islands/number_of_islands.py:4
↓ 2 callersMethodpop
:rtype: nothing
225_impl_stack_using_queues/stack_using_queues_take2.py:17
↓ 2 callersMethodrecurse
(self, root, robbed)
337_house_robber_iii/337_house_robber_iii.py:21
↓ 2 callersMethodrecurse
(self, s1, s2)
087_scramble_string/scramble_string.py:18
↓ 2 callersMethodrestoreIpAddresses
(self, s)
093_restore_ip_addresses/restore_ip_address.py:5
↓ 2 callersMethodrob
:type root: TreeNode :rtype: int
337_house_robber_iii/337_house_robber_iii.py:9
↓ 2 callersMethodshorten
(self, word)
288_unique_word_abbrevation/abbr.py:13
↓ 2 callersMethodstrobolize
(self, digits)
248_strobogrammatic_number_iii/strobo.py:34
↓ 2 callersMethodsum
(self, i)
307_range_sum_query_mutable/range_sum_query.py:27
↓ 2 callersMethodtranslate
(self, table, length)
321_create_maximum_number/create_maximum_number_TLE_take2.py:4
↓ 2 callersMethodupdate
:type i: int :type val: int :rtype: int
307_range_sum_query_mutable/range_sum_query.py:13
↓ 1 callersMethod_buildTree
(self, l1, h1, l2, h2)
105_construct_bt_from_preorder_inorder/contruct_binary_tree_from_preorder_inorder.py:20
↓ 1 callersMethod_calculate
(self, s, i)
224_basic_calculator/cal.py:23
↓ 1 callersMethod_getnum
(self, n)
096_unique_binary_search_trees/unique_binary_search_trees.py:14
↓ 1 callersMethod_isInterleave
(self, s1, s2, s3)
097_interleaving_string/interleaving_dp.py:20
↓ 1 callersMethod_recurse
(self, tokens)
241_different_ways_to_add_parenthesis/different_ways_to_add_parenthesis_take2.py:21
↓ 1 callersMethod_recurse
(self, node, k)
230_kth_smallest_element/kth.py:18
↓ 1 callersMethodadd_to_mat
(self, c1, c2)
269_alien_dictionary/dictionary.py:52
↓ 1 callersMethodbuildMemo
(self, segment, start)
093_restore_ip_addresses/restore_ip_address.py:23
↓ 1 callersMethodbuildNode
(self, word, tree)
140_word_break_ii/word_break_ii.py:13
↓ 1 callersMethodbuildNode
(self, word, tree)
139_word_break/word_break.py:34
↓ 1 callersMethodbuildTable
(self, idx, target)
040_combination_sum_ii/combination_sum_ii.py:24
↓ 1 callersMethodbuildTree
(self, n1, n2)
095_unique_binary_search_trees_ii/unique_binary_search_trees_ii.py:16
↓ 1 callersMethodbuildtrie
(self, words)
336_palindrome_pairs/palindrome_pairs.py:46
↓ 1 callersMethodcalculate
(self, s)
224_basic_calculator/basic_calculator.py:5
↓ 1 callersMethodcompareVersion
(self, version1, version2)
165_compare_version_numbers/compare_version_numbers.py:5
↓ 1 callersMethodcomputeIndexes
(self, s1, s3)
097_interleaving_string/interleaving_take2.py:21
↓ 1 callersMethodcompute_height
(self, node)
110_balanced_binary_treee/balanced_binary_tree.py:22
↓ 1 callersMethodconsume
(self, s1, s2, front, end, l)
097_interleaving_string/interleaving_take2.py:37
↓ 1 callersMethodcountSubs
(self, s, t)
115_distinct_subsequences/distinct_subsequences.py:19
↓ 1 callersMethoddfs
(self, x, y, node)
212_word_search_ii/wordsearch.py:38
↓ 1 callersMethoddfs
(self, node, p, q)
236_lowest_common_ancestor/lowest_common_ancestor_complex.py:23
↓ 1 callersMethoddivide
(self, dividend, divisor)
029_divide_2integers/divide_two_integers.py:5
↓ 1 callersMethodeval
(self)
224_basic_calculator/basic_calculator.py:10
↓ 1 callersMethodexplore
(self, board, x, y)
130_surrounded_regions/surrounded_regions_TLE.py:18
↓ 1 callersMethodfind
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 callersMethodfind_longest
(self, i, s)
032_longest_valid_parentheses/longest_valid_parentheses_wrong.py:20
↓ 1 callersMethodfind_longest
(self, i, s)
032_longest_valid_parentheses/longest_valid_parentheses_TE.py:21
↓ 1 callersMethodflatten
(self, node)
173_binary_tree_iterator/binary_search_tree_iterator.py:16
↓ 1 callersMethodflatten
(self, nestedList)
341_flatten_nested_list_iterator/flatten.py:36
↓ 1 callersMethodgen
(self, s, n)
140_word_break_ii/word_break_ii.py:22
↓ 1 callersMethodgenerate
(self, current, left, right)
022_generate_parentheses/generate_parentheses.py:11
↓ 1 callersMethodgetCombi
(self, nums, i, temp)
090_subsets_ii/subsets_ii.py:13
↓ 1 callersMethodgetCount
(self, s, i)
091_decode_ways/decode_ways.py:10
↓ 1 callersMethodgetMask
(self, word)
318_maximum_product_of_word_lengths/maximum_product_of_word_lengths.py:19
↓ 1 callersMethodget_combinations
(self, times_list, slen)
291_word_pattern_ii/pattern.py:39
↓ 1 callersMethodget_first_k
(self, node, k)
272_closest_binary_search_tree_values/closest.py:56
↓ 1 callersMethodget_last_k
(self, node, k)
272_closest_binary_search_tree_values/closest.py:46
↓ 1 callersMethodgetpal
(self, node, s)
336_palindrome_pairs/palindrome_pairs.py:34
↓ 1 callersMethodhasNext
:rtype: bool
281_zigzag_iterator/iterator.py:32
↓ 1 callersMethodhasNext
:rtype: bool
284_peeking_iterator/peeking_iterator.py:54
↓ 1 callersMethodhelper
(self, num)
273_english_words/integer_to_english.py:46
↓ 1 callersMethodincrement_fre
(self)
347_top_k_frequent_elements/topki_pairing_heap.py:8
↓ 1 callersMethodinorder_traverse
(self, root)
114_flatten_binary_tree_to_linked_list/flatten_binary_tree_take2.py:15
↓ 1 callersMethodinsertionSortList
(self, head)
147_insertion_sort_list/insertion_sort_list.py:17
↓ 1 callersMethodinsort
(self, point)
218_skyline_problem/skyline.py:2
↓ 1 callersMethodisMirror
(self, node1, node2)
101_symmetric_tree/symmetric_tree.py:11
↓ 1 callersMethodisStrobogrammatic
:type num: str :rtype: bool
248_strobogrammatic_number_iii/strobo.py:17
↓ 1 callersMethodisUnival
(self, root)
250_count_univalue_subtrees/univalue_subtrees.py:19
↓ 1 callersMethodlargestNumber
(self, nums)
179_largest_number/largest_number_take1.py:4
↓ 1 callersMethodlargestRectangleArea
:type heights: List[int] :rtype: int
085_maximal_rectangle/maximal_rectangle.py:22
↓ 1 callersMethodlengthOfLongestSubstring
:type s: str :rtype: int
003_longest_substring_without_repeating_chars/longest_substr_without_repeat_TLE.py:2
↓ 1 callersMethodlengthOfLongestSubstring
:type s: str :rtype: int
003_longest_substring_without_repeating_chars/longest_substr_without_repeat.py:2
↓ 1 callersMethodlongestPalindrome
:type s: str :rtype: str
005_longest_palindromic_substring/longest_panlindrome_substring.py:2
↓ 1 callersMethodmaxStartFrom
(self, i)
152_maximum_products_subarray/maximum_products_subarray.py:17
↓ 1 callersMethodmaxStartFrom
(self, i)
152_maximum_products_subarray/maximum_products_subarray_recurse.py:15
↓ 1 callersMethodmergeN
(self, lists)
023_merge_k_sorted_lists/merge_k_lists.py:11
↓ 1 callersMethodmergeheap
(self, heaps)
347_top_k_frequent_elements/topki_pairing_heap.py:59
↓ 1 callersMethodminPath
(self, grid, x, y)
064_minimum_path_sum/minimum_path_sum.py:11
↓ 1 callersMethodnext
:rtype: int
284_peeking_iterator/peeking_iterator.py:43
next →1–100 of 604, ranked by callers