Re:Solving dynamic programming interview problems
by bkdonline on Sunday May 20, 2018 @02:21AM
(#17111494)
I guess the foreach is where each iteration has independent operation, vs a generic for loop where this iteration depends on result of the previous iterations.
I didn't understand this comment. What do you mean by "for vs foreach."? Can you elaborate?