Posts by Kollabathula Preetham

Author Biographical Info: A Computer Science student.

Inorder tree traversal with Recursion in Java

By Kollabathula Preetham

Binary trees have several ways of Traversal. In this tutorial, we will learn the most popular method of traversing a tree which is the Inorder Tree Traversal, also known as LNR (le.... Read More

Postorder tree Traversal using Recursion in Java

By Kollabathula Preetham

A hierarchical data structure like a tree can be traversed in many ways. In this tutorial, we will learn one of the three ways of DFS ( depth-first search ) that is Postorder Tree .... Read More

Level Order tree Traversal implementation in Java

By Kollabathula Preetham

In this tutorial, we will learn what level order tree traversal is and how we can implement it in code in Java. Level Order Traversal In a level order traversal, we visit each of t.... Read More

Preorder tree Traversal using Recursion in Java

By Kollabathula Preetham

Hey coders! There are multiple ways to traverse a tree in Java. In this tutorial, we will learn one of the three ways of DFS ( depth-first search ) that is Preorder tree Traversal .... Read More

How to redirect Output of a Program to a Text file in Java

By Kollabathula Preetham

In this tutorial, we will learn how to redirect or save the output of a Program to a Text file in Java. There are many ways of doing this. One method I find simple is by the use of.... Read More

How to Calculate Execution time of a Program in Java

By Kollabathula Preetham

Hey Coders! So in this tutorial, we will learn how we can Calculate the execution time of a program in Java. Java is an object-oriented language (i.e) everything is in objects and .... Read More

Calculating the Area of Triangle in all 4 ways in Java

By Kollabathula Preetham

Hey coders! In this tutorial, we will learn the different ways of calculating the area of a Triangle and implement it in code in Java. So a Triangle has three sides and three angle.... Read More

Maximum sum of an Hourglass in a Matrix in Java

By Kollabathula Preetham

In this tutorial, we will learn how to calculate the maximum sum of an hourglass in a 2 – Dimensional matrix in Java. An hourglass is a subset of 7 values with indices which .... Read More