When I get asked things like: “Write a function that finds the longest positive-sum subsequence in an int array and runs in O(n) time.”
I really wonder if those places ever find people that can do this. I never get offers from the places that ask this. I always get offers from the ones that have a similar process to the one in the article. I don't think I've ever even met someone who could answer these questions on-the-spot, with a marker on a whiteboard.