-> means writes into.
- means numerical subtraction
There are three operations supported on three registers:
A->R
B->R
A-R->A
----------------------------
A=5, B=3
Transfer the contents of B to A. Finally A should contain 3.
Normal interview puzzle
##########################################
There is a unique number of ten digits, for which the following holds:
* all digits from 0 up to 9 occur exactly once in the number;
* the first digits is divisible by 1;
* the number formed by the first two digits is divisible by 2;
* the number formed by the first three digits is divisible by 3;
* the number formed by the first four digits is divisible by 4;
* the number formed by the first five digits is divisible by 5;
* the number formed by the first six digits is divisible by 6;
* the number formed by the first seven digits is divisible by 7;
* the number formed by the first eight digits is divisible by 8;
* the number formed by the first nine digits is divisible by 9;
* the number formed by the ten digits is divisible by 10.
give the solution with details.
There is a unique number of ten digits, for which the following holds:
* all digits from 0 up to 9 occur exactly once in the number;
* the first digits is divisible by 1;
* the number formed by the first two digits is divisible by 2;
* the number formed by the first three digits is divisible by 3;
* the number formed by the first four digits is divisible by 4;
* the number formed by the first five digits is divisible by 5;
* the number formed by the first six digits is divisible by 6;
* the number formed by the first seven digits is divisible by 7;
* the number formed by the first eight digits is divisible by 8;
* the number formed by the first nine digits is divisible by 9;
* the number formed by the ten digits is divisible by 10.
give the solution with details.
Subscribe to:
Comments (Atom)