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
The following post deals with pattern search in a string i.e looking for the occurrences of a substring in a given string and displaying the starting index. It uses the naive metho.... Read More
Searching for a string pattern in the main string using the naive algorithm may be time-consuming and inefficient. The following post deals with a slightly more efficient method .... Read More
This post provides a way of generating or raising and error based on the user’s conditions in contrast to the common errors raised by the compiler/interpreter. We call such e.... Read More
This post deals with the methods to inter-convert decimal to any base system number into any base depending on the user input in Python. Prerequisites: Basics of python looping con.... Read More
The Base64 format of an image is the encoded string of that image with proper printable characters only. Loading base64 image on the web page can speed up load time. It can also he.... Read More
In this tutorial, we will learn how to use the mathematical constants in C++. We use mathematical constants in various places from simple mathematical calculations to physics to ch.... Read More
In this tutorial, we will learn how to use the PI constant in C++. PI is a mathematical constant which we use in various mathematical calculations ranging from simple finding area .... Read More