MCPcopy
hub / github.com/careercup/ctci / addProducts

Method addProducts

java/Chapter 7/Question7_7/QuestionA.java:21–25  ·  view source on GitHub ↗
(Queue<Integer> q, int v)

Source from the content-addressed store, hash-verified

19 }
20
21 public static void addProducts(Queue<Integer> q, int v) {
22 q.add(v * 3);
23 q.add(v * 5);
24 q.add(v * 7);
25 }
26
27 public static int getKthMagicNumber(int k) {
28 if (k < 0) {

Callers 1

getKthMagicNumberMethod · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected