The whole problem is always O(1) no matter how you solve it (as long as you go in any order) because any string of longer than 27 doesn't matter. If there is a fixed worst case you'll always be in O(1).
2026-03-08 15:15:40
1
homelander3310 :
can't you just slice the string
2026-03-09 00:10:03
0
To see more videos from user @greghogg5, please go to the Tikwm
homepage.