Given a positive number N, find a minimum number M greater than N, M  has
the same length with N and the sum of the bits are equal.

example:
N=134 , M=143,  // 1+3+4=1+4+3
N=020, M = 101, //2=1+1

the length of N is less than 1000.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to