## Delete consecutive same words in a sequence

Problem statement Given an array of strings, if two consecutive strings are the same they will destroy each other. Your task is to find the number of remaining strings from...

Skip to content
## Delete consecutive same words in a sequence

## Delete consecutive same words in a sequence

## Delete consecutive same words in a sequence

Problem statement Given an array of strings, if two consecutive strings are the same they will destroy each other. Your task is to find the number of remaining strings from...
## Count natural numbers whose all permutation are greater than that number

## Tracking the Current Maximum Element in the Stack

## Stack Permutations (Check if an Array is Stack Permutation of Another)

## Iterative Method to find Ancestors of a Given Binary Tree

## Largest rectangular Area in Histogram – Set 2

## Merge Overlapping Intervals

## Iterative Postorder Traversal | Set 2 (Using One Stack)

## Find Maximum Sum Possible Equal Sum of Three Stacks

## Program for Tower of Hanoi

## Reverse a String using a Stack

## Print Ancestors of a Given Binary Tree Node without Recursion

## Cognizant GenC Interview Questions – Set-2(Technical Interview Questions)

## Data Structures in Java | Queue | Heap

## Data Structures in Java | Array | Linked List | Stack

## How To Implement Queue Using Doubly Linked List In C

## Data Structures Using C | Array | Linked List | Stack

## Data Structures Using C | Queue | Heap

## DBMS Interview Questions | Set 2 | Top 10 Theory Questions

## How To Delete In Doubly Linked List In C

## How To Insert In A Doubly Linked List In C

## Cognizant GenC Interview Questions – Set-3(HR Interview Questions)

## Road Map To Learn Data Structures and Algorithms(DSA)

## Why Data Structures and Algorithms are so important for interviews ?

## Data Structures Using C – Trees & Graph

## Most Common MCQs Questions for Data Structures and Algorithms

## DBMS interview questions | Set 3 | Top 20 MCQ Questions

## How to Sort a Stack using Recursion

Problem statement Given an array of strings, if two consecutive strings are the same they will destroy each other. Your task is to find the number of remaining strings from...

Problem statement Given an array of strings, if two consecutive strings are the same they will destroy each other. Your task is to find the number of remaining strings from...

Problem statement Given a number n, you have to find the count of all such numbers that satisfies the following condition: For any number x, all the permutations of x...

Problem Statement: You will be given a stack of integer values. You have to keep a track of the maximum value in the stack. For instance, the element that is...

Problem Statement: You will be given 2 arrays. You have to tell whether the 2 arrays are stack permutations of each other or not. Basically, there will be 2 input...

Problem Statement: Given a Binary Tree, you need to find all the ancestors of a particular node of that binary tree. You will be given the value that is stored...

Problem Statement You will be given an array that represents a histogram. The values of the array represent the height of the bars of the histogram and the width of...

Problem Statement You will be given an array of time intervals that will be in any random order. You have to merge all the overlapping intervals and print only the...

Problem Statement: You are given a binary tree. Your task is to print the postorder traversal of the binary tree using just 1 stack. Example Consider the tree given below....

Problem Statement You are given three stacks, you need to find the maximum sum possible of the three stacks. You are only allowed to remove the top of the stack....

Problem statement In the Tower of Hanoi problem you are given three rods (“Source”, “Destination”, “Auxiliary”) and n disks. Initially, all the disks are stacked on the source rod in...

Problem Statement You are given a string, and your task is to reverse the string using a stack data structure. Input: String. Output: Reversed string. Test cases: Input: “Prepbytes” Output:...

Problem statement You are given a binary tree and a key node. Your task is to print all the ancestors of the given key node. Input: Root of the binary...

Cognizant is a multinational technology company based in the United States specializing in business consulting, information technology, and outsourcing. The company's headquarters are in Teaneck, New Jersey. Cognizant is a...

Data structure refers to a collection of data with well-defined operationsIn this article, we’ll be discussing Data structures in Java, The term data, behaviour, or properties. A data structure is...

Introduction: Data structures in Java are an essential aspect of Computer Science. There are different types of data structures that help us store the data in different ways in the...

Before moving to the conversion, firstly we will discuss the queue and doubly linked list in C. What is a Queue? A queue is a linear data structure that follows...

What are Data structures using C? Data structure is a storage that is used to store and organize data. It is a way of arranging data on a computer so...

A data structure is not only used for organizing the data. It is also used for processing, retrieving, and storing data. There are different basic and advanced types of data...

DBMS stands for Database management System. DBMS is a software which is used to manage databases. It is used to insert, delete, update and retrieve data from the database by...

In this article, we will discuss the deletion in a doubly linked list in c. If you would like to ace the data structures and algorithms easily, then you are...

Define Doubly Linked List Doubly Linked List is a variation of the Linked list in which navigation is possible in both ways, either forward or backward easily as compared to...

This article will discuss the Cognizant Genc Interview Questions (HR). If you would like to ace the Human Resource section easily, then you are at the right place! Cognizant GenC...

In the journey of programming, every programmer comes across a point where they want to solve a problem in a more efficient way. While finding a way out of this,...

In this Article, we will be discussing why every programmer should learn Data Structures and Algorithms. This article helps those who just started data structures and algorithms and wondered how...

In this tutorial, we’ll deep dive into the Data Structures using C topics majorly on trees and graphs. We know that data structures are very important and play a crucial...

The data structure name indicates itself by organizing the data in memory. There are many ways of organizing the data in the memory as we have already seen one of...

Database A database is an organized and systematic collection of data, which is stored electronically on a computer. We can add, update, delete or retrieve data from the database. A...

First we’ll discuss what is Stack: Stack follows the principle of LIFO (Last in First out) i.e. element which is inserted at last will be removed first. The operation for...