n = x%2 ? x can be any integer.
On Fri, Dec 2, 2011 at 5:19 PM, Don <[email protected]> wrote: > (!x || !(x^1)) > !(x>>1) > !((x|1)-1) > (x*x)==x > (x==(x==x))||(x==(x!=x)) > > etc. > > On Nov 29, 9:07 pm, Nitin Garg <[email protected]> wrote: > > *What are the different ways to say, the value of x can be either a 0 or > a > > 1.* > > > > -- > > Nitin Garg > > > > "Personality can open doors, but only Character can keep them open" > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
