Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int wysokość(Węzeł w)
- {
- if (w == null)
- {
- return -1;
- }
- int lewy = wysokość(w.lewy);
- int prawy = wysokość(w.prawy);
- if(lewy > prawy)
- {
- return lewy + 1;
- }
- else
- {
- return prawy + 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement