mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-08-31 01:14:08 +08:00
fix(curriculum): clarify second-best laptop instructions (#69797)
This commit is contained in:
+2
-2
@@ -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.
|
||||
|
||||
+2
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user