Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wasi0013/leet_code

leetcode :snake: Python 3 solutions
https://github.com/wasi0013/leet_code

leetcode leetcode-python3-solutions leetcode-solutions python

Last synced: 2 days ago
JSON representation

leetcode :snake: Python 3 solutions

Awesome Lists containing this project

README

        

LeetCode Logo



LeetCode Python 3 solutions

## Solved (92)

- [x] [1. Two Sum](https://leetcode.com/problems/two-sum) - [:page_with_curl:](problems/1_two_sum.py)
- [x] [3. Longest Substring Without Repeating Characters](https://leetcode.com/problems/longest-substring-without-repeating-characters) - [:page_with_curl:](problems/3_longest_substring_without_repeating_characters.py)
- [x] [7. Reverse Integer](https://leetcode.com/problems/reverse-integer) - [:page_with_curl:](problems/7_reverse_integer.py)
- [x] [11. Container With Most Water](https://leetcode.com/problems/container-with-most-water) - [:page_with_curl:](problems/11_container_with_most_water.py)
- [x] [13. Roman To Integer](https://leetcode.com/problems/roman-to-integer) - [:page_with_curl:](problems/13_roman_to_integer.py)
- [x] [14. Longest Common Prefix](https://leetcode.com/problems/longest-common-prefix) - [:page_with_curl:](problems/14_longest_common_prefix.py)
- [x] [20. Valid Parentheses](https://leetcode.com/problems/valid-parentheses) - [:page_with_curl:](problems/20_valid_parentheses.py)
- [x] [21. Merge Two Sorted Lists](https://leetcode.com/problems/merge-two-sorted-lists) - [:page_with_curl:](problems/21_merge_two_sorted_lists.py)
- [x] [26. Remove Duplicates From Sorted Array](https://leetcode.com/problems/remove-duplicates-from-sorted-array) - [:page_with_curl:](problems/26_remove_duplicates_from_sorted_array.py)
- [x] [36. Valid Sudoku](https://leetcode.com/problems/valid-sudoku) - [:page_with_curl:](problems/36_valid_sudoku.py)
- [x] [41. First Missing Positive](https://leetcode.com/problems/first-missing-positive) - [:page_with_curl:](problems/41_first_missing_positive.py)
- [x] [42. Trapping Rain Water](https://leetcode.com/problems/trapping-rain-water) - [:page_with_curl:](problems/42_trapping_rain_water.py)
- [x] [49. Group Anagrams](https://leetcode.com/problems/group-anagrams) - [:page_with_curl:](problems/49_group_anagrams.py)
- [x] [53. Maximum Subarray](https://leetcode.com/problems/maximum-subarray) - [:page_with_curl:](problems/53_maximum_subarray.py)
- [x] [88. Merge Sorted Array](https://leetcode.com/problems/merge-sorted-array) - [:page_with_curl:](problems/88_merge_sorted_array.py)
- [x] [121. Best Time To Buy And Sell Stock](https://leetcode.com/problems/best-time-to-buy-and-sell-stock) - [:page_with_curl:](problems/121_best_time_to_buy_and_sell_stock.py)
- [x] [125. Valid Palindrome](https://leetcode.com/problems/valid-palindrome) - [:page_with_curl:](problems/125_valid_palindrome.py)
- [x] [128. Longest Consecutive Sequence](https://leetcode.com/problems/longest-consecutive-sequence) - [:page_with_curl:](problems/128_longest_consecutive_sequence.py)
- [x] [136. Single Number](https://leetcode.com/problems/single-number) - [:page_with_curl:](problems/136_single_number.py)
- [x] [137. Single Number Ii](https://leetcode.com/problems/single-number-ii) - [:page_with_curl:](problems/137_single_number_ii.py)
- [x] [141. Linked List Cycle](https://leetcode.com/problems/linked-list-cycle) - [:page_with_curl:](problems/141_linked_list_cycle.py)
- [x] [152. Maximum Product Subarray](https://leetcode.com/problems/maximum-product-subarray) - [:page_with_curl:](problems/152_maximum_product_subarray.py)
- [x] [155. Min Stack](https://leetcode.com/problems/min-stack) - [:page_with_curl:](problems/155_min_stack.py)
- [x] [160. Intersection Of Two Linked Lists](https://leetcode.com/problems/intersection-of-two-linked-lists) - [:page_with_curl:](problems/160_intersection_of_two_linked_lists.py)
- [x] [165. Compare Version Numbers](https://leetcode.com/problems/compare-version-numbers) - [:page_with_curl:](problems/165_compare_version_numbers.py)
- [x] [169. Majority Element](https://leetcode.com/problems/majority-element) - [:page_with_curl:](problems/169_majority_element.py)
- [x] [172. Factorial Trailing Zeroes](https://leetcode.com/problems/factorial-trailing-zeroes) - [:page_with_curl:](problems/172_factorial_trailing_zeroes.py)
- [x] [189. Rotate Array](https://leetcode.com/problems/rotate-array) - [:page_with_curl:](problems/189_rotate_array.py)
- [x] [198. House Robber](https://leetcode.com/problems/house-robber) - [:page_with_curl:](problems/198_house_robber.py)
- [x] [202. Happy Number](https://leetcode.com/problems/happy-number) - [:page_with_curl:](problems/202_happy_number.py)
- [x] [204. Count Primes](https://leetcode.com/problems/count-primes) - [:page_with_curl:](problems/204_count_primes.py)
- [x] [205. Isomorphic Strings](https://leetcode.com/problems/isomorphic-strings) - [:page_with_curl:](problems/205_isomorphic_strings.py)
- [x] [215. Kth Largest Element In An Array](https://leetcode.com/problems/kth-largest-element-in-an-array) - [:page_with_curl:](problems/215_kth_largest_element_in_an_array.py)
- [x] [217. Contains Duplicate](https://leetcode.com/problems/contains-duplicate) - [:page_with_curl:](problems/217_contains_duplicate.py)
- [x] [238. Product Of Array Except Self](https://leetcode.com/problems/product-of-array-except-self) - [:page_with_curl:](problems/238_product_of_array_except_self.py)
- [x] [242. Valid Anagram](https://leetcode.com/problems/valid-anagram) - [:page_with_curl:](problems/242_valid_anagram.py)
- [x] [260. Single Number Iii](https://leetcode.com/problems/single-number-iii) - [:page_with_curl:](problems/260_single_number_iii.py)
- [x] [283. Move Zeroes](https://leetcode.com/problems/move-zeroes) - [:page_with_curl:](problems/283_move_zeroes.py)
- [x] [300. Longest Increasing Subsequence](https://leetcode.com/problems/longest-increasing-subsequence) - [:page_with_curl:](problems/300_longest_increasing_subsequence.py)
- [x] [303. Range Sum Query Immutable](https://leetcode.com/problems/range-sum-query-immutable) - [:page_with_curl:](problems/303_range_sum_query_immutable.py)
- [x] [326. Power Of Three](https://leetcode.com/problems/power-of-three) - [:page_with_curl:](problems/326_power_of_three.py)
- [x] [344. Reverse String](https://leetcode.com/problems/reverse-string) - [:page_with_curl:](problems/344_reverse_string.py)
- [x] [347. Top K Frequent Elements](https://leetcode.com/problems/top-k-frequent-elements) - [:page_with_curl:](problems/347_top_k_frequent_elements.py)
- [x] [363. Max Sum Of Rectangle No Larger Than K](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k) - [:page_with_curl:](problems/363_max_sum_of_rectangle_no_larger_than_k.py)
- [x] [371. Sum Of Two Integers](https://leetcode.com/problems/sum-of-two-integers) - [:page_with_curl:](problems/371_sum_of_two_integers.py)
- [x] [387. First Unique Character In A String](https://leetcode.com/problems/first-unique-character-in-a-string) - [:page_with_curl:](problems/387_first_unique_character_in_a_string.py)
- [x] [412. Fizz Buzz](https://leetcode.com/problems/fizz-buzz) - [:page_with_curl:](problems/412_fizz_buzz.py)
- [x] [448. Find All Numbers Disappeared In An Array](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array) - [:page_with_curl:](problems/448_find_all_numbers_disappeared_in_an_array.py)
- [x] [485. Max Consecutive Ones](https://leetcode.com/problems/max-consecutive-ones) - [:page_with_curl:](problems/485_max_consecutive_ones.py)
- [x] [535. Encode And Decode Tinyurl](https://leetcode.com/problems/encode-and-decode-tinyurl) - [:page_with_curl:](problems/535_encode_and_decode_tinyurl.py)
- [x] [557. Reverse Words In A String Iii](https://leetcode.com/problems/reverse-words-in-a-string-iii) - [:page_with_curl:](problems/557_reverse_words_in_a_string_iii.py)
- [x] [566. Reshape The Matrix](https://leetcode.com/problems/reshape-the-matrix) - [:page_with_curl:](problems/566_reshape_the_matrix.py)
- [x] [583. Delete Operation For Two Strings](https://leetcode.com/problems/delete-operation-for-two-strings) - [:page_with_curl:](problems/583_delete_operation_for_two_strings.py)
- [x] [665. Non Decreasing Array](https://leetcode.com/problems/non-decreasing-array) - [:page_with_curl:](problems/665_non_decreasing_array.py)
- [x] [674. Longest Continuous Increasing Subsequence](https://leetcode.com/problems/longest-continuous-increasing-subsequence) - [:page_with_curl:](problems/674_longest_continuous_increasing_subsequence.py)
- [x] [703. Kth Largest Element In A Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream) - [:page_with_curl:](problems/703_kth_largest_element_in_a_stream.py)
- [x] [717. 1 Bit And 2 Bit Characters](https://leetcode.com/problems/1-bit-and-2-bit-characters) - [:page_with_curl:](problems/717_1_bit_and_2_bit_characters.py)
- [x] [724. Find Pivot Index](https://leetcode.com/problems/find-pivot-index) - [:page_with_curl:](problems/724_find_pivot_index.py)
- [x] [728. Self Dividing Numbers](https://leetcode.com/problems/self-dividing-numbers) - [:page_with_curl:](problems/728_self_dividing_numbers.py)
- [x] [771. Jewels And Stones](https://leetcode.com/problems/jewels-and-stones) - [:page_with_curl:](problems/771_jewels_and_stones.py)
- [x] [849. Maximize Distance To Closest Person](https://leetcode.com/problems/maximize-distance-to-closest-person) - [:page_with_curl:](problems/849_maximize_distance_to_closest_person.py)
- [x] [852. Peak Index In A Mountain Array](https://leetcode.com/problems/peak-index-in-a-mountain-array) - [:page_with_curl:](problems/852_peak_index_in_a_mountain_array.py)
- [x] [1108. Defanging An Ip Address](https://leetcode.com/problems/defanging-an-ip-address) - [:page_with_curl:](problems/1108_defanging_an_ip_address.py)
- [x] [1160. Find Words That Can Be Formed By Characters](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters) - [:page_with_curl:](problems/1160_find_words_that_can_be_formed_by_characters.py)
- [x] [1220. Count Vowel Permutation](https://leetcode.com/problems/count-vowel-permutation) - [:page_with_curl:](problems/1220_count_vowel_permutation.py)
- [x] [1281. Subtract The Product And Sum Of Digits Of An Integer](https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer) - [:page_with_curl:](problems/1281_subtract_the_product_and_sum_of_digits_of_an_integer.py)
- [x] [1313. Decompress Run Length Encoded List](https://leetcode.com/problems/decompress-run-length-encoded-list) - [:page_with_curl:](problems/1313_decompress_run_length_encoded_list.py)
- [x] [1342. Number Of Steps To Reduce A Number To Zero](https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero) - [:page_with_curl:](problems/1342_number_of_steps_to_reduce_a_number_to_zero.py)
- [x] [1365. How Many Numbers Are Smaller Than The Current Number](https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number) - [:page_with_curl:](problems/1365_how_many_numbers_are_smaller_than_the_current_number.py)
- [x] [1389. Create Target Array In The Given Order](https://leetcode.com/problems/create-target-array-in-the-given-order) - [:page_with_curl:](problems/1389_create_target_array_in_the_given_order.py)
- [x] [1431. Kids With The Greatest Number Of Candies](https://leetcode.com/problems/kids-with-the-greatest-number-of-candies) - [:page_with_curl:](problems/1431_kids_with_the_greatest_number_of_candies.py)
- [x] [1470. Shuffle The Array](https://leetcode.com/problems/shuffle-the-array) - [:page_with_curl:](problems/1470_shuffle_the_array.py)
- [x] [1480. Running Sum Of 1D Array](https://leetcode.com/problems/running-sum-of-1d-array) - [:page_with_curl:](problems/1480_running_sum_of_1d_array.py)
- [x] [1512. Number Of Good Pairs](https://leetcode.com/problems/number-of-good-pairs) - [:page_with_curl:](problems/1512_number_of_good_pairs.py)
- [x] [1528. Shuffle String](https://leetcode.com/problems/shuffle-string) - [:page_with_curl:](problems/1528_shuffle_string.py)
- [x] [1556. Thousand Separator](https://leetcode.com/problems/thousand-separator) - [:page_with_curl:](problems/1556_thousand_separator.py)
- [x] [1603. Design Parking System](https://leetcode.com/problems/design-parking-system) - [:page_with_curl:](problems/1603_design_parking_system.py)
- [x] [1662. Check If Two String Arrays Are Equivalent](https://leetcode.com/problems/check-if-two-string-arrays-are-equivalent) - [:page_with_curl:](problems/1662_check_if_two_string_arrays_are_equivalent.py)
- [x] [1663. Smallest String With A Given Numeric Value](https://leetcode.com/problems/smallest-string-with-a-given-numeric-value) - [:page_with_curl:](problems/1663_smallest_string_with_a_given_numeric_value.py)
- [x] [1664. Ways To Make A Fair Array](https://leetcode.com/problems/ways-to-make-a-fair-array) - [:page_with_curl:](problems/1664_ways_to_make_a_fair_array.py)
- [x] [1668. Maximum Repeating Substring](https://leetcode.com/problems/maximum-repeating-substring) - [:page_with_curl:](problems/1668_maximum_repeating_substring.py)
- [x] [1672. Richest Customer Wealth](https://leetcode.com/problems/richest-customer-wealth) - [:page_with_curl:](problems/1672_richest_customer_wealth.py)
- [x] [1678. Goal Parser Interpretation](https://leetcode.com/problems/goal-parser-interpretation) - [:page_with_curl:](problems/1678_goal_parser_interpretation.py)
- [x] [1700. Number Of Students Unable To Eat Lunch](https://leetcode.com/problems/number-of-students-unable-to-eat-lunch) - [:page_with_curl:](problems/1700_number_of_students_unable_to_eat_lunch.py)
- [x] [1720. Decode Xored Array](https://leetcode.com/problems/decode-xored-array) - [:page_with_curl:](problems/1720_decode_xored_array.py)
- [x] [1880. Check If Word Equals Summation Of Two Words](https://leetcode.com/problems/check-if-word-equals-summation-of-two-words) - [:page_with_curl:](problems/1880_check_if_word_equals_summation_of_two_words.py)
- [x] [1920. Build Array From Permutation](https://leetcode.com/problems/build-array-from-permutation) - [:page_with_curl:](problems/1920_build_array_from_permutation.py)
- [x] [1929. Concatenation Of Array](https://leetcode.com/problems/concatenation-of-array) - [:page_with_curl:](problems/1929_concatenation_of_array.py)
- [x] [1930. Unique Length 3 Palindromic Subsequences](https://leetcode.com/problems/unique-length-3-palindromic-subsequences) - [:page_with_curl:](problems/1930_unique_length_3_palindromic_subsequences.py)
- [x] [1935. Maximum Number Of Words You Can Type](https://leetcode.com/problems/maximum-number-of-words-you-can-type) - [:page_with_curl:](problems/1935_maximum_number_of_words_you_can_type.py)
- [x] [1936. Add Minimum Number Of Rungs](https://leetcode.com/problems/add-minimum-number-of-rungs) - [:page_with_curl:](problems/1936_add_minimum_number_of_rungs.py)
- [x] [2264. Largest 3 Same Digit Number In String](https://leetcode.com/problems/largest-3-same-digit-number-in-string) - [:page_with_curl:](problems/2264_largest_3_same_digit_number_in_string.py)