Guest User

Untitled

a guest
May 24th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. (defun tree (maxlistnum listnum)
  2.  
  3. (let ((localmax 0) (buff ()) (way ()) (localtree (cdr listnum)))
  4. (if (not (eq (cdr listnum) () ))
  5. ((setq way (car listnum))
  6. (return
  7. (loop
  8. (if (eq localtree ()) (return (list '(localmax) '(way))))
  9. (setq buff (tree (car localtree)))
  10. (setq localtree (cdr localtree))
  11. (if eq(buff '1) (+1 localmax)
  12. (if (> (car buff) localmax) ((setq localmax (car buff)) (setq way (cdr buff))))
  13. )
  14. )
  15. )
  16. )
  17. (return 1) )
  18. )
  19. )
Add Comment
Please, Sign In to add comment