I just had an online coding assessment for a job, that had many multiple choice questions and two coding challenges, all to be completed in 90 minutes.
I am confident about my multiple choice answers and knew that I got the correct solution to the first coding challenge.
I was also able to solve the second challenge, but the issue is that it did not pass all the test cases (only 3 out of 14) which was because my solution takes up a longer time than expected to solve the problem. I knew I had to optimize my algorithm more but ran out of time.
So, after having the assessment I emailed the employer thanking them about the opportunity and how I wished I had more time to optimize my solution.
I took the online assessment at midnight, optimized my code in the morning and got the optimal solution.
Questions: Is it advisable that I email the employer to tell them that I have come up with an optimal solution for problem number two? What impression will I make with the employer upon doing this? How should I tell them that I am sending them the solution/modification to my original answer without sounding annoying?