InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 1861–1872 of 3610 questions

Go & RustIntermediate1 min read

Copy versus Clone?

Copy is implicit for eligible simple types; Clone is explicit and may allocate or duplicate resources.

Go & RustIntermediate1 min read

What are lifetimes?

Lifetimes describe relationships between references and allow the compiler to check that borrowed data outlives its use.

Go & RustIntermediate1 min read

What are traits?

Traits define shared behavior that types implement; generic bounds require behavior from type parameters.