| ▲ | stephen_cagle 4 hours ago | |
> Find Minimum in Rotated Sorted Array I've seen that problem in an interview before, and I thought the solution I hit upon was pretty fun (if dumb).
I think it is really interesting that you can define "list like" things in python using just two methods. This is kind of neat because sometimes you can redefine an entire problem as actually just the questions of finding the binary search of a list of solutions to that problem; here you are looking for the leftmost point that it becomes True. Anyway, I often bomb interviews by trying out something goofy like this, but I don't know, when it works, it is glorious!Good luck on your second round! | ||