Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/vaibhavvikas/dsa-problems

Python solutions of leetcode problems that I created for revision.
https://github.com/vaibhavvikas/dsa-problems

leetcode leetcode-python leetcode-solutions

Last synced: 25 days ago
JSON representation

Python solutions of leetcode problems that I created for revision.

Awesome Lists containing this project

README

        

## Leetcode Problems

Solutions to leetcode problems using Python

### Arrays
[4. Find median of two sorted arrays](./leetcode/arrays/4_median_of_two_sorted_arrays.md) \
[33. Search in rotated sorted array](./leetcode/arrays/33_search_in_rotated_sorted_array.md) \
[53. Max Sum Subarray](./leetcode/arrays/53_max_sum_subarray.md) \
[62. Grid Unique Paths](./sde-sheet/arrays3/grid_uniq_paths.md) \
[128. Longest Consecutive Sequence](./leetcode/arrays/128_longest_consecutive_seq.md) \
[287. Duplicate in Array](./leetcode/arrays/287_duplicate_in_array.md) \
[229. Majority Element II](./leetcode/arrays/229_majority_gt_nby3.md) \
[493. Reverse Pairs](./leetcode/arrays/493_reverse_pairs.md) \
[2439. Minimize Maximum of Array](./leetcode/arrays/2439_minimize_maximum_of_array.md)

---

### Linked List
[138. Clone Linked List with Random Pointer](./leetcode/linked_list/clone_with_random_pointer.md)

---

### Trees
[366. Remove Leaves](./leetcode/trees/366_remove_leaves.md) \
[968. Binary Tree Cameras](./leetcode/trees/968_binary_tree_cameras.md) \
[2096. Step Directions in binary tree](./leetcode/trees/2096_step_directions_from_bin_tree_node_to_another.md)

---

### Dynamic Programming
[120. Triangle](./leetcode/dynamic_programming/120_triangle.md) \
[122. Buy and Sell Stock II](./general/dynamic_programming/stocks/buy_sell_stocks_2.md) \
[123. Buy and Sell Stock III](./general/dynamic_programming/stocks/buy_sell_stocks_3.md) \
[818. Car Problem](./leetcode/dynamic_programming/818_car_problem.md) \
[1155. Number of ways to roll dice](./leetcode/dynamic_programming/1155_ways_to_roll_dice.md) \
[1277. Count Square Submatrices](./leetcode/dynamic_programming/1277_count_sq_submatrices.md)

---

### Graphs

**General:** \
[127. Word Ladder](./leetcode/graphs/127_word_ladder.md) \
[128. Word Ladder 2](./leetcode/graphs/128_word_ladder_2.md) \
[200. Number of Islands](./leetcode/graphs/200_number_of_islands.md) \
[207. Course Schedule](./leetcode/graphs/207_course_schedule.md) \
[695. Max Area of Island](./leetcode/graphs/695-max-area-of-island.md) \
[994. Rotten Oranges](./leetcode/graphs/994_rotten_tomatoes.md) \
[1293. Shortest path grid obstacles](./leetcode/graphs/1293_shortest_path_grid_obstacles.md) \
[1631. Path with Min Effort](./leetcode/graphs/1631_path_min_effort.md) \
[2115. All possible recipes](./leetcode/graphs/2115_all_possible_recipes.md)

**BFS:**\
[130. Surrounded Regions](./leetcode/bfs/130_surrounded_by_regions.md) \
[139. Word Break](./leetcode/bfs/139_word_break.md) \
[140. Word Break II](./leetcode/bfs/140_word_break_ii.md) \
[472. Concatenated Words](./leetcode/bfs/472_concatenated_words.md) \
[1020. Number of enclaves](./leetcode/bfs/1020_number_of_enclaves.md) \
[1091. Shortest Path binary matrix](./leetcode/bfs/1091_shortest_path_binary_matrix.md)

**DFS:** \
[79. Word Search](./leetcode/dfs/79_word_search.md)

**Union Find:** \
[721. Account Merge](./leetcode/union_find/721_account_merge.md) \
[1579. Remove edges](./leetcode/union_find/1579_remove_edges.md)

---

### Hash table
[3. Longest Substring Without Repeating Characters](./leetcode/hash_table/3_longest_subsequence_wo_repeating_characters.md) \
[30. Substring with concatenated words](./leetcode/hash_table/30_substring_with_concatenated_words.md) \
[554. Brick Wall](./leetcode/hash_table/554_brick_wall.md)

---

### Heap
[295. Find Median from Stream](./leetcode/heap/295_median_of_data_stream.md) \
[778. Swim in rising Water](./leetcode/heap/778_swim_in_rising_water.md) \
[973. K Closest Point](./leetcode/heap/973_k_closest_point.md) \
[1882. Process task using servers](./leetcode/heap/1882_process_task_using_servers.md) \
[2034. Stock price fluctuation](./leetcode/heap/2034_stock_price_fluctuation.md) \
[2050. Parallel Courses](./leetcode/heap/2050_parallel_courses_iii.md)

---

### Stack
[84. Largest Rectangle Area in Histogram](./leetcode/stack/84_largest_rectangle_in_histogram.md) \
[85. Maximal Rectangle](./leetcode/stack/85_maximal_rectangle.md) \
[503. Next Greater Element](./leetcode/stack/503_next_greater_circular_array.md)

---

### Two Pointers
[15. 3Sum](./leetcode/two_pointers/15_3sum.md) \
[42. Trapping Rain Water](./leetcode/two_pointers/42_trapping_rain_water.md)

---

### Miscellaneous
[12. Integer to Roman](./leetcode/miscellaneous/12_integer_to_roman.md) \
[13. Roman to Integer](./leetcode/miscellaneous/13_roman_to_integer.md) \
[36. Valid Sudoku](./leetcode/miscellaneous/36_valid_sudoku.md) \
[126. LRU Cache](./leetcode/miscellaneous/126_lru_cache.md) \
[460. LFU Cache](./leetcode/miscellaneous/460_lfu_cache.md)