this is not a homework im doing a project about that , this problem trouble me a lot..if any one can give me a solustion for this ,it would be a great help for me....thanks
Type: Posts; User: cbuwa
this is not a homework im doing a project about that , this problem trouble me a lot..if any one can give me a solustion for this ,it would be a great help for me....thanks
need c cordings for an algorithm that computes the number of 1's in the binary representation of a non-negative integer n . For example if n = 15 your program should return 4 since the binary...
its ok ill try....... ya i think recursive way is little bit easy to solve that problem....
No dat s nt home work...ill try to do it by using iterative manner bt no idea to do dat...
if any 1 cn gimme a psedocode dats more dan enough... den i cn get an idea of it...
A partition of a positive integer N is a sequence of positive integers that sum to N. c cording 4 non increasing partition of n....
Eg If n = 4
output like
...