Preguntas de entrevista para el puesto de Associate en Hyderabad, área India | Glassdoor.es

Preguntas de entrevista para el puesto de Associate en Hyderabad, India

2,391

Preguntas de entrevista para Associate compartidas por los candidatos

Principales preguntas de entrevista

Ordenar: RelevanciaPopular Fecha

In Array find largest second number ?

5 respuestas

It Took Time but Simple logic is needed.

Would be impressive to solve the general case... find the kth large number: create a minheap of size k, and for each element in the array, if that number is bigger than the top of the minheap, replace the top of the minheap with that number and recreate the minheap. Running time is O(nlgn). If you can have negative numbers, then you can easily modify this code. int findKthLargestNumber(int[] A, int k) { if (k minHeap[2*i+1]) { int temp = minHeap[i]; minHeap[i] = minHeap[2*i+1]; minHeap[ 2*i+1] = temp; i = 2*i+1; } else if (minHeap.length minHeap[2*i+2)]) { int temp = minHeap[i]; minHeap[i] = minHeap[2*i+2]; minHeap[ 2*i+2] = temp; i = 2*i+2; } else { done = true; } }

Since it asks for the second largest number, you can define two variables: theLargest theSecondLargest And scan the array and update these two variables accordingly. If it extends to find the Kth number and K is not very large (e.g. 1000), you can use a minHeap with size K. If the value of K can be very large, you can talk with the interviewer the pros and cons of these two methods: 1) MInHeap 2) QuickSelect

If the rate of $/Rs. was 50 in december and in march it is 45, has the dollar appreciated or depreciated and what does this mean for Indian exporters?

5 respuestas

1.difference between abstract class,interface

4 respuestas

Joining date, experiences etc were asked.

4 respuestas

programming 1) print pattern 2,3,5,7,......

4 respuestas

journal entry for credit purchases and credit sales. golden rules of accounting diff between cash flow and funds flow what is the journal entry in pass book for depositing cash into bank

5 respuestas

Number Series : 1 6 12 13 19 _

4 respuestas

Technical Round: 1) Your Laptop/PC configuration 2) Internet Troubleshooting 3) Booting error/how to rectify 4) Phishing mails 5) IP address? How do you find your own ip? 6) TCP/IP protocol

3 respuestas

Reverse a stack wothout using any other data structure

4 respuestas

Eps Formula..(PAT/ No. of Shares) How do u find.. no of shares in accounting period?

3 respuestas
110 de 2,391 Preguntas de entrevista