I was far better at these straight out of university, as thats the sort of short assignments we got given.
15 years later I am a far better coder (I class myself as a full stack software engineer now) but I haven't needed to implement the sort of solution that they ask for in years (except in interviews).
15 years later I am a far better coder (I class myself as a full stack software engineer now) but I haven't needed to implement the sort of solution that they ask for in years (except in interviews).