Sudhir sharma has Published 1208 Articles

Alternate Odd and Even Nodes in a Singly Linked List in C++

sudhir sharma

sudhir sharma

Updated on 16-Oct-2019 07:39:21

254 Views

A single linked list is a linear data structure that contains two parts − one data and other pointers to the next element in the list.An alternate odd and even singly linked list is a linked list that has one node with even data and the other node with odd ... Read More

Alternate Lower Upper String Sort in C++

sudhir sharma

sudhir sharma

Updated on 16-Oct-2019 07:34:36

417 Views

A string is an array of characters. And this problem is to sort the elements of the string with alternate upper and lower case.Problem Description − Alternate lower upper string sort, is a problem in which we are provided an unordered string which contains mixed upper and lowercase characters and ... Read More

Alternate bits of two numbers to create a new number in C++

sudhir sharma

sudhir sharma

Updated on 16-Oct-2019 07:30:55

107 Views

In this problem, we need to generate a number by using alternate bits of two numbers. So, in this problem we will use the first bit from the second number, then second bit from first, the third bit again from the second number and forth from first and so on.From ... Read More

Almost Perfect Number in C++

sudhir sharma

sudhir sharma

Updated on 16-Oct-2019 07:26:27

132 Views

Almost Perfect Number also known the least deficient number or slightly defective number is a number in which the sum of all divisors ( adding 1 and the number itself ) should be equal to 2n-1.In this problem, we will define an algorithm to check whether a number is an ... Read More

Algorithm for implementing Distributed Shared Memory

sudhir sharma

sudhir sharma

Updated on 16-Oct-2019 07:22:39

4K+ Views

Shared memory is the memory block that can be accessed by more than one program. A shared memory concept is used to provide a way of communication and provide less redundant memory management.Distributed Shared Memory abbreviated as DSM is the implementation of shared memory concept in distributed systems. The DSM ... Read More

Allocate minimum number of pages in C++

sudhir sharma

sudhir sharma

Updated on 16-Oct-2019 07:18:39

321 Views

Allocate a minimum number of pages is a programming problem. Let's discuss this problem in detail and see what can be the solution to it.StatementYou are given the number of pages of n different books. Also, there are m students to whom the books are to be assigned. The books ... Read More

Arc function in C

sudhir sharma

sudhir sharma

Updated on 16-Oct-2019 07:12:56

2K+ Views

In the C programming language, there is an option to create an arc of a circle of a given radius with a given center coordinates and degree of the arc.The arc() function is used to create an arc. This arc function is included in graphics.h library in C which contains methods ... Read More

Anonymous classes in C++

sudhir sharma

sudhir sharma

Updated on 16-Oct-2019 07:09:38

2K+ Views

Anonymous entity is anything that is defined without a name. A class with no name provided is known as an anonymous class in c++. An anonymous class is a special class with one basic property.As there is no name given to the class there is no constructor allocated to it, ... Read More

Alternate Fibonacci Numbers in C++

sudhir sharma

sudhir sharma

Updated on 16-Oct-2019 07:00:02

472 Views

Fibonacci Number is defined as a sequence of numbers that starts with two fixed numbers, generally, o, 1 or 1, 1 and the successive elements of the sequence are the sums of the previous two numbers of the sequence.For example, Fibonacci series till 8 elements is 0, 1, 1, 2, ... Read More

Aliquot Sequence in C++

sudhir sharma

sudhir sharma

Updated on 16-Oct-2019 06:56:44

221 Views

Aliquot sequence is a special sequence of numbers. The sequence starts from the number itself and the next number of the sequence is the sum of the proper divisors of the previous terms.Let’s take an example of the sequence to learn the concept better −Input : 8 Output : 8 ... Read More

Advertisements