nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: fix unrecognized code blocks in doc units
[nit.git]
/
lib
/
perfect_hashing
/
perfect_hashing.nit
diff --git
a/lib/perfect_hashing/perfect_hashing.nit
b/lib/perfect_hashing/perfect_hashing.nit
index
d8ab3cb
..
585130e
100644
(file)
--- a/
lib/perfect_hashing/perfect_hashing.nit
+++ b/
lib/perfect_hashing/perfect_hashing.nit
@@
-101,6
+101,7
@@
class Perfecthashing
# n : number of required free identifiers
# idc : This array will be filled with n free identifiers
# return the size of hashTable to create for theses identifiers (mask + 1)
# n : number of required free identifiers
# idc : This array will be filled with n free identifiers
# return the size of hashTable to create for theses identifiers (mask + 1)
+ #
# var ph = new Perfecthashing
# var idc = new Array[Int]
# assert ph.pnand([3, 7, 10], 1, idc) == 6
# var ph = new Perfecthashing
# var idc = new Array[Int]
# assert ph.pnand([3, 7, 10], 1, idc) == 6