The question had to do with Recursion in a Two-Dimensional Array
Junior Ios Developer Interview Questions
6,313 junior ios developer interview questions shared by candidates
What is encapsulation in OOP?
Write a function isPossible(targetReservation, currentReservations), output if target reservation can be made given current list of reservations. Reservations include start and end time
Implement LRU cache
When the application is in between apps or it still in background and not killed, what is the state of it called and what is the memory management at that stage and if it can execute code.
What is @dynamicMemberLookup? How to impl multi async api request?
Logical question: There is a 20-floor tower, and you have 2 plates. At a specific floor, if you throw a plate, it starts to break. If the plate breaks, you can not throw it again, but if it does not break when you throw, you can throw it again. For example, imagine the floor where it starts to break is 7. So, if I throw the plate lower than the 7th floor, it doesn't break. If I throw it on the 7th or above, it breaks. The question: How many attempts do I need (in the worst case), to find out the floor that the plate does not break. Live Coding: There are 2 arrays, both sorted in ascending order. arr1 = [1,3,5,7,9,0,0,0], m = 5 (the number of non-zero elements) arr2 = [2,5,8], n = 3 (the number of elements) The task: You should merge the second array into the first array, and the resulting array should also be sorted in ascending order (you should not create a new result array, but instead modify 1st array). It is guaranteed that the first array has the same number of zeros as the number of elements in the second array. And it does not matter the order if the elements of both arrays are equal, for example, both arrays have element "5", when you compare them, how to sort, it does not matter which stays first. Result: arr1 = [1,2,3,5,5,7,8,9]
assignment
A riddle of mangoes
Give these two API’s, plus an enum and struct: enum Alignment { Left, Right, Center } class Size { int width; int height; } // returns the dimensions for a character Size getCharSize(char c); // Draws a character at the specified location, with // (0,0) being the top left. This method does NOT // understand the newline character. Once rendered, // there is no way to delete a character. void drawCharAt(char c, int x, int y); Show how you would implement code for this function: void renderText(String text, int screenWidth, Alignment alignment);
Viewing 1161 - 1170 interview questions