Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent activity in Tier 1 Placement Questions
3
3 votes
2
2 answers
6.3k
6.3k views
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.
Arjun
6.3k
views
retagged
May 26, 2025
Algorithm Challenges
algorithm-challenges
placement-questions
dynamic-programming
+
–
1
1 vote
0
0 answers
746
746 views
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
746
views
retagged
May 26, 2025
Algorithm Challenges
algorithm-challenges
placement-questions
+
–
0
0 votes
0
0 answers
2.2k
2.2k views
Evaluate an arithmetic expression
Given an arithmetic expression involving *, + only write an object oriented code for its representation and evaluation
Arjun
2.2k
views
retagged
May 26, 2025
Algorithm Challenges
algorithm-challenges
placement-questions
+
–
1
1 vote
1
answers
1 answer
4.6k
4.6k views
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...
Arjun
4.6k
views
retagged
May 26, 2025
Algorithm Challenges
algorithm-challenges
placement-questions
+
–
2
2 votes
1
answers
1 answer
3.5k
3.5k views
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...
Arjun
3.5k
views
retagged
May 26, 2025
Algorithm Challenges
algorithm-challenges
placement-questions
+
–
0
0 votes
2
2 answers
6.3k
6.3k views
UGC NET CSE | December 2018 | Part 2 | Question: 56
Consider the following method:int f(int m, int n, boolean x, boolean y) { int res=0; if (m<0) {res=n-m;} else if (x || y) { res=-1; if(n==m){res=1;} } else {res=n;} retur...
Arjun
6.3k
views
retagged
Apr 19, 2025
Algorithm Challenges
ugcnetcse-dec2018-paper2
programming-in-c
software-testing
logical-reasoning
+
–
0
0 votes
0
0 answers
2.2k
2.2k views
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
2.2k
views
asked
Jan 5, 2022
Algorithm Challenges
+
–
13
13 votes
3
answers
3 answers
4.8k
4.8k views
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...
gatecse
4.8k
views
recategorized
Apr 25, 2021
Puzzles
puzzle
iiith-pgee
verbal-aptitude
+
–
6
6 votes
4
answers
4 answers
9.6k
9.6k views
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
9.6k
views
commented
Sep 7, 2020
Puzzles
puzzle
placement-questions
+
–
3
3 votes
2
answers
2 answers
3.7k
3.7k views
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?
soujanyareddy13
3.7k
views
retagged
May 22, 2020
Algorithm Challenges
linked-list
algorithms
amazon-interview
+
–
1
1 vote
4
4 answers
3.8k
3.8k views
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
3.8k
views
answer edited
Feb 18, 2019
Algorithm Challenges
placement-questions
interview
+
–
0
0 votes
0
0 answers
2.2k
2.2k views
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...
aambazinga
2.2k
views
commented
Oct 26, 2018
Puzzles
+
–
1
1 vote
1
answers
1 answer
3.8k
3.8k views
interview\ C program\ What is output
main() { int arr2D[3][3]; printf("%d\n", ((arr2D==* arr2D)&&(* arr2D == arr2D[0])) ); }
Salazar
3.8k
views
commented
Jan 22, 2018
Puzzles
programming-in-c
output
pointers
+
–
0
0 votes
1
1 answer
993
993 views
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
993
views
answered
Sep 13, 2017
Puzzles
algorithms
+
–
2
2 votes
1
answers
1 answer
3.7k
3.7k views
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
3.7k
views
retagged
Jun 25, 2017
Algorithm Challenges
array
combinatory
placement-questions
+
–
3
3 votes
1
1 answer
2.2k
2.2k views
Permutation of String
How to generate permutation of a string? What will be the complexity?
Arjun
2.2k
views
retagged
Jun 25, 2017
Algorithm Challenges
combinatory
non-gatecse
+
–
1
1 vote
1
answers
1 answer
3.0k
3.0k views
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 ...
air1
3.0k
views
commented
May 28, 2017
Algorithm Challenges
algorithms
time-complexity
+
–
0
0 votes
2
2 answers
3.5k
3.5k views
Multiplication without '*'
Write a function (proper programming code) for multiplying two integers without using '*' operator and considering all corner cases.
ManojK
3.5k
views
answer edited
Jun 11, 2016
Algorithm Challenges
placement-questions
+
–
To see more, click for all the
questions in this category
.