Questions without a selected answer in Tier 1 Placement Questions

0 0 votes
0 0 answers
2.1k
2.1k views
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...
0 0 votes
2 2 answers
6.2k
6.2k views
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...
0 0 votes
0 0 answers
2.1k
2.1k views
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...
0 0 votes
1 1 answer
939
939 views
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[...
3 3 votes
2 2 answers
5.9k
5.9k views
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.
1 1 vote
0 0 answers
719
719 views
Write an object oriented code for representing boolean expressions and then a function for checking the equivalence of two boolean expressions.
0 0 votes
0 0 answers
2.1k
2.1k views
Given an arithmetic expression involving *, + only write an object oriented code for its representation and evaluation
0 0 votes
2 2 answers
3.2k
3.2k views
Write a function (proper programming code) for multiplying two integers without using '*' operator and considering all corner cases.
1 1 vote
4 4 answers
3.6k
3.6k views
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...
3 3 votes
1 1 answer
2.1k
2.1k views
How to generate permutation of a string? What will be the complexity?
To see more, click for the full list of questions or popular tags.