79545623

Date: 2025-03-31 06:40:27
Score: 1.5
Natty:
Report link

Heey Julien) yes string slicing in python does create a new string object because strings are immutable.

I believe char by char comp could be more efficient especially when you working with large strings or when doing many comparisons. but not always the case since slicing in python is implemnted efficiently in C.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yassineosip