diff --git a/Main.java b/Main.java index 6d395ba..2e0367b 100644 --- a/Main.java +++ b/Main.java @@ -134,5 +134,34 @@ public class Main { } return result; - } + } + + public static LinkedList substractPolynomials(LinkedList p1, LinkedList p2){ + + LinkedList result = new LinkedList(); + LinkedList p2Copy = new LinkedList(); + + + for(int i=0; i1) { + result.removeLast(); + } + else break; + } + + return result; + } + } \ No newline at end of file