## Recent Interview Questions

- 0of 0 votes
alphaAndarabic

given a set of character, ex: 'A' 'B' 'C',

each char have its representative number:

A = 1, B = 13, C= 110;

when the char next to current index is smaller than current we add ex: CBA = 110+13+1

when the char next to current index is bigger than current we all the answer in prev will become minus sign(but not the last one) ABC -1 - 13 + 110 = 96;

calculate the number for each string input;

- 1of 1 vote
Airbnb Online Assessment Paginate List

5

13

1,28,310.6,SF

4,5,204.1,SF

20,7,203.2,Oakland

6,8,202.2,SF

6,10,199.1,SF

1,16,190.4,SF

6,29,185.2,SF

7,20,180.1,SF

6,21,162.1,SF

2,18,161.2,SF

2,30,149.1,SF

3,76,146.2,SF

2,14,141.1,San Jose

Here is a sample input. It’s a list generated by user search.

(1,28,100.3,Paris) corresponds to (Host ID, List ID, Points, City).

5 in the first row tells each page at most keeps 5 records.

13 in the second row is the number of records in the list.

Please paginate the list for Airbnb by requirement:

1. When possible, two records with same host ID shouldn’t be in a page.

2. But if no more records with non-repetitive host ID can be found, fill up the page with the given input order (ordered by Points).

Expected output:

1,28,310.6,SF

4,5,204.1,SF

20,7,203.2,Oakland

6,8,202.2,SF

7,20,180.1,SF

6,10,199.1,SF

1,16,190.4,SF

2,18,161.2,SF

3,76,146.2,SF

6,29,185.2,SF -- 6 repeats in page bec no more unique host ID available

6,21,162.1,SF

2,30,149.1,SF

2,14,141.1,San Jose

- -2of 6 votes
How will you test "Hello world" program?

- 0of 0 votes
You are given a tree and any of the leaf node which is given as input is set to fire. And in each unit time all the neighbouring nodes of the nodes which are already in fire also catch fire. Given a tree find the time taken for the whole tree to catch fire.

The whole catches fire meaning all nodes catches fire.

Example :

4

/ \

5 6

/ \ / \

7 8 9 10

\ \

13 11

\

12

Assume the source leaf node : 9

At 1 sec : 6 catches fire

At 2 sec : 10 and 4 catches fire

At 3 sec : 5 catches fire

At 4 sec : 7 and 8 catches fire

At 5 sec : 13 and 11 catches fire

At 6 sec : 12 catches fire

If we have access to parent pointers its easy just BFS and keeping track of visited we get the answer.

How to go about the problem if we do not have access to parent pointers ??

- 0of 0 votes
write a function to check if a given number is super-prime.

you are given a function that checks if a number is prime.

super-prime is a number that both it's prefix AND suffix are prime number.

The solution has only one loop.

- 0of 0 votes
Given a root to a binary tree, find the level of the tree with the minimum sum.

for example:

50

/ \

6 2

/ \ /

30 80 7

the answer is: level 2

- -2of 2 votes
Office 365 support is a best support for Office 365 technical error. If you cannot synchronize the outlook 365 application or you cannot assess you file and detain the best manner. a lot of bulk unwanted consequence will come in your account and you will not able to get the best result Then You can contact office365 support .We have 24*7 technical support is available throughout the day. A technical expert team and experienced technicians will available for Office365 issue and you can find your office issue and resolved it as you want inyour way. Click on our website link for more information

www.microsoftoutlookoffice365.com/outlook-365-support.html

- -3of 5 votes
Give me an example of your creativity.

- -5of 5 votes
What do you do when you find yourself in a completely distressful situation?

- -5of 5 votes
What is the difference between hard work and smart work?

- -5of 5 votes
What makes you angry?

- -3of 3 votes
Tell me about yourself

- 0of 0 votes
A, P, R, X, S and Z are sitting in a row. S and Z are in the centre. A and P are at the ends. R is sitting to the left of A. Who is to the right of P ?

