Pages

July 17, 2017

Interview Questions of Nearby Technologies

1). You have a function f() returns Random number 1-6 with equal probability,
Write a function g which using function f which returns random number 1-12 with equal probability.

Solution


2). Find max consecutive 1’s in a circular array
Solution

3). Design a price surge system, both at a high level and the architecture

4). Design Tiny URL
Solution

5). 
String s = new String("new");
String s1 = "new";
String s2 = "new";
s2==s1; //true
s.equals(s1);//true
s==s1; //false

6). Design a Singleton Class
Solution

No comments:

Post a Comment