Sollicitatievraag bij Philips

Create class like BigInteger in java to solve addition problem between two very big strings.

Antwoord op sollicitatievraag

Anoniem

8 nov 2014

Question1: Implement a class like BigInt so that in constructor takes a very long digit. eg. 999999999999999999999999999999999999999999999 Now write a summation method in BigInt class which will return the result of adding two values e.g. BigInt a = 999999999999999999999999999999999999999999999 BigInt b = 888888888888888888888888888888888888888888888 BigInt r = BigInt.sum(a,b) and lastly print r.