Java program to find coordinates of a prime number in a Ulam Spiral

By Prachi Paunikar

In this tutorial, we will learn how to find the coordinates of a prime number in the program. We would be using Ulam Spiral method to find the desired output. We are using this met.... Read More

C++ program to Rotate bits

By Abhishek Sharma

Hey there! In this tutorial, we will learn how to rotate bits of a number using the C++ programming language. Here is what rotation means: Suppose there is a number 13 and we want .... Read More

Check if two nodes are cousins in a Binary Tree in C++

By Abhishek Sharma

In this C++ programming tutorial, we will see how to check if two nodes are cousins in a binary tree. Firstly two nodes are cousins when they are at the same depth but they have di.... Read More

Find Frequency of each element in an unsorted array in C++

By Arpit Jain

Hi guys, today we will learn how to find the frequency of each element in an unsorted array in C++. We can do this in many ways but I will be using map to solve this problem. Stan.... Read More

Find all Bridges of a Graph in Python

By Manan Kumar

This tutorial will show you how to find all bridges of a graph in Python. Before we go forward, let me tell you about bridges of the graph in brief. Bridges of a graph are the edge.... Read More

How to sort a 2D vector in C++

By Dinesh Kumar

In this tutorial, we are going to learn how to sort a 2D vector in C++. Here we will learn about the 2D vector, how to sort a specific row in 2D vector, and how to sort the entire.... Read More

polar() function for complex number in C++

By Dinesh Kumar

In this tutorial, we are going to learn about polar() function for complex number in C++. Here we will learn about polar() function uses, and its header file. After that, we will s.... Read More

Find nth Node from End of Linked List – C++

By Pranav Prakasan

In this article, we discuss a method and a program to find the nth node from the end of a linked list in C++. We know that a singly-linked list is a data structure that is linear a.... Read More