Skip to content

PrepBytes Blog

ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING

Log In

Log Out

Menu
  • Language
    • C
    • C++
    • Java
    • Javascript
    • Python
  • Data Structure
    • Array
    • Graphs
    • Heap
    • Linked List
    • Segment Tree
    • Stack
    • Trees
    • Queue
  • Algorithm
    • Backtracking
    • Dynamic Programming
    • Greedy Algorithm
    • RECURSION
    • Searching
    • Sorting
  • CSE Subjects
    • Operating System
  • Company Placement
  • Interview
    • Interview Tips
    • General Interview Questions
    • Algorithms
    • Data Structure
    • Languages
    • Other Topics
  • Competitive
    • Data Structure
      • Array
      • Graph
      • Heap
      • Segment Tree
      • Stack
      • Queue
      • Tree
      • Tries
    • Algorithm
      • Backtracking
      • Dynamic Programming
      • Greedy Algorithm
      • Searching
      • Sorting
    • Other Topics
      • Computational Geometry
      • Game Theory
      • Maths
      • Pointers
      • Recursion
      • String
  • Others
    • Computational Geometry
    • Game Theory
    • Hashing
    • Maths
    • Pointers
    • Recursion
    • String

Sign in to your account

Forgot your password?

New User? Create Account

Login via OTP

We will send you an one time password on your mobile number

New User? Create Account

Login via OTP

An OTP has been sent to your mobile number please verify it below

Resend OTP in 30 sec
Resend
New User? Create Account

Register with PrepBytes

I agree to the terms and conditions.
Already have a account? Login Here

Abhinav_Jain

Arrays

Delete consecutive same words in a sequence

Abhinav JainSeptember 27, 2022December 14, 2022
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...
Miscellaneous

Count natural numbers whose all permutation are greater than that number

Abhinav JainSeptember 27, 2022October 10, 2022
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...
Stacks

Find Maximum Sum Possible Equal Sum of Three Stacks

Abhinav JainSeptember 26, 2022October 10, 2022
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....
Miscellaneous

Program for Tower of Hanoi

Abhinav JainSeptember 26, 2022October 10, 2022
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...
Stacks

Reverse a String using a Stack

Abhinav JainSeptember 26, 2022December 14, 2022
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:...
Trees

Print Ancestors of a Given Binary Tree Node without Recursion

Abhinav JainSeptember 26, 2022October 10, 2022
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...
DBMS

DBMS Interview Questions | Set 2 | Top 10 Theory Questions

Abhinav JainSeptember 22, 2022October 3, 2022
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...
C Programming

How To Delete In Doubly Linked List In C

Abhinav JainSeptember 22, 2022December 14, 2022
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...
Company Placement Process

DBMS Interview Questions

Abhinav JainSeptember 21, 2022November 18, 2022
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 database...
Company Placement Process

Top 10 Most Frequent DBMS Interview Questions

Abhinav JainSeptember 20, 2022October 3, 2022
DBMS is a database management software that provides an interface to perform various operations like creating new databases, adding data, updating data, deleting data, retrieving data, etc. DBMS also provides...
Stacks

Iterative Tower of Hanoi

Abhinav JainAugust 29, 2022December 14, 2022
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...
Stacks

Print Next Greater number of Q queries

Abhinav JainAugust 25, 2022September 13, 2022
Problem statement You are given an integer array of size n and q queries. Your task is to find the next greater element for each query. Each query consists of...
Stacks

Next Greater Frequency Element

Abhinav JainAugust 25, 2022September 13, 2022
Problem statement Given an array, consisting of n elements, find the next greater frequency element of each element. The next greater frequency element of any element is the first element...
Miscellaneous

Evaluation of Postfix Expression

Abhinav JainAugust 25, 2022September 13, 2022
Arithmetic Expression An Arithmetic expression is a finite combination of arithmetic operands, operators and brackets. The common way of representing an arithmetic expression is by using infix notation. In infix...
Stacks

Arithmetic Expression Evaluation

Abhinav JainAugust 25, 2022October 10, 2022
Arithmetic Expression An Arithmetic expression is a finite combination of arithmetic operands, operators and brackets. The common way of representing an arithmetic expression is by using infix notation. In infix...
Stacks

Next Greater Element

Abhinav JainAugust 25, 2022September 13, 2022
Problem statement Given an array, consisting of n elements, find the next greater element of each element. The next greater element of any element is the first larger element to...
Stacks

Check for Balanced Parentheses in an Expression

Abhinav JainAugust 25, 2022September 7, 2022
https://www.prepbytes.com/data-structures-in-java Problem statement Given an expression containing only ‘(‘, ’)’, ’{‘, ‘}’, ‘[‘, ‘]’ , check whether the expression is balanced or not. An expression is balanced if each opening...
Stacks

How to Solve Stock Span Problem?

Abhinav JainAugust 25, 2022October 13, 2022
What is Stock Span Problem: Stock span problem is a commercial problem where we have a series of N prices on the daily basis. And you need to calculate the...
Linked list articles

C program to Reverse a Linked List

Abhinav JainOctober 11, 2021December 14, 2022
The linked list is one of the most important concepts and data structures to learn while preparing for interviews. Having a good grasp of Linked Lists can be a huge...
Linked list articles

LinkedList remove() Method in Java

Abhinav JainOctober 4, 2021November 18, 2022
Basically in this article we will see how the remove method works in linked list. Remove method returns true if an object passed as a parameter is removed from the...
Java

ConcurrentLinkedQueue in Java With Examples

