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

Guneet Malhotra

Java

Quick Sort Program in Java

Guneet MalhotraJanuary 10, 2023January 10, 2023
In this article, we will write a quick sort program in Java. We will understand the partition procedure, the quicksort algorithm, and its worst-case and best-case analysis, and will write...
Java

Recursion Program in Java

Guneet MalhotraJanuary 6, 2023January 9, 2023
In this article, we will write a recursion program in Java. We will understand the meaning of recursion, how the recursion call stack works, and the base condition in recursion,...
Java

Stack Program in Java

Guneet MalhotraJanuary 6, 2023January 9, 2023
In this article, we will write a Stack program in Java. We will learn about the stack class in Java, how to create a stack, different methods of a stack...
Operating system

Most Used Operating System Examples

Guneet MalhotraDecember 9, 2022December 12, 2022
In this article, we are going to see the most used operating system examples. We will discuss the following most used operating system examples; Windows, Linux, Android, Apple iOS, Apple...
Operating system

Functions of Operating System

Guneet MalhotraDecember 9, 2022December 12, 2022
In this article, we will discuss the functions of operating system. We will discuss how the operating system acts as a resource manager, provides security, manages storage, etc. So, let’s...
DBMS

Indexing in DBMS

Guneet MalhotraDecember 8, 2022December 12, 2022
Indexing in DBMS is a very important aspect because of the benefits that it has. In this article, we will discuss what is indexing in DBMS. We will also cover...
Java

OOPS Concepts in Java with Examples

Guneet MalhotraDecember 2, 2022December 7, 2022
In this article, we will discuss the OOPS concepts in Java with examples. We will discuss different OOPS concepts in Java with examples like Classes, Objects, and Constructors, and we...
Java

Collections in Java

Guneet MalhotraDecember 2, 2022December 7, 2022
In this article, we are going to discuss collections in Java. We will discuss the basics of collections framework in Java, different collections classes, collections interfaces, etc. Also, we will...
C++ Programming

OOPS Concepts in C++ with Examples

Guneet MalhotraDecember 2, 2022December 7, 2022
In this article, we will discuss the OOPS concepts in C++. We will discuss what is OOPS, what classes and objects in OOPS are, and the 4 pillars of OOPS...
Java

Java Program to Check Prime Number

Guneet MalhotraNovember 24, 2022December 8, 2022
In this article, we will discuss the problem of identifying a prime number in Java. We will discuss the definition and meaning of prime numbers, 3 different ways to identify...
Java

Java Program to Reverse a Number

Guneet MalhotraNovember 24, 2022December 8, 2022
In this article, we will learn to reverse a number in Java. We will understand how to reverse a number in Java and we will write the program to reverse...
Java

Java Program to Print the Elements of an Array in Reverse Order

Guneet MalhotraNovember 11, 2022November 14, 2022
In this article, we are going to discuss “How to reverse an array in Java”. You are given an array of integers. Your task is to output the array in...
Miscellaneous

Largest rectangular Area in Histogram – Set 2

Guneet MalhotraSeptember 27, 2022October 10, 2022
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...
Data Structure

Data Structures in Java | Queue | Heap

Guneet MalhotraSeptember 26, 2022December 14, 2022
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...
Data Structure

Data Structures in Java | Array | Linked List | Stack

Guneet MalhotraSeptember 26, 2022December 14, 2022
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...
DBMS

Comprehensive Guide to Cardinality in DBMS

Guneet MalhotraSeptember 20, 2022October 3, 2022
Introduction: When we talk about Database Management Systems (DBMS), or we deal with databases (SQL or No-SQL), we often hear the term cardinality. It is a very important term in...
Stacks

Iterative Postorder Traversal | Set 1 (Using Two Stacks)

Guneet MalhotraSeptember 13, 2022October 3, 2022
Problem Statement You are given a binary tree. Your task is to print the postorder traversal of the tree iteratively, using 2 stacks. Example Consider the tree given below. The...
Arrays

Check if an Array is Stack Sortable

Guneet MalhotraSeptember 12, 2022October 3, 2022
Problem Statement You will be given an array A of integers containing N elements. All the elements inside the array are unique and in the range of 1 to N,...
Arrays

Count Subarrays where Second Highest lies before Highest

Guneet MalhotraSeptember 12, 2022October 3, 2022
Problem Statement You will be given an array of N distinct elements. The minimum value of N is 2. In every subarray of the given array, you have to find...
Miscellaneous

Reverse Individual Words

Guneet MalhotraSeptember 12, 2022October 3, 2022
Problem Statment You are given a string. This string contains many words that are space separated. You have to reverse each word in the string individually. Examples The input string...
Stacks

Expression Evaluation

Guneet MalhotraAugust 30, 2022September 15, 2022
Problem Statement You will be given a string representing a mathematical expression. You have to evaluate it and return the result. Some Constraints The input string will be in Infix...
Stacks

The Celebrity Problem

Guneet MalhotraAugust 29, 2022December 14, 2022
Problem Statement There is a party of N (numbered 0 to N-1) people. There might or might not be a celebrity at this party. A celebrity is someone who is...
Stacks

Maximum Product of Indexes of next greater on Left and Right

Guneet MalhotraAugust 29, 2022October 10, 2022
Problem Statement You are given an array A. Let us say that the array has indices from 1 to N. For each index i in the array: The quantity L(i)...
Arrays

Number of NGEs to the Right

Guneet MalhotraAugust 26, 2022September 13, 2022
Problem Statement You will be given an array of N integers. You will also be given an Integer Q denoting the number of queries. Then, you will have Q queries...

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