ZAD4 #33

Closed
s426182 wants to merge 18 commits from (deleted):ZAD4 into master
Showing only changes of commit bf3dacbbc6 - Show all commits

View File

@ -87,4 +87,15 @@ public class Main {
return result;
}
public static LinkedList<Integer> multiplyPolynomial(LinkedList<Integer> p1, int multiplier){
LinkedList<Integer> result = new LinkedList<Integer>();
while(!p1.isEmpty()) {
result.add(p1.poll() * multiplier);
}
return result;
}
}