Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielFillol authored Mar 27, 2023
1 parent a8c040b commit add71b6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,29 @@ The levenshtein distance between two strings is defined as the minimum number of

This implementation is optimized to use O(min(m,n)) space.
It is based on the optimized C version found [here](http://en.wikibooks.org/wiki/Algorithm_implementation/Strings/Levenshtein_distance#C)


## Install
```
go get github.com/Darklabel91/Levenshtein
```

## Example
```go
package main

import (
"fmt"
"github.com/Darklabel91/Levenshtein"
)

func main() {
levenshtein := Levenshtein.Distance("Daniel", "Danilo")
fmt.Println(levenshtein)
}

```
Return
```
2
```

0 comments on commit add71b6

Please sign in to comment.