simple algorithm question
Quick question:
In this function lets say that the "else if" comes true in the first node. wouldnt it just skip the "else" and give out CountX = 1 ?
so in order to solve that, my recursive call should not be bound by that "else" and should be done anyway
(the code is pascal, but that shouldnt matter with this simple algorithm)
1 Reply
chained if statements run from top to bottom, exiting with the first statement that evaluates to true
this is it in C#