Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Rust
/
Box, Rc and Arc
A parent owns child nodes on one thread, while each child needs an optional parent link. …
from Box, Rc and Arc
Rust 1.98
intermediate
1 min
A parent owns child nodes on one thread, while each child needs an optional parent link. Which representation best matches that ownership?
Rc children and Weak parent links
Rc in both directions
Arc<Mutex<_>> in both directions
Box in both directions
Check
Ask AI about this kata
Report an error
next kata
What does this program print?
Predict the output
A new version is available
Reload