Advertisement
Kame3

[LIST]-Count_length_recursiveliy

Aug 24th, 2021
1,156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.19 KB | None | 0 0
  1.  
  2.     public static int promeni_lista(SLLNode<Integer> d1) {
  3.  
  4.         if (d1 == null) {
  5.             return 0;
  6.         } else {
  7.             return 1 + promeni_lista(d1.succ);
  8.         }
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement