Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions and answers in Tier 1 Placement Questions
1.6k
views
0
answers
0
votes
Make Equal Subarray Problem Statement You are given two arrays (A and B) each of size N. You want to change A to B.
Make Equal SubarrayProblem StatementYou are given two arrays (A and B) each of size N.You want to change A to B. Changing the i-th element of A to i-th element of B costs...
rk231219
1.6k
views
rk231219
asked
Jan 5, 2022
6.2k
views
4
answers
6
votes
Wine Bottle
A bad king has a cellar of 1000 bottles of delightful and very expensive wine. A neighboring queen plots to kill the bad king and sends a servant to poison the wine. Fort...
jayeshasawa001
6.2k
views
jayeshasawa001
answered
Sep 7, 2020
Puzzles
puzzle
puzzles
placement-questions
+
–
2.1k
views
4
answers
1
votes
Maximum length substring with k unique characters
Given an input string of length $n$, find the maximum length of the substring containing maximum $k$ unique characters. For example, for "abbcdaadcd" and $k=2$ answer wil...
Debargha Bhattacharj
2.1k
views
Debargha Bhattacharj
answered
Feb 18, 2019
Algorithm Challenges
placement-questions
interview
+
–
1.5k
views
0
answers
0
votes
InterView Bit
Given a non negative integer A,following code tries to find all pair of integers (a, b) such thata and b are positive integersa <= b, anda2 + b2 = A.0 <= A <= 100000Howev...
Shaina Singh
1.5k
views
Shaina Singh
asked
Oct 24, 2018
568
views
1
answers
0
votes
Coding String
InputYou are given a template in which you need to implement a function whose signature is given below.C int findWordInAGrid(char grid[128][128], int m, int n, char word[...
habedo007
568
views
habedo007
answered
Sep 13, 2017
Puzzles
algorithms
+
–
1.2k
views
1
answers
1
votes
Finding best time complexity
$\begin{align*} & a[n] = \{x_1,x_2,x_3,x_4,....,x_n\} \text{ is an array of integers where } n,x_i 0. \\ & A = \left [ \text{min}\left ( x_i,x_j \right ) \right ] \cdot ...
dd
1.2k
views
dd
answered
May 27, 2017
Algorithm Challenges
algorithms
time-complexity
+
–
3.2k
views
2
answers
2
votes
Maximum Continuous Sum in an Array
Given an array of $n$ elements find the maximum continuous sum in it. For example consider the below array of $n=6$.23 4 -10 2 15 1Answer is 35.
amuchand47
3.2k
views
amuchand47
answered
Feb 14, 2017
Algorithm Challenges
algorithm-challenge
placement-questions
dynamic-programming
+
–
2.4k
views
2
answers
3
votes
Amazon Interview question on Linked list
Given a linked list :1->2->3->4->5->6,make the following changes1->6->2->5->3->4What would be the most effiicient way to make this change?
Ahwan
2.4k
views
Ahwan
answered
Oct 2, 2016
Algorithm Challenges
linked-list
algorithms
amazon-interview
+
–
1.4k
views
2
answers
0
votes
Multiplication without '*'
Write a function (proper programming code) for multiplying two integers without using '*' operator and considering all corner cases.
ManojK
1.4k
views
ManojK
answered
Jun 6, 2016
Algorithm Challenges
placement-questions
+
–
473
views
0
answers
1
votes
Equivalence of Boolean Expressions
Write an object oriented code for representing boolean expressions and then a function for checking the equivalence of two boolean expressions.
Arjun
473
views
Arjun
asked
Jun 6, 2016
Algorithm Challenges
algorithm-challenge
placement-questions
+
–
1.1k
views
0
answers
0
votes
Evaluate an arithmetic expression
Given an arithmetic expression involving *, + only write an object oriented code for its representation and evaluation
Arjun
1.1k
views
Arjun
asked
Jun 6, 2016
Algorithm Challenges
algorithm-challenge
placement-questions
+
–
1.8k
views
1
answers
2
votes
Zigzag Arrangement
Given an array with possible repeating elements you have to rearrange such that elements are alternatively decreasing and increasing (strict increase/decrease). For examp...
Arjun
1.8k
views
Arjun
answered
May 30, 2016
Algorithm Challenges
array
combinatory
placement-questions
+
–
1.1k
views
1
answers
3
votes
Permutation of String
How to generate permutation of a string? What will be the complexity?
Arjun
1.1k
views
Arjun
answered
May 30, 2016
Algorithm Challenges
combinatory
non-gate
+
–
2.7k
views
1
answers
1
votes
interview\ C program\ What is output
main() { int arr2D[3][3]; printf("%d\n", ((arr2D==* arr2D)&&(* arr2D == arr2D[0])) ); }
vijaycs
2.7k
views
vijaycs
answered
May 15, 2016
Puzzles
programming-in-c
output
pointers
+
–
2.2k
views
3
answers
13
votes
IIITH-PGEE 2016
An anthropologist is visiting the island of knights and knaves one after the other.. This particular island is a very peculiar place, for it has only two kinds of inhabit...
srestha
2.2k
views
srestha
answered
Apr 30, 2016
Puzzles
puzzles
puzzle
iiith-pgee
verbal-aptitude
+
–
1.5k
views
1
answers
2
votes
Open the lock
You are given a number lock of 4 digits and it accepts a serial input. What should be the minimum length of an input string so that the lock is guaranteed to open assumin...
Shashank Kumar
1.5k
views
Shashank Kumar
answered
Apr 29, 2016
Algorithm Challenges
algorithm-challenge
placement-questions
+
–
2.3k
views
1
answers
1
votes
what is the best time complexity to find maximum product of exactly k elements in an array ?
According to me first we sort the array in O(nlogn) time and then in O(k) time , find the product , so total time complexity is O(nlogn) , so am I right or can it be done...
Riya Roy(Arayana)
2.3k
views
Riya Roy(Arayana)
answered
Apr 10, 2016
Algorithm Challenges
algorithm-challenge
placement-questions
+
–
Help get things started by
asking a question
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register