Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
No answer
No selected answer
No upvoted answer
Previous GATE
Featured
Questions without an upvoted answer in Tier 1 Placement Questions
0
votes
0
answers
1
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
0
votes
0
answers
2
InterView Bit
Given a non negative integer A, following code tries to find all pair of integers (a, b) such that a and b are positive integers a <= b, and a2 + b2 = A. 0 <= A <= 100000 However, the code has a small bug. Correct the bug and submit the ... b * b == A) { vector<int> newEntry; newEntry.push_back(a); newEntry.push_back(b); ans.push_back(newEntry); } } } return ans; }
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
0
votes
1
answer
3
Coding String
Input You 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[32]) /* return 0 for false, 1 for true. */ C++ bool findWordInAGrid(char grid[128] ... abc abedhi efgh Output: The output of the above example should be: abc: true abedhi: true efgh: false Constraints 1 ≤ m,n ≤ 100
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
534
views
Priyanka Sen
asked
Sep 6, 2017
Puzzles
algorithms
+
–
1
votes
0
answers
4
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.
Write an object oriented code for representing boolean expressions and then a function for checking the equivalence of two boolean expressions.
Arjun
449
views
Arjun
asked
Jun 6, 2016
Algorithm Challenges
algorithm-challenge
placement-questions
+
–
0
votes
0
answers
5
Evaluate an arithmetic expression
Given an arithmetic expression involving *, + only write an object oriented code for its representation and evaluation
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
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register