Posts by Titichh Mishra

Author Biographical Info: Not available

How to create mergeable stack in C++

By Titichh Mishra

Hi there. Today we will see how to merge two stacks in O(1) time complexity using C++. Since we have to solve this in such an efficient way, we won’t be able to use arrays he.... Read More

C++ program to check if a singly linked list is palindrome.

By Titichh Mishra

Today we are going to see if a singly linked list is a palindrome or not in C++. A palindrome number is a number that looks the same in both backward and forwards. Examples are 100.... Read More

C++ program to find unique words in a file

By Titichh Mishra

Hi there. Today we are going to see how to find unique words in a text file. For this problem, we will need to use a library named fstream, another standard C++ library. It has it&.... Read More

C++ program to print form middle of linked list

By Titichh Mishra

Hi there. Today we will see how to print the middle-most element of linked list in C++. There are multiple methods to solve this problem. You can count the number of elements by pa.... Read More

Find length of a linked list ( Recursive) in C++

By Titichh Mishra

Hi there. Today we are going to see how to find the length of a linked list using recursion in C++. Mainly there are two methods for it. Iterative method and recursive method. We a.... Read More

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

Related Posts