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
Find the level in a binary tree with given sum K
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
543
Given an array of integers, find and print the maximum number of integers you can select from the array such that the absolute difference between any two of the chosen integers is less than or equal to 1
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
542
Given a number N, write a function which generates all n-bit gray code sequences, a gray code sequence is a sequence such that successive patterns in it differ by one bit
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
573
Given a matrix with zeros and ones, one enters the matrix at cell (0, 0) in left to right direction. Whenever one encounters a 0 he retains in the same direction, if one encounters a 1 he has to change direction to the right of current direction and change that 1 value to 0
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
698
Given an array of jobs where every job has a deadline and a profit. Profit can be earned only if the job is finished before the deadline
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
538
Given an input line, capitalize first and last letter of each word in the given line. It\'s provided that the input line is in lowercase
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
522
Given a binary string, write an algorithm to find the number of patterns of form 1[0]1 where [0] represents any number of zeroes (minimum requirement is one 0) there should not be any other character except 0 in the [0] sequence
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
582
Given an unsorted array A of size N of non-negative integers, find a continuous sub-array which adds to the given number
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
511
Given an array consisting only zeros, ones and twos. Give an algorithm for sorting the array in O(n) time complexity ( in the sorted array, zeros will be at starting ,then the ones & then the twos)
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
451
Write a program that counts frequency of each letter in the string (string consists lowercase letters only)
C++ programming
2022-04-30
Answers
30
Question
40
Followers
30
0
1
582
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-04-30
Answers
30
Question
40
Followers
30
0
1
446
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-04-30
Answers
30
Question
40
Followers
30
0
1
496
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-04-30
Answers
30
Question
40
Followers
30
0
1
467
Total:
3502
Previous
259
260
261
262
263
Next
Go