The examples arn't that obvious for a 8 kyu.
I would really appreciate if you could explain [22, -6, 32, 82, 9, 25] => [-6, 32, 25], as since -6 is multiple by its index -1, 32 is multiple by its index 2, 25 is multiple by its index 5.
Thank you
Hello,
from what I understand, if (number % a > 0 or number % b > 0) it will return False because then that is some value.
number % a here is equals to number % a > 0.
so, the program returns True if number % a and number % b DO NOT have any values( because then they are of value 0 )
java version has to clearly specify the words "create a getFirstName(), getLastName() and getFullName() methods" (8 kyu programmers don't know much about the test cases/ errors and probably won't be able to figure out that they have to write the functions, it looks more like a correct the code question) method and the discription talks about name and not about fullName variable as given in the code.
Didn't expect to see test driven development today.
The index of -6 is 1, not -1.
I had the same issue to understand too
The examples arn't that obvious for a 8 kyu.
I would really appreciate if you could explain [22, -6, 32, 82, 9, 25] => [-6, 32, 25], as since -6 is multiple by its index -1, 32 is multiple by its index 2, 25 is multiple by its index 5.
Thank you
Hello,
from what I understand, if (number % a > 0 or number % b > 0) it will return False because then that is some value.
number % a here is equals to number % a > 0.
so, the program returns True if number % a and number % b DO NOT have any values( because then they are of value 0 )
This comment is hidden because it contains spoiler information about the solution
It is madness)
java version has to clearly specify the words "create a getFirstName(), getLastName() and getFullName() methods" (8 kyu programmers don't know much about the test cases/ errors and probably won't be able to figure out that they have to write the functions, it looks more like a correct the code question) method and the discription talks about name and not about fullName variable as given in the code.
trust me its not what it seems like...there is a much better method to do it...
answer just above
manual notification, see above
please explain this solution
This comment is hidden because it contains spoiler information about the solution