A. A

B. X

C. S

D. Z

- 0of 0 votes
An institute organised a fete and 1/5 of the girls and 1/8 of the boys participated in the same. What fraction of the total number of students took part in the fete ?

A. 2/13

B. 13/40

C. Data inadequate

D. None of these

- -1of 1 vote
Ornithologist : Bird :: Archealogist : ?

A. Islands

B. Mediators

C. Archaeology

D. Aquatic

- -1of 1 vote
LIGHT:BLIND

A. speech:dumb

B. language:deaf

C. tongue:sound

D. voice:vibration

- -1of 1 vote
To keeps one's temper

A. To become hungry

B. To be in good mood

C. To preserve ones energy

D. To be aloof from

E. None of these

- -1of 1 vote
DIVA:OPERA

A. producer:theatre

B. director:drama

C. conductor:bus

D. thespian:play

- -1of 1 vote
EMBEZZLE

A. Misappropriate

B. Balance

C. Remunerate

D. Clear

- -1of 1 vote
In each of the questions below consists of a question and two statements numbered I and II given below it. You have to decide whether the data provided in the statements are sufficient to answer the question. Read both the statements and

Give answer

(A) If the data in statement I alone are sufficient to answer the question, while the data in statement II alone are not sufficient to answer the question

(B) If the data in statement II alone are sufficient to answer the question, while the data in statement I alone are not sufficient to answer the question

(C) If the data either in statement I alone or in statement II alone are sufficient to answer the question

(D) If the data given in both statements I and II together are not sufficient to answer the question and

(E) If the data in both statements I and II together are necessary to answer the question.

- -1of 1 vote
Statements: Some actors are singers. All the singers are dancers.

Conclusions:

Some actors are dancers.

No singer is actor.

A. Only (1) conclusion follows

B. Only (2) conclusion follows

C. Either (1) or (2) follows

D. Neither (1) nor (2) follows

E. Both (1) and (2) follow

- 0of 0 votes
In a box, there are 8 red, 7 blue and 6 green balls. One ball is picked up randomly. What is the probability that it is neither red nor green?

A.

1

3

B.

3

4

C.

7

19

D.

8

21

E.

9

21

- 0of 0 votes
A right triangle with sides 3 cm, 4 cm and 5 cm is rotated the side of 3 cm to form a cone. The volume of the cone so formed is:

A. 12 cm3

B. 15 cm3

C. 16 cm3

D. 20 cm3

- 0of 0 votes
A bag contains 2 red, 3 green and 2 blue balls. Two balls are drawn at random. What is the probability that none of the balls drawn is blue?

A.

10

21

B.

11

21

C.

2

7

D.

5

7

- 0of 0 votes
A grocer has a sale of Rs. 6435, Rs. 6927, Rs. 6855, Rs. 7230 and Rs. 6562 for 5 consecutive months. How much sale must he have in the sixth month so that he gets an average sale of Rs. 6500?

A. Rs. 4991

B. Rs. 5991

C. Rs. 6001

D. Rs. 6991

- 0of 0 votes
Two ships are sailing in the sea on the two sides of a lighthouse. The angle of elevation of the top of the lighthouse is observed from the ships are 30° and 45° respectively. If the lighthouse is 100 m high, the distance between the two ships is:

A. 173 m

B. 200 m

C. 273 m

D. 300 m

- 0of 0 votes
The major goal of inheritance in C++ is?

a) To facilitate the reusability of code

b) To help modular programming

c) To facilitate the conversion of data types

d) To extend the capabilities of a class

- 0of 0 votes
Stacks are based on?

a) FIFO

b) LIFO

c) FILO

d) All of the above

- 0of 0 votes
The default visibility mode while inheriting is?

a) Public

b) Protected

c) Private

d) All of the above

- 0of 0 votes
Size of a char is?

a) 1

b) 2

c) 3

d) 4