6 ms·
I looked at the slices from each position to the end. Now for every name (“one”, “1”, “two”, …) check slice.startswith(name). After I pulled out first and last
by DylanDmitri 3y ago
I looked at the slices from each position to the end. Now for every name (“one”, “1”, “two”, …) check slice.startswith(name).
After I pulled out first and last from results array.
Two nested for loops, program all included was under twenty lines.