Sudhir sharma has Published 1206 Articles

Elements greater than the previous and next element in an Array in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 12:38:53

933 Views

In this problem, we are given an array arr[] of n positive integers. Our task is to create a program to find the elements greater than the previous and next element in an Array. Code Description: We need to find the elements of the array that satisfy the condition, the element is ... Read More

Easy way to remember Strassen's Matrix Equation in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 12:36:00

460 Views

It is a matrix multiplication algorithm is based on divide and conquer method. It is used to multiply two matrices of the same size, Finding multiplication of two matrices−The strassen’s Algorithm reduces overhead for multiplication by simplifying the multiplication.Here is the multiplication made using the strassen’s Algorithm: M1 = a*(f - h) M2 = ... Read More

Editors and Its types in System Programming in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 12:35:41

4K+ Views

Editors are basically computer programs that are utilised to edit files on a computer. The provide environment to a programmer to create, edit, update, format a document in any order he/she wants to.In system programming or programming, editors are software or tools that are used to edit the program. These are basically text ... Read More

Element equal to the sum of all the remaining elements in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 12:35:22

109 Views

In this problem, we are given an array arr[] consisting of n positive values. Our task is to find the element equal to the sum of all the remaining elements of the array.Code Description: We need to find the element whose value is equal to the sum of all elements of the ... Read More

Dumpster Diving/Trashing in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 12:30:06

76 Views

Dumpster diving or trashing is a technique used in cyber security and information technology which is commonly used by hackers to extract data. It is based on the fact that “something which is worthless for someone can be of great usage for someone else”. It works based on the idiom, “One man’s trash ... Read More

Dudeney Numbers in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 12:29:45

473 Views

A mathematical number defined in number theory in a given number base is a natural number equal to the perfect cube of another natural number such that the digit sum of the first natural number is equal to the digit sum of the second number(wikipedia).The number was found by Henry ... Read More

Dual Mode operations in OS in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 12:29:14

3K+ Views

Every system works on operations mainly in two modes to safeguard hardware’s computation. The two modes are −User ModeKernel ModeUser Mode −The OS mode in which all the user applications and programs will run. Here, the user instructions are worked on and softwares like playing music is run.Kernel Mode −The OS ... Read More

Query for ancestor-descendant relationship in a tree in C++ Program

sudhir sharma

sudhir sharma

Updated on 22-Dec-2020 08:48:39

164 Views

In this problem, we are given an N vertex tree and Q queries each consisting of two values i and j. Our task is to create a program to solve a Query for ancestor-descendant relationship in a tree.To solve each query, we need to check whether the node i is ... Read More

Queries to update a given index and find gcd in range in C++ Program

sudhir sharma

sudhir sharma

Updated on 22-Dec-2020 08:46:39

167 Views

In this problem, we are given an array arr[] of size N and Q queries which can be of two types. Our task is to create a program to solve the queries to update a given index and find GCD in the range.Queries are −Type 1 − {1, index, value} ... Read More

Queries to return the absolute difference between L-th smallest number and the R-th smallest number in C++ Program

sudhir sharma

sudhir sharma

Updated on 22-Dec-2020 08:44:35

65 Views

In this problem, we are given an array arr[] of size n and Q queries each consisting of 2 values L and R. Our task is to create a program to solve queries to return the absolute difference between L-th smallest number and the R-th smallest number.Problem Description − To ... Read More

Advertisements