Browse Source

docs(edit_distance): correct grammar

pull/1097/head
davhojt 2 years ago committed by Dav Hojt
parent
commit
512c167a49
  1. 10
      subjects/edit_distance/README.md

10
subjects/edit_distance/README.md

@ -2,7 +2,7 @@
### Instructions
Create a **function** called `edit_distance` which calculates the minimum number of changes (insertions, deletions and/or substitutions) which need to be made to a string `source` to transform to another string `target`.
Create a **function** named `edit_distance`, which calculates the minimum number of changes (insertions, deletions and/or substitutions) which are needed to transform the `source` string to the `target` string.
### Expected Function
@ -11,10 +11,6 @@ pub fn edit_distance(source: &str, target: &str) -> usize {
}
```
### Notions
For more information and examples go to this [link](https://en.wikipedia.org/wiki/Edit_distance)
### Usage
Here is a program to test your function.
@ -41,3 +37,7 @@ $ cargo run
It's necessary to make 2 change(s) to alignment, to get assignment
$
```
### Notions
[Edit Distance (Wikipedia)](https://en.wikipedia.org/wiki/Edit_distance)

Loading…
Cancel
Save