https://github.com/thomasrayner/leetcode-may2020challenge
https://github.com/thomasrayner/leetcode-may2020challenge
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thomasrayner/leetcode-may2020challenge
- Owner: thomasrayner
- Created: 2020-05-01T15:31:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-31T22:17:05.000Z (about 6 years ago)
- Last Synced: 2025-02-12T13:56:27.096Z (over 1 year ago)
- Language: C#
- Size: 263 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# May LeetCoding Challenge
From [LeetCode](https://leetcode.com/explore/featured/card/may-leetcoding-challenge/)
The description:
> This Challenge is beginner-friendly and available to both Premium and non-Premium users. It consists of 31 daily problems over the month of May. A problem is added here each day, and you have 24 hours to make a valid submission for it in order to be eligible for rewards.
## Challenges
| Day | Challenge | Notes |
|-----|-----------|-------|
| 01 | [First Bad Version](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/534/week-1-may-1st-may-7th/3316/) | Interactive problem that doesn't run locally. Binary search. |
| 02 | [Jewels and Stones](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/534/week-1-may-1st-may-7th/3317/) | Common chars in strings |
| 03 | [Ransom Note](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/534/week-1-may-1st-may-7th/3318/) | Compare counts of specific chars between strings |
| 04 | [Number Complement](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/534/week-1-may-1st-may-7th/3319/) | Bit shifting, bitwise operators. |
| 05 | [First Unique Character in a String](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/534/week-1-may-1st-may-7th/3320/) | |
| 06 | [Majority](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/534/week-1-may-1st-may-7th/3321/) | One element occurs more than the rest combined and must be found |
| 07 | [Cousins in Binary Tree](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/534/week-1-may-1st-may-7th/3322/) | Interactive problem that doesn't run locally. BFS, breadth first search. |
| 08 | [Check If It Is a Straight Line](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/535/week-2-may-8th-may-14th/3323/) | Given a series of `x,y` coords, see if the slope is the same between all of them |
| 09 | [Valid Perfect Square](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/535/week-2-may-8th-may-14th/3324/) | Find out if a number is a perfect square without built in libs. Binary search. |
| 10 | [Find the Town Judge](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/535/week-2-may-8th-may-14th/3325/) | Given a count of townspeople and a list of "who trusts who", find the townsperson who trusts nobody and is trusted by all. |
| 11 | [Flood Fill](https://leetcode.com/explore/featured/card/may-leetcoding-challenge/535/week-2-may-8th-may-14th/3326/) | Recursion |
| 12 | [Single Element in a Sorted Array](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/535/week-2-may-8th-may-14th/3327/) | Binary search|
| 13 | [Remove K Digits](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/535/week-2-may-8th-may-14th/3328/) | Make the smallest number possible out of input number by removing k digits. |
| 14 | [Implement Trie (Prefix Tree)](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/535/week-2-may-8th-may-14th/3329/) | Interactive problem that doesn't run locally. |
| 15 | [Maximum Sum Circular Array](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/536/week-3-may-15th-may-21st/3330/) | Kadane's algo. |
| 16 | [Odd Even Linked List](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/536/week-3-may-15th-may-21st/3331/) | Interactive problem that doesn't run locally. Re-ordering a singly linked list with pointers. |
| 17 | [Find All Anagrams in a String](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/536/week-3-may-15th-may-21st/3332/) | Sliding window. |
| 18 | [Permutation in String](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/536/week-3-may-15th-may-21st/3333/) | Sliding window again for some reason - same as d17. |
| 19 | [Online Stock Spanner](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/536/week-3-may-15th-may-21st/3334/) | Interactive problem that doesn't run locally. Stacks. |
| 20 | [Kth Smallest Element in a BST](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/536/week-3-may-15th-may-21st/3335/) | Interactive problem that doesn't run locally. BST, binary search tree, DFS, depth-first search, recursion, in-order traversal. |
| 21 | [Count Square Submatrices with All Ones](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/536/week-3-may-15th-may-21st/3336/) | Dynamic programming. |
| 22 | [Sort Characters By Frequency](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/537/week-4-may-22nd-may-28th/3337/) | Frequency sorting. |
| 23 | [Interval List Intersections](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/537/week-4-may-22nd-may-28th/3338/https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/537/week-4-may-22nd-may-28th/3338/) | Find intersections of using pointers. |
| 24 | [Construct Binary Search Tree from Preorder Traversal](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/537/week-4-may-22nd-may-28th/3339/) | BST. |
| 25 | [UncrossedLines](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/537/week-4-may-22nd-may-28th/3340/) | Dynamic programming. |
| 26 | [Contiguous Array](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/537/week-4-may-22nd-may-28th/3341/) | Identical to April 2020 day 13 problem. |
| 27 | [Possible Bipartition](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/537/week-4-may-22nd-may-28th/3342/) | Interactive problem that doesn't run locally. DFS, depth first search. |
| 28 | [Counting Bits](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/537/week-4-may-22nd-may-28th/3343/) | Binary math, bitwise operators. |
| 29 | [Course Schedule](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/538/week-5-may-29th-may-31st/3344/) | Interactive problem that doesn't run locally. DFS, depth first search. |
| 30 | [K Closest Points to Origin](https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/538/week-5-may-29th-may-31st/3345/) | Math. Used Linq instead of coming up with a more efficient algo - in a hurry... still beat 62% 🤷♂️. |
| 31 | [Edit Distance](https://leetcode.com/explore/featured/card/may-leetcoding-challenge/538/week-5-may-29th-may-31st/3346/) | Dynamic programming. |