2
ben-dev
9y

String[] hidingPlaces = new String[1000000];
hidingPlaces[Math.rand()*1000000] = "bug";
findBug(hidingPlaces);

public int findBug(String [] are) {
// todo: return index of bug with complexity < O(1)
}

Comments
Add Comment