项目作者: YuriSpiridonov
项目描述 :
In this repository provided my Python solutions of September LeetCoding Challenge problems.
高级语言: Python
项目地址: git://github.com/YuriSpiridonov/September-LeetCoding-Challenge-2020.git
September LeetCoding Challenge 2020
In this repository provided my Python solutions of September LeetCoding Challenge problems.
Introduction
In this repository provided my Python solutions of September LeetCoding Challenge problems.
- I highly recommend you to try and solve problems yourself before look at the solutions here.
- Solutions and approaches may be not optimal.
- All Solutions here are in Python 3.
Notes
For the following problems I was googling approaches:
- 57. Insert Interval (Hard) - Was close to solve it on my own, but not. Main error: I was trying to do it in a given list and struggle with removing fully overlapped intervals.
- 421. Maximum XOR of Two Numbers in an Array (Medium) - My first solution get
Memory Limit Exceeded
, second - Time Limit Exceeded
. After several attempts I googled. - 1041. Robot Bounded In Circle (Medium) - Watched how to optimize direction/position issue.
- 980. Unique Paths III (Hard) - Solved after watching several approaches/solutions.
- 399. Evaluate Division (Medium) - My solution passed 17/22 tests. I used one layer hashmap and it was the mistake. I wasn’t be able to figure out what’s wrong on my own.
- 713. Subarray Product Less Than K (Medium) - After several different solutions with
Time Limit Exceeded
status I watched how to optimize the best one. - 139. Word Break (Medium) - My solution get
Time Limit Exceeded
. Watched how to make it right.
Week 1
Week 2
Week 3
Week 4
Week 5
License
The code is open-source and licensed under the MIT License.