Reversing Guna
anug
Finding the GCD of 145 and 120
5

100
The random array of 100 entries is
10,90,63,76,100,6,75,30,17,64,65,34,36,87,53,19,49,83,27,34,27,64,9,64,14,55,38,
43,73,24,86,64,77,46,77,18,29,13,31,72,64,56,37,55,61,14,80,41,81,67,70,69,57,19
,20,44,17,1,37,42,11,76,18,61,71,54,18,52,90,44,35,39,65,14,63,36,79,96,49,43,63
,95,0,26,18,72,3,78,71,76,53,37,4,27,92,48,30,38,5,3,
The linear search on A looking for 22
-1

Sorted array is
0,1,3,3,4,5,6,9,10,11,13,14,14,14,17,17,18,18,18,18,19,19,20,24,26,27,27,27,29,3
0,30,31,34,34,35,36,36,37,37,37,38,38,39,41,42,43,43,44,44,46,48,49,49,52,53,53,
54,55,55,56,57,61,61,63,63,63,64,64,64,64,64,65,65,67,69,70,71,71,72,72,73,75,76
,76,76,77,77,78,79,80,81,83,86,87,90,90,92,95,96,100,
The binary search on A looking for 31
31

The foo(4)=1
The foo(25)=1597

Factorial 12 is = 479001600
12.5 to the 5th power is = 305175.78125
Tower of Hanoi moving 4 disks from A to B using C
move disk 1 from A to B
move disk 2 from A to C
move disk 1 from B to C
move disk 3 from A to B
move disk 1 from C to A
move disk 2 from C to B
move disk 1 from A to B
move disk 4 from A to C
move disk 1 from B to C
move disk 2 from B to A
move disk 1 from C to A
move disk 3 from B to C
move disk 1 from A to B
move disk 2 from A to C
move disk 1 from B to C
That's all, folks...

 Press Enter to continue