Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 6831a3c

Browse files
author
Holger Lösken
committed
2 parents 4bbd62c + 49631bd commit 6831a3c

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

README.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,41 +12,45 @@ Each task should come with a solution plus some tests to verify.
1212
Create a function `maskify` to mask digits of a credit card number with `#`.
1313

1414
**Requirements:**
15-
* Do not mask the first digit and the last four digits
16-
* Do not mask non-digit chars
17-
* Do not mask if the input is less than 6
18-
* Return '' when input is empty
15+
16+
- Do not mask the first digit and the last four digits
17+
- Do not mask non-digit chars
18+
- Do not mask if the input is less than 6
19+
- Return '' when input is empty
1920

2021
### Task 2
2122

2223
Create a function `number_to_ordinal` to create an ordinal number for a given input.
2324
Ordinal numbers in English have something like `st`, `nd`, `rd`, etc.
2425

2526
**Requirements:**
26-
* Apply for number 1 to 1001... if that works any given number will do ;-)
27+
28+
- Apply for number 1 to 1001... if that works any given number will do ;-)
2729

2830
### Task 3
2931

3032
Create a calculator for [Reverse Polish Notation](https://en.wikipedia.org/wiki/Reverse_Polish_notation).
3133
Write a `calculate` function that accepts an input and returns the result of the operation.
3234

3335
**Requirements:**
34-
* Support the mathematical operations for `+`, `-`, `*` and `/`
35-
* Check for invalid syntax, like `2 3+`. There is a space missing.
36-
* Return 0 (integer) when nothing is entered
37-
* Return the numeric value when no operand is given, like `1 2 3.5` return `3.5`
36+
37+
- Support the mathematical operations for `+`, `-`, `*` and `/`
38+
- Check for invalid syntax, like `2 3+`. There is a space missing.
39+
- Return 0 (integer) when nothing is entered
40+
- Return the numeric value when no operand is given, like `1 2 3.5` return `3.5`
3841

3942
### Task 4
4043

4144
Given you have an array of numbers, you move inside the array by the value of the current element.
4245
Write a function `jump_out_of_array` that outputs
4346

44-
* the amount of jumps until you jump out of the array
45-
* `-1` when you reach the end of the array but do not jump out
47+
- the amount of jumps until you jump out of the array
48+
- `-1` when you reach the end of the array but do not jump out
4649

47-
**Requirements:**
48-
* Array size is indefinite
49-
* Array elements are integers, positive and negative
50+
** Requirements:**
51+
52+
- Array size is indefinite
53+
- Array elements are integers, positive and negative
5054

5155
**Example:**
5256

@@ -71,11 +75,8 @@ of pairs.
7175
_Do not_ use nested loops to solve this problem, because of a time complexity of the loop solution.
7276
[Check this thread](https://stackoverflow.com/questions/11032015/how-to-find-time-complexity-of-an-algorithm) to see what time complexity of an algorithm means.
7377

74-
7578
**Example:**
7679

77-
Given a number `6` and an array `A[1, 8, -3, 0, 1, 3, -2, 4, 5]` the amount of pairs is `7`.
78-
7980
* `A[0]` + `A[8]` = `1` + `5` = `6`
8081
* `A[1]` + `A[6]` = `8` + `-2` = `6`
8182
* `A[4]` + `A[8]` = `1` + `5` = `6`
@@ -86,5 +87,5 @@ Given a number `6` and an array `A[1, 8, -3, 0, 1, 3, -2, 4, 5]` the amount of p
8687

8788
## Contribute
8889

89-
Feel free to contribute. Use the issue list to propose new tasks or open PRs. Just provide proper tests
90+
Feel free to contribute. Use the issue list to propose new tasks or open PRs. Just provide proper tests
9091
and description and requirements for the tasks.

0 commit comments

Comments
 (0)