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
An N pair array is given to you. In every pair, the first number is always smaller than the second number. A pair (a,b) can follow another pair (c,d) if a is greater than d
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
364
You are trying to climb on a staircase. There are N number of steps. You can only climb one or two steps at one time. Now you have to find out the number of possible combinations to reach the final step
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
406
Given a sequence of numbers you have to print the longest alternating subsequence. A sequence is an alternating sequence when it will be maintaining like, (increasing) -> ( decreasing ) -> (increasing ) -> (decreasing) or (decreasing) -> (increasing) -> (decreasing) -> (increasing)
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
402
Given a sequence of numbers you have to find out the longest alternating subsequence and print the length of the subsequence
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
433
Given a tree, you have to find out the largest independent set. Independent elements are those that don’t have any common edges. Print the length of the largest independent set
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
977
A list of n days is given to you and there are three columns. One is the day, the second one is high-effort value, and the another one is low-effort value
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
429
Given a sequence of numbers, you have to find the maximum sum alternating subsequence and print the value
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
451
Given a string str, find total number of possible palindromic sub-sequences. A substring need to be consecutive such that for any xixj i<j must be valid in the parent string too. Like \"incl\" is a substring of \"includehelp\" while \"iel\" is not
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
619
Given a string str, find the longest palindromic substring. A substring need to be consecutive such that for any xixj i<j must be valid in the parent string too. Like \"incl\" is a substring of \"includehelp\" while \"iel\" is not
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
361
Given a positive integer N, count all possible distinct binary strings of length N such that there are no consecutive 1\'s. Output your answer mod 10^9 + 7
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
408
Given a rectangular grid of dimension 2 x N find out the maximum sum such that no two chosen numbers are adjacent, vertically, diagonally or horizontally
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
334
You are given a bag of size W kg and you are provided costs of packets different weights of oranges in array cost[] where cost[i] is basically cost of i kg packet of oranges
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
375
Given a string str, find total number of possible palindromic sub-sequences. A sub-sequence does not need to be consecutive, but for any xixj i<j must be valid in the parent string too
C++ programming
2022-05-01
Answers
30
Question
40
Followers
30
0
1
485
Total:
3502
Previous
249
250
251
252
253
Next
Go