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 Tendências
- 1. Josh Allen 40.4K posts
- 2. #GenshinSpecialProgram 7,707 posts
- 3. Texans 60.3K posts
- 4. Bills 149K posts
- 5. #FridayVibes 2,873 posts
- 6. Joe Brady 5,325 posts
- 7. Niger 46.8K posts
- 8. #MissUniverse 475K posts
- 9. #Ashes2025 25.9K posts
- 10. Troy 12.1K posts
- 11. OpenMind 50.3K posts
- 12. joon 13.2K posts
- 13. #StrayKids_DO_IT_OutNow 54.9K posts
- 14. Anderson 28K posts
- 15. McDermott 4,793 posts
- 16. FINAL DRAFT FINAL LOVE 1.32M posts
- 17. Beane 2,921 posts
- 18. Infinit 82.7K posts
- 19. México 586K posts
- 20. STRAY KIDS DO IT IS DIVINE 57K posts
Something went wrong.
Something went wrong.