divide number into digit form and save to arr[]
input=1234
formed arr[]={1,2,3,4};
print elements for arr[];

now make set of 2 , 3, 4,
i.e
when i=2;
we get
*12*,3,4
1,*23*,4
1,2,*34*

i=3
*123*,4
1,*234*
i=4
*1234*
On Wed, Aug 22, 2012 at 6:34 PM, zeroByZero <shri.nit...@gmail.com> wrote:

> A set will be call valid if all number can be represent as a alphabet (ie
> number should be less than or equal to 26) .
> Example :
> given number is 1234 then
> 1) {1,2,3,4} - valid ans
> 2){12,3,4} - Valid
> 3){1,23,4} -Valid
> 4){1,2,34} -not valid
> 5){123,4} - not valid
> 6){1234} not valid
> So for given number print All valid SET.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/algogeeks/-/9GDKbM5jYp4J.
> 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.
>

-- 
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