Posts by Sumanth

Author Biographical Info: Kage bunshin no jutsu!

How to traverse through a HashSet in Java

By Sumanth

In this post, we will learn how to traverse through a HashSet in Java. HashSet is one of the most efficient data structures in Java. Here in this post, we will be learning how to t.... Read More

Java program to Check if two trees are Mirror

By Sumanth

In this tutorial, we will see how to check if two given trees are mirror to each other in Java. Checking if two trees are mirror in Java What are mirror trees? Given 2 trees, if mi.... Read More

Check whether a Matrix is a Latin Square or not in C++

By Sumanth

In this tutorial, we will see how to determine if a given matrix is a Latin square or not, let’s learn how to easily check is a matrix is a Latin square in C++. Determining i.... Read More

C++ program to demonstrate sort() with any compare function

By Sumanth

Sorting is required in most of the programs in competitive programming, In this tutorial, we will see how to easily use the sort()  method which is provided by the C++ Library. Re.... Read More

Java program to Detect Cycle in an Undirected Graph

By Sumanth

In this tutorial, you will learn how to detect if a cycle exists in an undirected graph in Java without using any complex cycle-detection algorithms. Detection of a cycle in an und.... Read More

How to print Co-Prime levels in a Binary Tree in C++

By Sumanth

In this tutorial, we will learn how to print the co-prime levels of a binary tree in C++. Printing Co-Prime levels in Binary Tree in C++ What is a Binary Tree? A Binary Tree is bas.... Read More