Challenge: Ensuring Fast Delivery for Expensive Products
Swipe to start coding
In the store, there's a rule: if a product costs more than $1000, it must be delivered within 5 days. You need to check whether this rule is followed for all expensive products.
- Filter the list of
products
, keeping only those with aprice
greater than 1000 usingfilter()
method. - Check if all filtered products have a delivery time of 5 days or less using
allMatch()
.
Oplossing
solution.java
Bedankt voor je feedback!
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Awesome!
Completion rate improved to 2.33Awesome!
Completion rate improved to 2.33
Challenge: Ensuring Fast Delivery for Expensive Products
Swipe to start coding
In the store, there's a rule: if a product costs more than $1000, it must be delivered within 5 days. You need to check whether this rule is followed for all expensive products.
- Filter the list of
products
, keeping only those with aprice
greater than 1000 usingfilter()
method. - Check if all filtered products have a delivery time of 5 days or less using
allMatch()
.
Oplossing
solution.java
Bedankt voor je feedback!
single
Awesome!
Completion rate improved to 2.33
Challenge: Ensuring Fast Delivery for Expensive Products
Veeg om het menu te tonen
Swipe to start coding
In the store, there's a rule: if a product costs more than $1000, it must be delivered within 5 days. You need to check whether this rule is followed for all expensive products.
- Filter the list of
products
, keeping only those with aprice
greater than 1000 usingfilter()
method. - Check if all filtered products have a delivery time of 5 days or less using
allMatch()
.
Oplossing
solution.java
Bedankt voor je feedback!