Sudhir sharma has Published 1149 Articles

First string from the given array whose reverse is also present in the same array in C++

sudhir sharma

sudhir sharma

Updated on 01-Feb-2022 11:25:56

188 Views

In this problem, we are given an array of string str[] of size N. Our task is to create a program for finding the first string from the given array whose reverse is also present in the same array.Let's take an example to understand the problem, Input: str[] = ["python", ... Read More

First non-repeating in a linked list in C++

sudhir sharma

sudhir sharma

Updated on 01-Feb-2022 11:19:56

223 Views

In this problem, we are given a linked list LL of size N. Our task is to create a program for finding non-repeating in linked list.Linked list is a sequence of data structures, which are connected together via links.Let's take an example to understand the problem, Input: LL = 4 ... Read More

First negative integer in every window of size k in C++

sudhir sharma

sudhir sharma

Updated on 01-Feb-2022 11:16:06

1K+ Views

In this problem, we are given an array arr[] consisting of N integer values and a window of size N. Our task is to create a program for finding the first negative integer in every window of size k. We will be printing the first negative number if it exists ... Read More

Floyd's triangle in PL/SQL

sudhir sharma

sudhir sharma

Updated on 01-Feb-2022 10:59:10

683 Views

PL/SQL is a combination of SQL along with the procedural features of programming languagesFLOYD’s triangle − it is a triangle formed by natural numbers. It is the triangle formed by filling numbers in rows starting from 1 at the top-left corner. It is a right-angled triangle i.e. the count of ... Read More

First element greater than or equal to X in prefix sum of N numbers using Binary Lifting in C++

sudhir sharma

sudhir sharma

Updated on 01-Feb-2022 10:56:48

320 Views

In this problem, we are given an array arr[] consisting of N numbers and an integer value x. Our task is to create a program for finding the first element greater than or equal to X in the prefix sum of N numbers using Binary Lifting.Prefix Sum of elements of ... Read More

Floor of every element in same array in C++

sudhir sharma

sudhir sharma

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

235 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

591 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

551 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

482 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

8K+ 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

Advertisements