← Questions
Design a string type: memory layout, moves and thread safety
0
I was asked this
No reports yet. Sign in to say where you were asked it.
What is a string in a programming language? Describe what fields a string struct holds (for example in Rust: pointer, length, capacity) and how you would implement one yourself, including growth. Then explain what moving a string does compared with copying it, and what changes when several threads use strings at once.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding
