I applied online. I interviewed at Sayata (Tel Aviv-Yafo) in Jun 2023
Interview
The interview went on Zoom. In the beginning, I was asked a couple of behavioral questions, about my past professional experience and the projects I participated in. Then we passed on to a second part of the interview when I was asked two technical questions.
Interview questions [2]
Question 1
Given an array of numbers where every number >= 0. The items need to be connected. If no answer exists return maxInt example 1: arr = [1, 4, 45, 6, 0, 19] target = 51 output -> 3 because sum([4, 45, 6]) > 51 example 2: arr = [1, 10, 5, 2, 7] target = 9 output -> 1 because sum([10]) > 9
Build Set class with following methods: get(key), set(key, val), clear. Each of the methods time and space complexity has to be O(1). Also Clear method is not allowed to erase the internal memory object of the Class by reassigning its value to an empty one,