loops Archive
04 Nov 2016
Recursion in Java

Recursion is used to reduce the size of a problem at each step. Easy to solve problem is known as base case Formula that reduces the size of problem is called general case Where as, a method that calls itself either directly or indirectly, is known as recursive method Any problem that can be solved
07 Nov 2014
Iteration in Python (Part I)

Updating Variables A common pattern in assignment statements is an assignment statement that updates a variable – where the new value of the variable depends on the old. x = x+1 This means “get the current value of x, add one, and then update x with the new value.” If you try to update a variable that