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 الاتجاهات
- 1. Josh Allen 39.8K posts
- 2. Texans 59.9K posts
- 3. Bills 149K posts
- 4. Joe Brady 5,297 posts
- 5. #MissUniverse 464K posts
- 6. #MissUniverse 464K posts
- 7. Anderson 27.8K posts
- 8. #StrayKids_DO_IT_OutNow 53.4K posts
- 9. Technotainment 19.4K posts
- 10. Troy 12.2K posts
- 11. McDermott 4,711 posts
- 12. joon 12.4K posts
- 13. #Ashes2025 23.9K posts
- 14. Beane 2,879 posts
- 15. #criticalrolespoilers 2,360 posts
- 16. GM CT 23.2K posts
- 17. Al Michaels N/A
- 18. Maxey 14.7K posts
- 19. Fátima 201K posts
- 20. FINAL DRAFT FINAL LOVE 1.28M posts
Something went wrong.
Something went wrong.