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. Delap 17.4K posts
- 2. Good Saturday 29.4K posts
- 3. Guiu 7,719 posts
- 4. Andrey Santos 5,465 posts
- 5. Burnley 37.3K posts
- 6. Chelsea 111K posts
- 7. #SaturdayVibes 4,144 posts
- 8. #Caturday 3,144 posts
- 9. Enzo 34.5K posts
- 10. Gittens 9,433 posts
- 11. #BURCHE 21.8K posts
- 12. Maresca 19.6K posts
- 13. Neto 24.8K posts
- 14. Joao Pedro 7,103 posts
- 15. #MeAndTheeSeriesEP2 654K posts
- 16. #askdave N/A
- 17. Tosin 8,750 posts
- 18. The View 101K posts
- 19. Dan Lanning N/A
- 20. Chalobah 4,587 posts
Something went wrong.
Something went wrong.