Practice · 1 of 1
Find or nullptr
CHALLENGE
Difficulty: beginner+25 XP
Implement find_value(const std::vector<int>& v, int target) returning a const int* to the first match, or nullptr if absent.
Press Submit to check your solution.
Back to lesson: Practice: Access Practice: The Lifetime Question