MCPcopy Create free account
hub / github.com/Tiwarishashwat/InterviewCodes / find

Method find

DesignANumberContainerSystem.java:27–32  ·  view source on GitHub ↗
(int number)

Source from the content-addressed store, hash-verified

25 }
26
27 public int find(int number) {
28 if(!numberToIdx.containsKey(number)){
29 return -1;
30 }
31 return numberToIdx.get(number).first();
32 }
33}
34
35/**

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected