Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
No answer
No selected answer
No upvoted answer
Featured
Previous GATE
Questions without a selected answer in Tier 1 Placement Questions
0
0 votes
0
0 answers
2.1k
2.1k 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.1k
views
asked
Jan 5, 2022
Algorithm Challenges
+
–
0
0 votes
2
2 answers
6.2k
6.2k 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.2k
views
asked
Jan 2, 2019
Algorithm Challenges
ugcnetcse-dec2018-paper2
programming-in-c
software-testing
logical-reasoning
+
–
0
0 votes
0
0 answers
2.1k
2.1k 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...
Shaina Singh
2.1k
views
asked
Oct 24, 2018
Puzzles
+
–
0
0 votes
1
1 answer
939
939 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[...
Priyanka Sen
939
views
asked
Sep 6, 2017
Puzzles
algorithms
+
–
3
3 votes
2
2 answers
5.9k
5.9k 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
5.9k
views
asked
Jul 3, 2016
Algorithm Challenges
algorithm-challenges
placement-questions
dynamic-programming
+
–
1
1 vote
0
0 answers
719
719 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
719
views
asked
Jun 6, 2016
Algorithm Challenges
algorithm-challenges
placement-questions
+
–
0
0 votes
0
0 answers
2.1k
2.1k views
Evaluate an arithmetic expression
Given an arithmetic expression involving *, + only write an object oriented code for its representation and evaluation
Arjun
2.1k
views
asked
Jun 6, 2016
Algorithm Challenges
algorithm-challenges
placement-questions
+
–
0
0 votes
2
2 answers
3.2k
3.2k views
Multiplication without '*'
Write a function (proper programming code) for multiplying two integers without using '*' operator and considering all corner cases.
Arjun
3.2k
views
asked
Jun 6, 2016
Algorithm Challenges
placement-questions
+
–
1
1 vote
4
4 answers
3.6k
3.6k 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...
Arjun
3.6k
views
asked
Jun 6, 2016
Algorithm Challenges
placement-questions
interview
+
–
3
3 votes
1
1 answer
2.1k
2.1k views
Permutation of String
How to generate permutation of a string? What will be the complexity?
Arjun
2.1k
views
asked
May 30, 2016
Algorithm Challenges
combinatory
non-gatecse
+
–
To see more, click for the
full list of questions
or
popular tags
.