bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
Learn/Rust/Practice
Rust•Practice

Rust Practice: Trace State

Open the puzzle, solve it, then come back for the next repetition.

FocusDetails
LanguageRust
ProblemContains Duplicate
DifficultyEasy
Puzzle modetrace
GoalFollow the changing variables and identify the state that must be true.

Bugl practice

Start Contains Duplicate practice

Start practice

Practice Task

  • Read the code or evidence panel before answering.
  • Submit the answer in the Bugl puzzle UI.
  • Use the explanation to name the exact rule or pattern you missed.

Problem brief: Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct.

Chapter

Back to Practice

Next

Rust Practice: Fill the Gap

This chapter

Overview
4

Lessons

8m

Read time

1. Rust Practice: Trace State2. Rust Practice: Fill the Gap3. Rust Practice: Spot the Bug4. Rust Practice: Order the Logic