What is the methology to solve problems like swapping variables?# Programming - 葵花宝典
k*r
1 楼
For example, if we want to use bit operations to swap two variables without
using temporary variable. Any one can tell me how to develop an approach to
using bit operations to solve such problems step by step. Because the bit
operations usually don't look intuitive so the thread of thoughts behind that
is very important in mastering bit operations. Thanks so much for your
tutorial.
using temporary variable. Any one can tell me how to develop an approach to
using bit operations to solve such problems step by step. Because the bit
operations usually don't look intuitive so the thread of thoughts behind that
is very important in mastering bit operations. Thanks so much for your
tutorial.