Fighting with the longest common prefix puzzle
Link to the puzzle description https://leetcode.com/problems/longest-common-prefix/submissions
as always I had a small hiccups . Here's my WIP code
`
And this code is stuck with the following test case as per screenshot. It's fine with all the other test cases.
I assume Linq has some functions to compare the length of the common chars, but I am not versed with this technology. I assume Linq has a function to skip non-common chars sitting between the common chars (like in the screenshot)
Can anyone point me in the right direction?
as always I had a small hiccups . Here's my WIP code
`
And this code is stuck with the following test case as per screenshot. It's fine with all the other test cases.
I assume Linq has some functions to compare the length of the common chars, but I am not versed with this technology. I assume Linq has a function to skip non-common chars sitting between the common chars (like in the screenshot)
Can anyone point me in the right direction?
