Is it a fucking joke , non fang company asking leetcode hard to be solved in 15 minutes? . First of all even coming up with the solution will take more unless u had solved the question and coming up with most optimized solution will take way more . I solved it via recursion but seems like that was not enough .
You don't want to work there
Is there expectation to come up with an optimal solution in 15mins or to code the problem in 15 mins? If it's to come up with an optimal solution then 15 min is not unusual.
Expectation was optimal solution for leetcode hard in 15 min.
Joke.
Which company?
Guessing the interviewer didn't like your face
đ¤đ¤đ¤đ¤đ¤
Which company?
Insane! They really got it backwards. For questions like that the focus should be on problem solving mostly. What was the question?
What was the question?