Sudhir sharma has Published 1206 Articles

Bash program to check if the Number is a Prime or not

sudhir sharma

sudhir sharma

Updated on 13-Nov-2019 11:53:01

18K+ Views

Bash also known as GNU bash is a command language and unix shell script is a command line interpreter for operating system. It was designed by Brian Fox and was a free software which replaced Bourne shell. It first released in 1989 and some became go to for login shell ... Read More

bar() function in C graphics

sudhir sharma

sudhir sharma

Updated on 13-Nov-2019 11:47:23

2K+ Views

bar() function is a C graphics function that is used to draw graphics in the C programming language. The graphics.h header contains functions that work for drawing graphics. The bar() function is also defined in the header file.Syntaxvoid bar(int left, int top, int right, int bottom );The bar() function is ... Read More

Bands in Radio frequency Spectrum in C program

sudhir sharma

sudhir sharma

Updated on 13-Nov-2019 11:43:05

426 Views

Radio frequency (RF) is the oscillation of an A.C. current or an A.C. voltage or any other oscillating body in the frequency range of 20KHz to 300 GHz.Radio frequency spectrum of a device is the frequency range that the device can capture, process or repercate. Generally the frequency range is ... Read More

C++ Balanced expressions such that given positions have opening brackets

sudhir sharma

sudhir sharma

Updated on 13-Nov-2019 11:30:34

161 Views

A balanced expression of parentheses is an expression that contains pairs of all sort of parentheses together in a correct order. this means that for every opening parentheses there is a closing parentheses in proper order of parentheses i.e. { }.Expression − {([][]{})({}[]{})}Output − balancedNow, in this problem we have ... Read More

Array Representation Of Binary Heap

sudhir sharma

sudhir sharma

Updated on 13-Nov-2019 10:20:04

3K+ Views

The complete binary tree that follows the properties of heap ordering is called binary heap.Based on the ordering of binary heap, it can be of two types −min Heap is the heap in which the value of node is greater than or equal to the value of its parent node. ... Read More

To find sum of even factors of a number in C++ Program?

sudhir sharma

sudhir sharma

Updated on 30-Oct-2019 06:20:56

197 Views

This program is used to find all the even factors and calculate the sum of these even factors and display it as output.Example −Input : 30 Even dividers : 2+6+10+30 = 48 Output : 48For this, we will find all the factors. Find the even of them and find the ... Read More

Sum of sum of first n natural numbers in C++

sudhir sharma

sudhir sharma

Updated on 24-Oct-2019 11:18:27

176 Views

In this problem to find the sum of sum of first n natural numbers, we will find the sum of all numbers from 1 to n and add them together to find the sum.Let’s take an example to learn about the concept, Input : 4 Output : 10 Explanation : ... Read More

Add all greater values to every node in a given BST in C++ ?

sudhir sharma

sudhir sharma

Updated on 24-Oct-2019 11:17:01

66 Views

A BST or binary search tree is a form of binary tree that has all left nodes smaller and all right nodes greater than the root value. For this problem, we will take a binary tree and add all the values greater than the current node to it. the problem ... Read More

Binary Search in C++ program?

sudhir sharma

sudhir sharma

Updated on 24-Oct-2019 11:12:46

686 Views

binary search, also known as half-interval search, logarithmic search, or binary chop, is a search algorithm that finds the position of a target value within a sorted array. Binary search compares the target value to the middle element of the array. If they are not equal, the half in which ... Read More

Sum of squares of Fibonacci numbers in C++

sudhir sharma

sudhir sharma

Updated on 24-Oct-2019 11:08:17

157 Views

Fibonacci series is a mathematical sequence of number which starts from 0 and the sum of two numbers is equal to the next upcoming number, for example, the first number is 0 and the second number is 1 sum of 0 and 1 will be 1F0=0, F1=1AndFn=Fn-1+Fn-2, F2=F0+F1 F2=0+1 F2=1then ... Read More

Advertisements