Algos & DS Problems
Here are some interesting problems (and their solutions) that I enjoyed solving and discussing over our class' forum.
+
~ *
4 3 -1
which is equivalent to
x = ~4 + 3 * -1 ;
So one possible solution can be -
int main()
{
int t1, t2, t3, t4, t5, t6 ;
t4 = 4 ;
t2 = ~ t4 ;
t5 = 3 ;
t6 = -1 ;
t3 = t5 * t6 ;
t1 = t2 * t3 ;
}
Solution