Blog

Your dream job? Lets Git IT.
Interactive technical interview preparation platform designed for modern developers.

XGitHub

Platform

  • Categories

Resources

  • Blog
  • About the app
  • FAQ
  • Feedback

Legal

  • Privacy Policy
  • Terms of Service

© 2025 LetsGit.IT. All rights reserved.

LetsGit.IT/Categories/Data Structures
Data Structuresmedium

Immutable/persistent data structures: what is structural sharing?

Tags
#immutable#persistent#structural-sharing#functional
Back to categoryPractice quiz

Answer

A persistent (immutable) data structure returns a new version on “update” instead of changing in place. Structural sharing means the new version reuses most of the old nodes, so copying is cheap (useful for undo/history and safer concurrency).

Related questions

Java
Streams vs collections: what is the difference and a common pitfall?
#streams#collections#side-effects