Abhinav JainSeptember 29, 2021March 11, 2022
Class Declaration [TABS_R id=5250] Here, E is the data type of the elements which will be stored in the queue. ConcurrentLinkedQueue class in java extends AbstractQueue interface and implements Queue...
Java

How To Iterate LinkedList in Java

Abhinav JainSeptember 27, 2021December 13, 2022
Introduction One of the most crucial data structures to learn while preparing for interviews is the linked list. In a coding interview, having a thorough understanding of LinkedList might be...
Linked list articles

Convert a given Binary Tree To Doubly Linked List | Set 3

Abhinav JainSeptember 23, 2021December 14, 2022
Introduction One of the most crucial data structures to learn while preparing for interviews is the linked list. In a coding interview, having a thorough understanding of Linked Lists might...
Linked list articles

Deletion in Circular Linked List

Abhinav JainSeptember 21, 2021December 14, 2022
One of the most crucial data structures to learn while preparing for interviews is the linked list. In a coding interview, having a thorough understanding of Linked Lists might be...
Linked list articles

C program for performing Bubble sort on Linked List

Abhinav JainSeptember 8, 2021November 24, 2022
This blog describes the best approach to implement bubble sort using linked list in c. we have given a linked list and we have to sort it using bubble sort....
Linked list articles

How to Delete a Node in Doubly Linked List

Abhinav JainSeptember 8, 2021November 15, 2022
As we already know that Linked list has various types, for a change we will see how a doubly linked list can be changed. Let's just see a quick approach...
Linked list articles

Binary search on Linked List

Abhinav JainSeptember 7, 2021December 13, 2022
Introduction In this article, we will learn how to perform a binary search on linked list in an effective way. Binary Search is a searching algorithm which is performed on...
Linked list articles

Multiplication of Two Polynomials using Linked List

Abhinav JainSeptember 2, 2021November 9, 2022
In this article, we will learn polynomial multiplication in data structure. There are two polynomial which are stored in two linked list, we have to perform operations to give result...
Linked list articles

Recursive selection sort for singly linked list | Swapping node links

Abhinav JainSeptember 1, 2021November 14, 2022
This blog consists of what is selection sort, dry run for performing selection sort, algorithm and implementation of recursive selection sort in linked list. Let’s discuss recursive selection sort in...
Linked list articles

Merge Sort for Doubly Linked List

Abhinav JainAugust 19, 2021November 18, 2022
Introduction In this article, we will learn how to apply merge sort for doubly linked list. Merge sort is a sorting algorithm that uses a divide and conquers approach to...

Pages

  • ALGORITHMS
  • ARRAY
  • BACKTRACKING
  • C PROGRAMMING LANGUAGE
  • C++ PROGRAMMING LANGUAGE
  • CAPGEMINI
  • CIRCULAR LINKED LIST
  • COMPANY PLACEMENT PROCEDURE
  • COMPETITIVE CODING
  • COMPUTATIONAL GEOMETRY
  • CSE SUBJECTS
  • DATA STRUCTURE
  • DOUBLY LINKED LIST
  • DYNAMIC PROGRAMMING
  • GAME THEORY
  • GRAPHS
  • GREEDY ALGORITHM
  • HASHING
  • HEAP
  • INTERVIEW PREPARATION
  • INTERVIEW TIPS
  • JAVA PROGRAMMING LANGUAGE
  • JAVASCRIPT PROGRAMMING LANGUAGE
  • Languages
  • LINKED LIST
  • LINKED LIST USING C
  • MATHEMATICS
  • OPERATING SYSTEM
  • POINTERS
  • PYTHON PROGRAMMING LANGUAGE
  • QUEUE
  • RECURSION
  • SEARCHING
  • SEGMENT TREE
  • SORTING
  • STACK
  • STRING
  • TREES

Recent Articles

  • 1
    January 27, 2023

    What is Final Class in Java?

  • 2
    January 27, 2023

    Linux Operating System

  • 3
    January 27, 2023

    Dangling Pointer in C with Example

  • 4
    January 27, 2023

    Final Keyword in Java

  • 5
    January 27, 2023

    Encapsulation in Java

  • 6
    January 27, 2023

    Polymorphism in Python

Close
Menu
  • Language
    • C
    • C++
    • Java
    • Javascript
    • Python
  • Data Structure
    • Array
    • Graphs
    • Heap
    • Linked List
    • Segment Tree
    • Stack
    • Trees
    • Queue
  • Algorithm
    • Backtracking
    • Dynamic Programming
    • Greedy Algorithm
    • RECURSION
    • Searching
    • Sorting
  • CSE Subjects
    • Operating System
  • Company Placement
  • Interview
    • Interview Tips
    • General Interview Questions
    • Algorithms
    • Data Structure
    • Languages
    • Other Topics
  • Competitive
    • Data Structure
      • Array
      • Graph
      • Heap
      • Segment Tree
      • Stack
      • Queue
      • Tree
      • Tries
    • Algorithm
      • Backtracking
      • Dynamic Programming
      • Greedy Algorithm
      • Searching
      • Sorting
    • Other Topics
      • Computational Geometry
      • Game Theory
      • Maths
      • Pointers
      • Recursion
      • String
  • Others
    • Computational Geometry
    • Game Theory
    • Hashing
    • Maths
    • Pointers
    • Recursion
    • String
FOLLOW US
CONTACT US
+91-8800 2588 17
contact@prepbytes.com
QUICK LINKS
Interview NotesMock TestsPlacement ProgrammeCoding CoursesMock InterviewAbout UsBlog