Задача для собеседования
Dec. 3rd, 2022 04:22 pmПожалуйста, реализуйте функцию обращения строки (записи в обратном порядке).
- Line is unicode (UTF-8)
- Reversed string should preserve visual glyphs (so 🇪🇸 should not become 🇸🇪 after reversal)
- In-place with a constant memory overhead.
- In o(n) time
... without using helper library (string is passed as [u8] array).