Browse Source

docs(digitlen):fix readme

pull/2061/head
miguel 1 year ago committed by MSilva95
parent
commit
5336c63959
  1. 12
      subjects/digitlen/README.md

12
subjects/digitlen/README.md

@ -4,13 +4,13 @@
Write a function `DigitLen()` that takes two integers as arguments and returns the times the first `int` can be divided by the second until it reaches zero.
- The second `int` must be between ***2*** and ***36***. If not, the function returns `-1`.
- The second `int` must be between **_2_** and **_36_**. If not, the function returns `-1`.
- If the first `int` is negative, reverse the sign and count the digits.
### Expected function
```go
func DigitLen(n,base int) int {
func DigitLen(n, base int) int {
}
```
@ -39,8 +39,8 @@ And its output:
```console
$ go run . | cat -e
3
7
2
-1
3$
7$
2$
-1$
```

Loading…
Cancel
Save