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
Given a M X N matrix with initial position at top-left cell, find the number of possible unique paths to reach the bottom right cell of the matrix from the initial position
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
422
Given two strings S and T, find the number of times the second string occurs in the first string, whether continuous or discontinuous as subsequence
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
714
Given a number n, we can divide it into only three parts n/2, n/3 and n/4 (we will consider only integer part). The task is to find the maximum sum we can make by dividing the number into three parts recursively and summing up them together
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
377
Given a non-negative integer n, count all numbers with unique digits, x, 0<=x<10^n
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
534
Given a number N, write a program to print the minimum number of squares that sums to N
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
551
Given a value P, you have to make change for P cents, given that you have infinite supply of each of C { C1, C2, ... ,Cn} valued coins
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
537
Given a sequence A of size N, find the length of the longest increasing subsequence from the given sequence
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
560
Given a gold mine of n*m dimensions, each cell in this mine contains a positive integer which is the amount of gold in tons. Initially, the miner is at the first column but can be at any row
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
536
Consider a highway of M miles. The task is to place billboards on the highway such that revenue is maximized
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
544
You are given an array A of size N. The array contains integers and is of even length. The elements of the array represent N coin of values x1, x2, ... ,xn
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
588
Given a weighted directed graph, the problem is to find the shortest distances between every pair of vertices. The Graph is represented by an adjacency matrix, and any cell arr[i][j] denotes the weight of the edge (path cost) from node i to node j (if it exists) else INF
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
648
n stock market, a person buys a stock and sells it on some future date. Given the stock prices of N days in form of an array Amount and a positive integer K, find out the maximum profit a person can make in at most K transactions
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
490
There are N friends, each one of them can remain single or can be paired up with some other friend. Each friend can be paired only once. Find out the total number of ways to do so. Since inputs are big return answer MOD 10^9+7
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
505
Total:
3502
Previous
253
254
255
256
257
Next
Go