-
Get fibonacci number by index.
- With recursion.
- With loop.
-
Printing fibonacci sequence.
- Ascending order.
- Descending order.
-
Finding missing numbers in array.
- Only one number is missing in range between 1 and 100 (Max value is known).
- Only one number is missing and Max value is unknown.
- Two numbers are missing and Max value is unknown.
- Unknown amount of missing numbers and Max value is unknown.
- Unknown amount of missing numbers and Max value is unknown (using second array).
-
Find biggest contiguous sub array.
-
Shuffle an array.
-
Count all digits in a number.
- With type conversion .
- Without type conversion.
-
Find duplicated number in array, without using additional memory.
- Using sorting.
- Without sorting.
-
Compress a string using the counts of repeated characters.
- The string consist only from letters [A-Za-z] (no numbers)
-
Answers with PHP