fix(curriculum): clarify second-best laptop instructions (#69797)

This commit is contained in:
Ayesha Noor
2026-08-29 22:53:29 +05:00
committed by GitHub
parent 50f93e9e80
commit 69f6817cf3
2 changed files with 4 additions and 4 deletions
@@ -9,8 +9,8 @@ dashedName: challenge-18
Given an array of integers representing the price of different laptops, and an integer representing your budget, return:
1. The second most expensive laptop if it is within your budget, or
2. The most expensive laptop that is within your budget, or
1. The second-most expensive laptop in the list if it is within your budget, or
2. The most expensive laptop you can afford otherwise, or
3. `0` if no laptops are within your budget.
- Duplicate prices should be ignored.
@@ -9,8 +9,8 @@ dashedName: challenge-18
Given an array of integers representing the price of different laptops, and an integer representing your budget, return:
1. The second most expensive laptop if it is within your budget, or
2. The most expensive laptop that is within your budget, or
1. The second-most expensive laptop in the list if it is within your budget, or
2. The most expensive laptop you can afford otherwise, or
3. `0` if no laptops are within your budget.
- Duplicate prices should be ignored.