May
@fivefeetcoder
i love solving coding questions | favourite quote dumps from time to time
Day 28 Problem 946: Validate Stack Sequences Time Complexity: O(N) because we are going through the whole popped array Space Complexity: O(N) because we are using a stack and the worst case could be that no elements of pushed array match the sequence of popped array.
Day 27 Problem 32: Longest Valid Parenthesis Time Complexity: O(N) because we are traversing through the whole string once. Space Complexity: O(N) because in the worst case scenario, the stack we are using could just contain all opening brackets.
Day 22 Couldnt solve it within 20 mins. Proceeded to see the most upvoted solution and solved it.
Day 21 Repeated a problem today because i’m packed with studies and assignments
Day 16 Practising two pointer approach problems till I get the hang of it
Day 15 Forgot to post yesterday Two Two pointer approach problem
Day 13 couldn’t figure out the loop conditions within the time limit of 20 mins sometimes i really consider if i’m smart enough for this
Day 12 this is the second approach after seeing other’s solution. my first one was brute force but worse. i have to get better at thinking about the problem first and then jumping in to solve. i will do better next time in an easy question under the time constraint of 20 mins.
United States Trends
- 1. #UFCQatar 30K posts
- 2. Liverpool 161K posts
- 3. Mizzou 3,540 posts
- 4. Mateer 1,576 posts
- 5. Slot 114K posts
- 6. Rutgers 4,922 posts
- 7. Chris Paul 12K posts
- 8. Luke Riley 2,046 posts
- 9. Horiguchi 2,593 posts
- 10. James Harden 2,728 posts
- 11. Arbuckle N/A
- 12. #Sooners 1,025 posts
- 13. Missouri 9,797 posts
- 14. Newcastle 34.5K posts
- 15. Dalby 1,525 posts
- 16. Tagir 1,206 posts
- 17. Lamine 51.3K posts
- 18. Anfield 30.2K posts
- 19. Isak 31.7K posts
- 20. #kufball N/A
Something went wrong.
Something went wrong.