Design a C++ class that can parse string like "https://www.yahoo.com/:8080" into protocol: https, website: www.yahoo.com, port number:8080, no need to implement the actual method, just how to design the private member, public method, etc.
Anonym
In these sorts of interviews you really need to drill down and understand what the interviewer is looking for. A good way to simulate a real interview experience is to do a mock with one of the Yahoo Technical experts on Prepfully, rated super strongly on TrustPilot... prepfully.com/practice-interviews