MCPcopy Create free account
hub / github.com/careercup/ctci / wordAtLocation

Method wordAtLocation

java/Chapter 18/Question18_5/Question.java:31–36  ·  view source on GitHub ↗
(String[] words, int loc)

Source from the content-addressed store, hash-verified

29 }
30
31 public static String wordAtLocation(String[] words, int loc) {
32 if (loc < 0 || loc >= words.length) {
33 return null;
34 }
35 return words[loc];
36 }
37
38 // Method to confirm other result
39 public static boolean searchConfirm(String[] words, String word1, String word2, int distance) {

Callers 1

searchConfirmMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected