Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int globi, globmax;
- int hloubkaStromu(Uzel * root) {
- if (root->levy != NULL) {
- globi++;
- if (globi>globmax) {globmax=globi;}
- hloubkaStromu(root->levy);
- }
- if (root->pravy != NULL) {
- globi++;
- if (globi>globmax) {globmax=globi;}
- hloubkaStromu(root->pravy);
- }
- globi--;
- return globmax;
- }
Add Comment
Please, Sign In to add comment