Test Cases & Chat
Part 1
current
Test 1
input:gas=[1,2,3,4,5], cost=[3,4,5,1,2]
expect:3
Test 2
input:gas=[2,3,4], cost=[3,4,3]
expect:-1
Test 3
input:gas=[5,1,2,3,4], cost=[4,4,1,5,1]
expect:4
Choose your coach
Pick a style and how you want to communicate
then
Loading...
OUTPUT
Run code to see output...
Part 1
current
Test 1
input:gas=[1,2,3,4,5], cost=[3,4,5,1,2]
expect:3
Test 2
input:gas=[2,3,4], cost=[3,4,3]
expect:-1
Test 3
input:gas=[5,1,2,3,4], cost=[4,4,1,5,1]
expect:4
Choose your coach
Pick a style and how you want to communicate
then