Java: Multiply Large Numbers represented as Strings

Level : Intermediate
Mentor: Shailendra Chauhan
Type : GuidedLab
Points : 10
Duration : 00:25:00

Lab Details

Difficulty Level: HARD

Problem Statement:

You are given two positive integers but they are represented as Strings. You need to find the product of these two numbers. It can be assumed that the numbers are large and do not fit in a long int.

Input:

str1 = "4838191477"

str2 = "982293759"

Output:

4752525292704092043


Self-paced Membership
  • 22+ Courses
  • 750+ Hands-On Labs
  • 200+ Quick Notes
  • 55+ Skill Tests
  • 45+ Interview Q&A
  • 10+ Real-world Projects
  • Career Coaching
  • Email Support
Upto 66% OFF
KNOW MORE..

To get full access to all courses

Still have some questions? Let's discuss.
CONTACT US
Accept cookies & close this