Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
isn't understanding it the point? (real question here) i mean if not understand it what's the point do we learn either way cause that is a concern to me
experience thought me different but honestly my experience was useless so far on my journey learning programming
This comment is hidden because it contains spoiler information about the solution
thanks. that helped. a lot. :)
that's not correct.
a
starts as the string in front of the variable.for example in
"(x+7)^12"
it is the empty string""
, in"(-x+7)^12"
it is the minus sign"-"
, and in"(0x+7)^12"
it is the digit zero"0"
.in the second line this string is transformed to the numerical value. so for example
""
turns into1
,"-"
turn into-1
and"0"
turns into0
.now if
a
is0
then the variable isn't relevant and we only have to compute7^12
.one thing i don't get about this cool code is that "a" is defined to be "1" if it was 0 in the second line.
but for the first "else if" conditioning again you have the condition to whether a is 0 do smth. can anyone please clarify to me?