1. Started with introduction. 2. About spring boot & microservice experience, its differences. Microservice design principles. 3. Hacker rank problem(actual problem stmt was very lengthy & scary) Given a list of BaggageItem( has 2 fields city, itemName) & should return the sorted Map> city wise on arrival basis - sort them using ForkJoinPool based on arrival - If list size < 10 then sort using sequential way otherwise use fork join pool
Sigiloso
#2. At my experience level I couldn't answer for microservices design principles. #3. Honestly I got panic by reading the problem statement only. Next after reading about fork join pool things I got more stressed because we don't code on day to day basis for such code. Well, interviewer helped me to understand for actual expected output. I converted the list to map based on its index i.e. arrival of item. In fact 6 out of 15 test cases were passing too. But failed to debug the code live & major part problem i.e. writing code for left task v/s right task. I didn't calculated the mid properly + in recursive task constructor I was passing the same input list instead of new one. - Also couldn't write the merge function to merge map from leftTask & rightTask(which is again bit complex at that moment but not in real) (Post interview I got to know about all my mistakes).