- Write a function that returns the last digit of given integer as an English word.
Examples:
input | output |
---|---|
512 | two |
1024 | four |
12309 | nine |
- Write a function that reverses the digits of given decimal number.
Example:
input | output |
---|---|
256 | 652 |
123.45 | 54.321 |
- Write a function that finds all the occurrences of word in a text.
- The search can be case sensitive or case insensitive.
- Use function overloading.
- Write a function to count the number of
div
elements on the web page
- Write a function that counts how many times given number appears in given array.
- Write a test function to check if the function is working correctly.
- Write a function that checks if the element at given position in given array of integers is bigger than its two neighbours (when such exist).
- Write a function that returns the index of the first element in array that is larger than its neighbours or
-1
, if there’s no such element. - Use the function from the previous exercise.