Sunidhi Bansal has Published 1085 Articles

Print index of columns sorted by count of zeroes in the Given Matrix in C Program.

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Aug-2019 06:38:22

149 Views

Given an array of size NxM where N number of rows and M number of columns, and the task is to print the number of zeroes in every column of a corresponding matrix after performing sort operation on the basis of number of zeros present in any column.For example if ... Read More

Print the corner elements and their sum in a 2-D matrix in C Program.

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Aug-2019 06:29:35

3K+ Views

Given an array of size 2X2 and the challenge is to print the sum of all the corner elements stored in an array.Assume a matrix mat[r][c], with some row “r” and column “c” starting row and column from 0, then its corner elements will be; mat[0][0], mat[0][c-1], mat[r-1][0], mat[r-1][c-1]. Now ... Read More

Print the balanced bracket expression using given brackets in C Program

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Aug-2019 06:24:14

353 Views

Given four variables a, b, c, d with predefined values that will print the given bracket depending upon the variable used.Where variable, a for (( b for () c for )( d for ))The task is to use all the given brackets and print the balanced bracket expression, if we ... Read More

Print the last occurrence of elements in array in relative order in C Program.

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Aug-2019 06:07:00

321 Views

Given an array a[] with elements and the task is to print the last occurrences of the given elements in the list. Here we not only have to remove the duplicate elements but also we have to maintain the order of the occurrences of the elements in an array as ... Read More

Print reverse of a Linked List without extra space and modification in C Program.

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Aug-2019 05:57:17

467 Views

The task is to print the nodes starting from the end of the linked list without using extra space which means there shouldn’t be any extra variable instead the head pointer pointing the first node will be moved.ExampleInput: 10 21 33 42 89 Output: 89 42 33 21 10There can ... Read More

Print pyramid of tutorialspoint in PL/SQL

Sunidhi Bansal

Sunidhi Bansal

Updated on 09-Aug-2019 06:19:06

925 Views

PL/SQL stands for “Procedural Language extension to SQL” . It is the mixture of SQL and Procedural features provided by programming language. It was developed by Oracle Corporation in the late 1980s as procedural extension language for SQL and the Oracle relational database.PL/SQL programs consists of blocks that can be ... Read More

Print the string after the specified character has occurred given no. of times in C Program

Sunidhi Bansal

Sunidhi Bansal

Updated on 08-Aug-2019 10:18:04

755 Views

Task is to print the given after the specified character occurrence for given number of times which is specified by the userInput : string = {“I am harsh vaid “}    Char =’a’    Count =2 Output : rsh vaidIt means user specified character ‘a’ and its occurrence 2 so ... Read More

C Program for Print the pattern by using one loop

Sunidhi Bansal

Sunidhi Bansal

Updated on 08-Aug-2019 09:27:32

4K+ Views

The challenge is to display the pattern using one loop only and with continue statement.AlgorithSTART Step 1 -> declare start variables i and j to 0 with number of rows in n to 6 Step 2 -> Loop For i=1 and i

Print longest palindrome word in a sentence in C Program

Sunidhi Bansal

Sunidhi Bansal

Updated on 08-Aug-2019 09:12:57

1K+ Views

Given a sentence and the challenge is to find the longest palindrome from the given sentenceWhat is a Palindrome?Palindrome is a word or sequence whose meaning remains same even after reversing the stringExample − Nitin, after reversing the string its meaning remains the same.Challenge is to find the longest palindrome ... Read More

Print n 0s and m 1s such that no two 0s and no three 1s are together in C Program

Sunidhi Bansal

Sunidhi Bansal

Updated on 08-Aug-2019 09:08:00

221 Views

There should be sequence of N 0’s and M 1’s such that the sequence so formed shouldn’t contain two consecutive 0’s with three consecutive 1’s.Input − N=5 M=9Output − 1 1 0 1 1 0 1 1 0 1 0 1 0 1Note − To make the above sequence, the statement (m ... Read More

Advertisements