In this post, we will discuss how to measure elapsed time of a C++ program in seconds, milliseconds, microseconds and nanoseconds using chrono library.
In this post, we will implement KMP Algorithm in C, C++ and Java programming language.
In this post, we will see how to return multiple values from functions in C++.
Write an efficient program to convert number to words.
In this post, we will discuss dynamic memory allocation in C++ for multi-dimensional arrays. Single Dimensional Array 2-Dimensional Array 3-Dimensional Array
Given a binary tree, write an efficient algorithm to print binary tree structure in standard output.
In this post, we will discuss about std::prev_permutation which can be used to find the lexicographically smaller permutations of a string.
In this post, we will discuss about std::next_permutation which can be used to find the lexicographically greater permutations of a string.
Write a C++ program to print heart star pattern.
In previous post, we have discussed C++ implementation of queue data structure using class and standard libraries. In this article, we will make the class code generic by using C++ templates to support all data-types.
A queue is a linear data structure that serves as a container of objects that are inserted & removed according to the FIFO (first-in first-out) principle.
In previous post, we have discussed C++ implementation of stack data structure using classes. In this article, we will make code generic for all data-types by using C++ templates.