oddEven Level Difference Tree December 18, 2017 class oddEvenLevelDiffDS { /*You are required to complete this function*/ int getLevelDiff(Node root) { if(root==null) return 0; return root.data-getLevelDiff(root.left)-getLevelDiff(root.right); } } Email ThisBlogThis!Share to XShare to Facebook DS / Easy / tree No Comments
0 Comments:
Post a Comment