Posts by Sakshi Gupta

Author Biographical Info: Not available

Check if a linked list is a palindrome in C++

By Sakshi Gupta

In this tutorial, we will learn how to check if a linked list is a palindrome in C++. A palindrome is a word, phrase or a sequence that reads the same backward and forwards. For ex.... Read More

Remove duplicate characters from a string in c++

By Sakshi Gupta

In this tutorial, we will learn how to remove duplicate characters from a given string using the C++ program. We will learn it in two approaches. The first one is simple and uses b.... Read More

Find maximum k elements from given elements in C++

By Sakshi Gupta

In this tutorial, we will learn how to find maximum k elements from given elements in C++. This is a really tricky one and below is an interesting solution based on heaps. For exam.... Read More

To compare two strings in C++

By Sakshi Gupta

In this tutorial, we will learn how to compare two strings in C++. We will check whether they are equal or not. For example- str1=”codespeedy” str2=”codespeedy.... Read More

Sort a linked list using recursion in C++

By Sakshi Gupta

In this tutorial, we will learn how to sort a linked list in C++ using recursion. A Linked list is a data structure. It is made up of nodes that are created using self-referential .... Read More

Count the number of words in a string in C++

By Sakshi Gupta

In this tutorial, we will learn how to count the number of words in a string in C++. There can be various ways to do this. The following is a simple one. Given a string, words can .... Read More

In-place rotation of a matrix by 90 degrees in C++

By Sakshi Gupta

In this tutorial, we will learn In-place rotation of a matrix by 90 degrees in c++. There are many ways to do it. We will be learning in-place rotation in this article. In-place ro.... Read More

Delete the middle element of a stack in C++

By Sakshi Gupta

In this tutorial, we will learn how to delete the middle element of a stack in C++. We can use the STL (Standard template library) stack and have to delete the middle element. This.... Read More

Related Posts