How would I implement the 'ls' command in Unix?
Engineer Developer Interview Questions
467,662 engineer developer interview questions shared by candidates
They asked me some behavioral questions like if I will be interested to work in software like Itunes in which you download a song but will not be able to play it in some other player.
Received solution for refactoring.
Tell me 3 hobbies. Not 2 or 4, only 3.
Given busy slots as a data-set in a person's outlook calendar (eg: {(1000, 1200), (1415, 1530),...}) and the time required for a meeting (eg: 45 mins) write a method to find an open available slot for scheduling a meeting.
2 Coding questions, providing complete solution is the main thing they want and not the optimization.
Give an example of real world scenario where you see inheritance?
1) I have class hierarchy and should create array of different instances of this hierarchy. They asked me to write a function which iterates this array and executes different methods according to the instance class. I suggested that downcasting is a bad idea and that it can violate Liskov substitution rule of the SOLID principles, and this problem should be solved using collections and generics, but they did not accept this answer 2) Create Queue N size using only N size array. 3) some Java concurrency related questions: synchronized volatile, atomic, etc....
Given an array of unique non-negative integers, {A1,…,An}, and a positive integer, X, write a function that finds all pairs of numbers in the array that sum to X”. You are given an integer array nums sorted in ascending order (with distinct values), and an integer target. Suppose that nums is rotated at some pivot unknown to you beforehand (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).” Take a singly-linked list, and reorder in such a way that the first element points to the last element, second element points to second-to-last element, and so on.
What is the size og following structuires when packing is allowed and not allowed. Struct A { char c; int i; } Struct B {int i; char c; } Struct C { char c1; int i; char c2; }
Viewing 1501 - 1510 interview questions