Given a single-line text string and a maximum width value, write the function 'string justify(string text, int maxWidth)' that formats the input text using full-justification, i.e., extra spaces on each line are equally distributed between the words; the first word on each line is flushed left and the last word on each line is flushed right.
Applications Developer Associate Interview Questions
25,265 applications developer associate interview questions shared by candidates
Given a matrix where all columns and rows are sorted and an integer k. How would you find k in the matrix?
My clock is 9 minutes slow every hour. At noon, it tells the correct time. After how many hours will it again tell the correct time?
Pattern sequences... what comes next given the following sequence of shapes, letters, numbers.
What is function handle?
GPA, Situation with multiple deadlines, project
Problem solving: 1. Given a no. Find next highest no. containing same digits. 2. Given a array and a value k. Find all unique pairs that sums up to k. 3. Anagram check. 4. Given a array, i, j. Find all nos. such that j > i and array[j] > array[i]. 5. Boolean matrix problem. make all the values in a row or column as '1' if there is at least one '1' in that row or column. 6. Given a array where consecutive digits differences out to particular set of values and no. 'k'. Find the index of 'k'. Use hashing. Scripting: 1. Given a log file containing req ID and time consumed. Find all req. IDs consuming time more than certain seconds. Red ID: xyz Time: 10 2. Given a file containing 'Stundent,Marks'. Sum the marks of students and display totals marks student wise. I/P: Stud1,20 Stud2,30 Stud1,10 Stud2,30 O/P: Stud1,30 Stud2,60
Check a number of hosts for a specific daemon and report the hosts where it is not running.
There's three bags of marbles. One back contains black, one contains white and one contains black AND white. Each bag is labelled INCORRECTLY. You are to label the bags correctly by only drawing one marble from one bag. Which bag do you draw from? a) bag labelled 'white' b) bag labelled 'black' c) bag labelled 'white and black' d) none of the above
Peer Programming Round: A coding problem statement was given which had to be implemented in 4 hours. The reviewer was not interested in understanding the approach.
Viewing 31 - 40 interview questions