https://github.com/federicobruzzone/leetcode-exercism
Leetcode and Exercism problem solutions in Python3.
https://github.com/federicobruzzone/leetcode-exercism
exercism exercism-solutions leetcode leetcode-python leetcode-solutions python python3
Last synced: 8 months ago
JSON representation
Leetcode and Exercism problem solutions in Python3.
- Host: GitHub
- URL: https://github.com/federicobruzzone/leetcode-exercism
- Owner: FedericoBruzzone
- Created: 2022-09-23T13:36:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-25T15:23:09.000Z (over 2 years ago)
- Last Synced: 2025-01-03T21:42:42.352Z (9 months ago)
- Topics: exercism, exercism-solutions, leetcode, leetcode-python, leetcode-solutions, python, python3
- Language: Python
- Homepage:
- Size: 240 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solutions
- Go to => [Leetcode solutions](#leetcode)
- Go to => [Exercism solutions](#exercism)
# leetcode
## Problems/all-topics
(Small) **1 Two Sum** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/001_two_sum.py)
(Medium) **2 Add Two Numbers** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0002_add_two_numbers.py)
(Medium) **3 Longest Substring Without Repeating Characters** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0003_longest_substring_without_repeating_characters.py)
(Hard) **4 Median of Two Sorted Arrays** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0004_median_of_two_sorted_array.py)
(Medium) **5 Longest Palindromic Substring** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0005_longest_palidromic_substring.py)
(Medium) **6 Zigzag Conversion** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0006_zigzag_conversion.py)
(Medium) **7 Reverse Integer** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0007_reverse_integer.py)
(Medium) **8 String to Integer (atoi)** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0008_string_to_integer.py)
(Easy) **9 String to Integer (atoi)** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/009_palindrome_number.py)
(Hard) **10 Regular Expression Matching** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0010_regular_expression_matching.py)
(Medium) **11 Container With Most Water** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0011_container_with_most_water.py)
(Medium) **12 Integer to Roman** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0012_integer_to_roman.py)
(Easy) **13 Roman To Integer** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0013_roman_to_integer.py)
(Easy) **14 Longest Common Prefix** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0014_longest_common_prefix.py)
(Medium) **15 3sum** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0015_3sum.py)
(Medium) **16 3sum closetst** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0016_3sum_closest.py)
(Medium) **17 Letter Combinations Of Phone Number** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0017_letter_combinations_of_phone_number.py)
(Medium) **18 4Sum** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0018_4sum.py)
(Medium) **19 Remove Nth Node From End of List** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0019_remove_nth_node_from_end_of_list.py)
(Easy) **20 Valid Parentheses** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0020_valid_parentheses.py)
(Easy) **21 Merge Two Sorted Lists** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0021_merge_two_sorted_lists.py)
(Medium) **22 Generate Parentheses** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0022_generate_parentheses.py)
(Hard) **23 Merge k Sorted Lists** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0023_merge_k_sorted_lists.py)
(Medium) **24 Swap Nodes in Pairs** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0024_swap_nodes_in_pairs.py)
(Hard) **25 Reverse Nodes In K Group** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0025_reverse_nodes_in_k_group.py)
(Easy) **26 Remove Duplicates from Sorted Array** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0026_remove_duplicates_from_sorted_array.py)
(Easy) **27 Remove Element** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0027_remove_element.py)
(Medium) **28 Find the Index of the First Occurrence in a String** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0028_find_the_index_of_the_first_occurrence_in_a_string.py)
(Medium) **29 Divide Two Integers** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0029_divide_two_integers.py)
(Hard) **30 Substring with Concatenation of All Words** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/0030_substring_with_concatenation_of_all_words.py)
(Medium) **31 Next Permutation** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/blob/main/leetcode/problems/all_topics/0031_next_permutation.py)
(Hard) **32 Longest Valid Parentheses** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/blob/main/leetcode/problems/all_topics/0032_longest_valid_parentheses.py)
(Medium) **33. Search in Rotated Sorted Array** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/blob/main/leetcode/problems/all_topics/0033_search_in_rotated_sorted_array.py)
(Medium) **34. Find First and Last Position of Element in Sorted Array** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/blob/main/leetcode/problems/all_topics/0034_find_first_and_last_position_of_element_in_sorted_array.py)
(Easy) **35 Search Insert Position** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/blob/main/leetcode/problems/all_topics/0035_search_insert_position.py)
(Medium) **36 Valid Sudoku** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/blob/main/leetcode/problems/all_topics/0036_valid_sudoku.py)
(Hard) **37 Sudoku Solver** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/blob/main/leetcode/problems/all_topics/0037_sudoku_solver.py)
(Medium) **38 Count and Say** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/blob/main/leetcode/problems/all_topics/0038_count_and_say.py)
(Medium) **39 Combination Sum** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/blob/main/leetcode/problems/all_topics/0039_combination_sum.py)
(Hard) **51 N-Queens** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/blob/main/leetcode/problems/all_topics/0051_n_queens.py)
(Medium) **139 Word Break** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/blob/main/leetcode/problems/all_topics/0139_word_break.py)
(Hard) **701 Insert into a Binary Search Tree** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/blob/main/leetcode/problems/all_topics/0701_insert_into_a_binary_search_tree.py)
(Medium) **1443 Minimum Time to Collect All Apples in a Tree** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/1443_minimum_time_to_collect_all_apples_in_a_tree.py)
(Medium) **1519 Number of Nodes in the Sub-Tree With the Same Label** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/1519_number_of_nodes_in_the_sub_tree_with_the_same_label.py)
##### TODO:
(Medium) **1615 Maximal Network Rank** [Solution](https://github.com/FedericoBruzzone/leetcode/blob/main/leetcode/problems/all_topics/1615_maximal_network_rank.py)
# exercism
(Learning Exercise) **Hello World** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/hello-world/hello_world.py)
(Learning Exercise) **Guidos Gorgeous Lasagna** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/guidos-gorgeous-lasagna/lasagna.py)
(Learning Exercise) **Ghost Gobble Arcade Game** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/ghost-gobble-arcade-game/arcade_game.py)
(Learning Exercise) **Currency Exchange** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/currency-exchange/exchange.py)
(Learning Exercise) **Meltdown Mitigation** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/meltdown-mitigation/conditionals.py)
(Learning Exercise) **Black Jack** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/black-jack/black_jack.py)
(Learning Exercise) **Little Sisters Essay** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/little-sisters-essay/string_methods.py)
(Learning Exercise) **Little Sisters Vocab** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/little-sisters-vocab/strings.py)
(Learning Exercise) **Card games** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/card-games/lists.py)
(Learning Exercise) **Chaintanas Colossal Coaster** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/chaitanas-colossal-coaster/list_methods.py)
(Learning Exercise) **Making The Grade** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/making-the-grade/loops.py)
(Learning Exercise) **Tisbury Treasure Hunt** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/tisbury-treasure-hunt/tuples.py)
(Learning Exercise) **Inventory Management** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/inventory-management/dicts.py)
(Learning Exercise) **Cater Waiter** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/cater-waiter/sets.py)
(Learning Exercise) **Ellens Alien Game** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/ellens-alien-game/classes.py)
(Easy) **Darts** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/darts/darts.py)
(Easy) **Difference of squares** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/difference-of-squares/difference_of_squares.py)
(Easy) **Triangle**
[Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/triangle/triangle.py)(Easy) **Robot Name** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/robot-name/robot_name.py)
(Easy) **Series** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/series/series.py)
(Easy) **D&D Character** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/dnd-character/dnd_character.py)
(Easy) **Roman Numerals** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/roman-numerals/roman_numerals.py)
(Easy) **Matrix** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/matrix/matrix.py)
(Easy) **High Scores** [Solution](https://github.com/FedericoBruzzone/leetcode-exercism/tree/main/exercism/tracks/python/high-scores/high_scores.py)