adjust indentation
This commit is contained in:
@@ -160,8 +160,9 @@ satisfy the second.
|
|||||||
```cpp
|
```cpp
|
||||||
unsigned int hash(string const& k, unsigned int N) {
|
unsigned int hash(string const& k, unsigned int N) {
|
||||||
unsigned int value = 0;
|
unsigned int value = 0;
|
||||||
for (unsigned int i=0; i<k.size(); ++i)
|
for (unsigned int i=0; i<k.size(); ++i) {
|
||||||
value += k[i]; // conversion to int is automatic
|
value += k[i]; // conversion to int is automatic
|
||||||
|
}
|
||||||
return value % N;
|
return value % N;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user