For this Rosetta coding challenge, I was able to write the JS code which gives the output exactly as required (an array with words, where the first letter of each word is the same as the last letter of the previous word).
But the tests are failing on the interface. Can’t figure out where I need to make the changes because on running the same code on VS Code, the output looks exactly as required.
I am so sorry for not providing all the info as you requested initially. Couldn’t gather my thoughts initially when I started replying to you. Lack of focus on my side.
I should admit that all the coding challenges here are challenging / demanding. It demands one to be thorough with the fundamental knowledge of a programming language and also algorithms and data structures.
To be honest, it took me hours (and days) to come up with a solution and I still believe there could be a better approach to solve this but I can’t expand my thought process into that. Average person like me can’t solve these problems within the limited time frame of an interview session. Still, the objective is to learn and improve.
If your interviewer and interview process is reasonable, getting a tight, perfect, optimized solution isn’t the point. It’s about showing how you dig into the problem and break in down into pieces that you start solving.
Thank you for the feedback. You being an expert and with vast experience in the software industry, just wanted more insight from you about your approach / strategy to problem solving .