Total WebSite Views Count

Pre Order Tree Traversal

PreOrder =  root--> visit current-->push right -->push left repeat till stack empty

public void traversePreOrderWithoutRecursion() {
       
        Stack<Node> stack = new Stack<Node>();
       
        Node current = root;
     
        stack.push(root);

        while(! stack.isEmpty()) {

            current = stack.pop();
            visit(current.value);
           
            if(current.right != null)
                stack.push(current.right);
               
            if(current.left != null)
                stack.push(current.left);
        }   

AWS Services

AWS Services

Technology Selection & Evaluation Criteria

Technology Selection & Evaluation Criteria

Scale Cube - Scale In X Y Z Cube

Scale Cube - Scale In X Y Z Cube

Feature Post

AWS Services

About Me

About Me

Spring Cloud

Spring Cloud
Spring Cloud

Spring Cloud +mCloud Native + Big Data Archittect

Spring Cloud +mCloud Native + Big Data Archittect

ACID Transaction

ACID Transaction

Data Pipe Line Stack

Data Pipe Line Stack

Popular Posts