Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
10
Task/ABC-Problem/Oforth/abc-problem.oforth
Normal file
10
Task/ABC-Problem/Oforth/abc-problem.oforth
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
["BO","XK","DQ","CP","NA","GT","RE","TG","QD","FS","JW","HU","VI","AN","OB","ER","FS","LY","PC","ZM"] const: ABCBlocks
|
||||
|
||||
: canMakeWord(w, blocks)
|
||||
| i |
|
||||
w isEmpty ifTrue: [ true return ]
|
||||
blocks size loop: i [
|
||||
blocks at(i) include(w first toUpper) ifFalse: [ continue ]
|
||||
canMakeWord(w right(w size 1 -), blocks del(i, i)) ifTrue: [ true return ]
|
||||
]
|
||||
false ;
|
||||
Loading…
Add table
Add a link
Reference in a new issue