Pregunta de entrevista de Times Internet

Cleared two rounds (F2F/technical), asked to come after a few days for coding assignment. round 3: write Java program on laptop to add all digits of a number and return single digit using recursion. about my current project architecture. round 2: implement stack’s push, pop and max operation. Given an array where numbers are ascending up-to certain point and after that they are decreasing, find index of a given number in less that O(n) time. a program on linked list. Code a singleton class which is thread safe. round 3: Write a Java program to call a REST API and get the JSON response, parse the response and perform some filtering and sorting.

Respuesta de la entrevista

Anónimo

16 mar 2016

I used Java 8 streams and lambda to achieve the same.