-
The Echo Method For Concentration
Simply, think in echos: Simply, simply, simply, think, think, think, in, in, in, echos, echos, echos. Once the mind is used to it, apply it to the object of concentration. Joy for instance. This method makes it easier to maintain contact with object.
-
Patterns of Getting Neighbors
Given a 2D array, what are all the ways to get the neighbors? D: DownU: UpL: LeftR: Right A DULR will translate into: Traversal path if pattern starts at [0][0]. Traversal path if pattern starts at [i / 2][j / 2]. Motivation That DFS would not yield correct result on some algorithms, i.e. shortest path,…
-
GCD and the magic of subtraction
The greatest common divisor is something I learned in school but it was one of those “so what?” subjects. But recently I revisited it and it is very interesting. Why is gcd cool? Every number, can be expressed as the product of prime numbers. This product for every number is unique; sort of like saying,…