Sudhir sharma has Published 1206 Articles

Floor of every element in same array in C++

sudhir sharma

sudhir sharma

Updated on 01-Feb-2022 10:55:14

146 Views

In this problem, we are given an array arr[] of integer elements. Our task is to create a program to find the Floor of every element in the same array. If the floor of an element exists, we will print the floor otherwise print -1.Floor of an element in array ... Read More

Finding the path from one vertex to rest using BFS in C++

sudhir sharma

sudhir sharma

Updated on 01-Feb-2022 10:51:38

469 Views

In this problem, we are given a directed graph represented as an adjacency list. Our task is to create a program for finding the path from one vertex to rest using BFS.BFS(Breadth First Search) is an algorithm that traverses a graph in a breadthward motion and uses a queue to ... Read More

Floor in a Sorted Array in C++

sudhir sharma

sudhir sharma

Updated on 01-Feb-2022 10:44:34

358 Views

In this problem, we are given a sorted array arr[] and an integer value x. Our task is to create a program to find the floor in a sorted array.Floor of X in sorted array arr is the largest element of the array arr[] which is smaller than or equal ... Read More

Finding the maximum square sub-matrix with all equal elements in C++

sudhir sharma

sudhir sharma

Updated on 01-Feb-2022 10:37:40

386 Views

In this problem, we are given a N*N matrix mat[]. Our task is finding the maximum square sub-matrix with all equal elements.In this problem, we need to find the maximum size of a sub-matrix from the given matrix whose all elements are the same.Let's take an example to understand the ... Read More

Finding sum of first n natural numbers in PL/SQL

sudhir sharma

sudhir sharma

Updated on 01-Feb-2022 10:26:35

7K+ Views

In this problem, we are given a number N. Our task is to finding sum of first n natural numbers in PL/SQL.PL/SQL is a combination of SQL along with the procedural features of programming languages.PL/SQL has the following features −PL/SQL is tightly integrated with SQL.It offers extensive error checking.It offers ... Read More

Freeware v/s Shareware

sudhir sharma

sudhir sharma

Updated on 01-Feb-2022 10:25:12

6K+ Views

Softwares are a set of programs that are created in order to perform a specific computer task. Generally, the software is created by developers to solve the needs of its users. And based on the restrictions that are imposed on software. Basically, there are a few categories based on licensing. ... Read More

Friends Pairing Problem in C++

sudhir sharma

sudhir sharma

Updated on 01-Feb-2022 10:21:49

458 Views

In this problem, we are given a positive integer N denoting the number of friends in a group. Our task is to create a program to solve the Friends Pairing Problem.Each friend of the group can either remain single or can pair up with one other friend. The pairing of ... Read More

Finding n-th number made of prime digits (2, 3, 5 and 7) only in C++

sudhir sharma

sudhir sharma

Updated on 01-Feb-2022 10:09:35

451 Views

In this problem, we are given a number N. Our task is to finding n-th number made of prime digits (2, 3, 5 and 7) only.The series consisting of prime digits only (2, 3, 5, 7) is, 2, 3, 5, 7, 22, 23, 25, 27, 32, 33...Let's take an example ... Read More

Format String Vulnerability and Prevention with Example in C

sudhir sharma

sudhir sharma

Updated on 01-Feb-2022 10:08:09

703 Views

Format String − It is an ASCII string that is used for formatting strings. It is an ASCII string consisting of texts and formatting parameters.For formatting, the program’s output, there are various format strings in C.FORMAT STRING VULNERABILITIESThese are bugs that arise due to errors in programming that might be ... Read More

Finding Median in a Sorted Linked List in C++

sudhir sharma

sudhir sharma

Updated on 01-Feb-2022 10:05:39

347 Views

In this problem, we are given a sorted linked list consisting of N elements. Our task is to finding Median in a Sorted Linked List.Sorted Linked List is a simple linked list in which all elements are sorted in a specific order. Example − 4 -> 6 -> 7 -> ... Read More

Advertisements