amarao: (Default)
amarao ([personal profile] amarao) wrote2022-12-03 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).

[personal profile] eterevsky 2022-12-20 07:03 am (UTC)(link)
Надеюсь что это шутка