MCPcopy Create free account
hub / github.com/Rohit91singh9/Coding-DP-DSA / Router

Class Router

BuildingsWithWifi.java:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15 // Create router class for easy reference to location and range
16 public static class Router {
17 int location;
18 int range;
19
20 Router(int location, int range) {
21 this.location = location;
22 this.range = range;
23 }
24 }
25
26 public int getServedBuildings(List<Integer> buildingCount, List<Integer> routerLocation, List<Integer> routerRange) {
27 Integer[] buildingsServedArray = buildingCount.toArray(new Integer[0]);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected