View on GitHub

leetcode

My Leetcode submission

LeetCode

This repository contains all my accepted solutions to LeetCode problems. The solution files contain only the solution class.

Nowadays, I am trying to follow the problem list from the Leetcode Patterns website.

Contents

Monthly Challenges

I participated in the LeetCode monthly challenge in the summer of 2020. A list of those solutions are maintained separately here.

Solutions

S. No Problem Solution
1 Contains Duplicate contains_duplicates.py
2 Contains Duplicate II contains_duplicates_ii.py
3 Contains Duplicate III contains_duplicates_iii.py
4 Missing Number missing_number.py
5 Find All Numbers Disappeared in an Array find_all_numbers_disappeared_in_an_array.py
6 Single Number single_number.py
7 Find the Difference find_the_difference.py
8 Climbing Stairs climbing_stairs.py
9 Fibonacci Number fibonacci_number.py
10 N-th Tribonacci Number n_th_tribonacci_number.py
11 Minimum Time Visiting All Points minimum_time_visiting_all_points.py
12 Min Cost Climbing Stairs min_cost_climbing_stairs.py
13 Determine Color of a Chessboard Square determine_color_of_a_chessboard_square.py
14 Best Time to Buy and Sell Stock best_time_to_buy_and_sell_stock.py