Add solutions

This commit is contained in:
Manuel Thalmann 2022-11-22 20:29:49 +01:00
parent 9af35e8cb9
commit 025bfa7a7f

19
Solutions/Exercise 10.md Normal file
View file

@ -0,0 +1,19 @@
# Exercise 10
## Levenstein-Distanz
| Input | Reference | Distance |
| ----------- | ----------- | :------: |
| `AUSTAUSCH` | `AUFBAUSCH` | $2$ |
| `BARBAREN` | `BARBARA` | $2$ |
| `COCACOLA` | `COCAINA` | $3$ |
## Reguläre Ausdrücke (Regex)
### a)
```js
/^(((2(5[0-5]|[0-4][0-9]))|((1[0-9]|[1-9])?[0-9]))\.){3}((2(5[0-5]|[0-4][0-9]))|((1[0-9]|[1-9])?[0-9]))$/
```
### b)
```js
/([^@]+)@([^@]*)/
```