Let me try changing my code and see if that works... Thanks for reminding me about that.
there can be more than one solutions
Yet for some reason the description says Your task is to return the first longest string, so there can't be more than 1 possible solution...
Your task is to return the first longest string
Looks like some test cases are ambiguous, because on occasions there can be more than one solutions to the case. Could be a "bug" that needs to be fixed for such test cases with two possible solutions.
Loading collection data...
Let me try changing my code and see if that works... Thanks for reminding me about that.
Yet for some reason the description says
Your task is to return the first longest string
, so there can't be more than 1 possible solution...Looks like some test cases are ambiguous, because on occasions there can be more than one solutions to the case. Could be a "bug" that needs to be fixed for such test cases with two possible solutions.