Posts by Titichh Mishra

Author Biographical Info: Not available

Find angle between hour hand and minute hand in JavaScript

By Titichh Mishra

Hi there. Today we will see how to calculate the angle(in degrees) between the hour hand and minute hand of a clock using javascript. We will write our code such that you can use b.... Read More

How to implement two stacks in an array in C++

By Titichh Mishra

Hi there. Today we will see how to implement two stacks in an array using C++. There are two ways to solve this question. The first method divides the space into two halves, and as.... Read More

std::to_address in C++ with example

By Titichh Mishra

Hi there. Today we will see the working of the “to_address” method of STL library in C++. The purpose of this method is to get the address of a specific pointer without.... Read More

Multiset in C++

By Titichh Mishra

Hi there. Today we will see how multiset works in C++. They are containers that always store elements in a specific manner. And there can be multiple elements of the same value. Al.... Read More

C++ program for best fit algorithm

By Titichh Mishra

Hello there. Today we are going to see how to implement the best fit memory allocation algorithm in C++. This strategy distributes the process to the smallest available partition w.... Read More

C++ program to sort an array according to the order defined by another array

By Titichh Mishra

Hi there. Today we going to see how to sort an array in an order defined by another array in C++. The advantage of this is that you can create custom sorting algorithms. This is an.... Read More

Find smallest prime divisor of a number in C++

By Titichh Mishra

Hi there. Today we are going to see how to get the smallest prime divisor of any number using C++. But what if you want to implement this in C? You can do that by replacing input a.... Read More