for -5,-5 your first condition true, hence function return 25. which is wrong answer
This comment is hidden because it contains spoiler information about the solution
You are not asked about sum of 5 and -1. You are asked about sum of all numbers between 5 and -1, and it is not 4.
Yeah this makes no sense.. i feel like they're not looking for the sum at all.. since the sum between 5 and -1 is.. 4..
OP solved it, closing
Yes... -1 + 0 + 1 + 2 + 3 + 4 + 5 = 14
Incorrect answer for a=5, b=-1: expected 4 to equal 14
kata hint != kata suggestion
Java:
Missing fixed tests
method name should be camelCase, not PascalCase
camelCase
PascalCase
Refer here on how to enable backward compatability to not invalidate all solutions
This comment has been reported as abusive
Ооо, вот это мой уровень задач! Лол! (Бэкендер с опытом 2+ лет)
Это на случай, если ошибочно введены отрицательные значения.
Это задача для тех, кто только начинает изучать программирование.
Loading collection data...
for -5,-5 your first condition true, hence function return 25. which is wrong answer
This comment is hidden because it contains spoiler information about the solution
You are not asked about sum of 5 and -1. You are asked about sum of all numbers between 5 and -1, and it is not 4.
Yeah this makes no sense.. i feel like they're not looking for the sum at all.. since the sum between 5 and -1 is.. 4..
OP solved it, closing
Yes... -1 + 0 + 1 + 2 + 3 + 4 + 5 = 14
Incorrect answer for a=5, b=-1: expected 4 to equal 14
kata hint != kata suggestion
This comment is hidden because it contains spoiler information about the solution
Java:
Missing fixed tests
method name should be
camelCase
, notPascalCase
Refer here on how to enable backward compatability to not invalidate all solutions
This comment is hidden because it contains spoiler information about the solution
This comment has been reported as abusive
Ооо, вот это мой уровень задач! Лол! (Бэкендер с опытом 2+ лет)
Это на случай, если ошибочно введены отрицательные значения.
Это задача для тех, кто только начинает изучать программирование.
Loading more items...