Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
6
Task/String-matching/OCaml/string-matching-3.ocaml
Normal file
6
Task/String-matching/OCaml/string-matching-3.ocaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
let match3 s1 s2 =
|
||||
let len1 = String.length s1
|
||||
and len2 = String.length s2 in
|
||||
if len1 < len2 then false else
|
||||
let sub = String.sub s1 (len1 - len2) len2 in
|
||||
(sub = s2)
|
||||
Loading…
Add table
Add a link
Reference in a new issue