Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Balanced-brackets/Klingphix/balanced-brackets.klingphix
Normal file
18
Task/Balanced-brackets/Klingphix/balanced-brackets.klingphix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
"[[]][]]"
|
||||
|
||||
%acc 0 !acc
|
||||
%flag false !flag
|
||||
|
||||
len [
|
||||
get tochar dup
|
||||
"[" == [$acc 1 + !acc] if
|
||||
"]" == [$acc 1 - !acc] if
|
||||
$acc 0 < [true !flag] if
|
||||
] for
|
||||
|
||||
print
|
||||
|
||||
$acc 0 # $flag or ( [" is NOT ok"] [" is OK"] ) if
|
||||
print
|
||||
|
||||
" " input
|
||||
Loading…
Add table
Add a link
Reference in a new issue