Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,12 +0,0 @@
|
|||
(defun BalancedBrackets (str / cntOpen curr)
|
||||
(setq cntOpen 0)
|
||||
(setq str (vl-string->list str))
|
||||
(while (and (>= cntOpen 0) str)
|
||||
(setq curr (car str) str (cdr str))
|
||||
(cond
|
||||
((= 91 curr) (setq cntOpen (1+ cntOpen)))
|
||||
((= 93 curr) (setq cntOpen (1- cntOpen)))
|
||||
)
|
||||
)
|
||||
(and (null str) (zerop cntOpen))
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue