Superteam Academy
|bySuperteam BrasilSuperteam Brasil
Superteam Academy

The decentralized learning platform for Solana developers.

Resources

  • Courses
  • Leaderboard
  • Community

Support

  • Documentation
  • API Reference
  • Community

Legal

  • Terms of Service
  • Privacy Policy
  • Cookie Policy

Follow Us

  • Twitter / X
  • Discord
  • GitHub

Stay in the Loop

Get weekly updates on new courses, Solana ecosystem news, and learning tips.

Powered bySuperteam BrasilSuperteam Brasil

Β© 2026 Superteam Academy. All rights reserved.

Rust Ownership & Memory

References and Borrowing
Ownership Challenge
Borrowing & Lifetimes / Ownership Challenge
30 XP

Ownership Challenge

Rust

Write a function longest that takes two string slices and returns the longer one. If they are equal length, return the first. The function must use proper lifetime annotations.

Rust

Loading editor...

3 / 3