
Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
You can use two pointers for each version string to traverse them together while comparing the corresponding segments.
Utilize the substring method to extract each version segment delimited by '.'. Ensure you're extracting the segments correctly by adjusting the start and end indices accordingly.