A permutation is an act of rearranging or reordering elements of a set or string etc. For n elements, n! (n factorial) permutations are possible. Ex-> Possible permutations of abc are abc, acb, bac, bca, cab, cba. Here, given a string with...
A robot sitting on the upper left corner(0,0) of a grid with r rows and c columns. The robot can only move in two directions: right or down, but certain cells are "off-limits" such that the robot cannot step on...
A child is running up a staircase with n steps and can hop either 1 step, 2 steps, or 3 steps at a time. Implement a method to Count number of ways to reach the nth stair by climbing 1,...
12Page 2 of 2
Subscribe to our weekly newsletter
Join our community of 1000+ developers and stay updated with the fast moving world of computer science
Even we hate spam as much as you hate them