Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
if-else
class-diagram
flowchart
Polymorphism
Home
Questions
Questions
Study lists
mahmoud Questions
3502 Questions
You are given an array of N elements, which are initially all 0. After that you will be given C commands
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
141
You are given an array of N elements, which are initially all 0. After that you will be given C commands
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
115
Given a rectangular matrix of size N*M, we can move from the current cell in 4 directions with equal probability
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
142
Given two arrays A and B of size N each, find the maximum N elements from the sum combination (A[i]+B[j]) formed elements A and B
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
525
You are given two prime numbers n and m of 4 digits each, you need to convert n into m in the minimum number of steps, in each step you can change one of the digits of the number n such that a resulting number is also a prime number
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
454
You are given an array A of integers of size N. You will be given Q queries where each query is represented by two integers L, R. You have to find the gcd(Greatest Common Divisor) of the array after excluding the part from range L to R inclusive (1 Based indexing)
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
712
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. Find the minimum element. You may assume no duplicate exists in the array
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
439
You are given an array Arr, you have to find the maximum value of the expression (Arr[i1]-Arr[i2]+Arr[i3]-Arr[i4]) where i1>i2>i3>i4 and (0<=i1,i2,i3,i4<n)
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
457
Given a sorted array with possibly duplicate elements, the task is to find indexes of first and last occurrences of an element x in the given array
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
444
Given a sorted array of integers, find the floor and ceil of given number x in it. The floor and ceil value of a number points to the largest previous or the smallest following integer respectively
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
452
Find the largest rectangular area possible in a given histogram where the largest rectangle can be made of a number of contiguous bars. For simplicity, assume that all bars have the same width and the width is 1 unit
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
553
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining?
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
512
The stock span problem is a financial problem where we have a series of n daily price quotes for a stock and we need to calculate the span of stock\'s price for all n days
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
483
Total:
3502
Previous
241
242
243
244
245
Next
Go