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...
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,...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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 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...
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...
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...
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,...
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...
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...
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...
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...
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...