How to add two large numbers - Live coding - Intuition |Solution Explained in Java

preview_player
Показать описание
#addtwolargenumbers #leetcodequestions #codinginterviewquestions #stringsinjava
Given two strings denoting non-negative numbers, X and Y. Calculate the sum of X and Y.

Example 1:

Input:
X = "25", Y = "23"
Output:
48
Explanation:
The sum of 25 and 23 is 48.

Practice links:

Other playlists in the channel that you can follow:

---------------------------------------------------------
Please click the LIKE button so that this kind of content can be seen by as many as possible aspiring engineers and professionals. Doing so gives me even more motivation to post such content in the future.
Please comment below and let me know if you have any questions or concerns.

Additionally, don't forget to click the bell symbol to receive notifications and subscribe to the channel.
Follow us on:
----------------------------------------------------------
Created and Instructed by:
Varsha Das
Mid-senior Software Engineer, Content Curator of @Code With Ease
Follow her on:

Code With Ease is meant to make problem-solving in programming easier. For DSA preparation, we post topic-specific videos pertaining to Coding Interview topics so that everyone may approach such questions with a clear thought process and achieve the best outcomes. In addition, we make an effort to include different "Primer Series" that teach particular concepts or algorithms. We want to be the one-stop solution for everything pertaining to DSA preparation and programming foundations in general, saving candidates from having to visit many sources in order to receive structured content.
Additionally, we believe that learning to code entails much more than only "cracking the coding interview." The long-term goal of this channel is to create more proficient problem-solvers in this field so that, in the end, we can create fantastic products and be able to resolve challenging issues in our environment to improve the quality of life for everyone.

sum of two large numbers in java
given two strings denoting non-negative numbers x and y. calculate the sum of x and y.
sum of two large numbers in c++
sum of two large numbers
add binary strings
Рекомендации по теме
Комментарии
Автор

Thank you! I looked through a lot of tutorials to find the explanation for a similar solution for dealing with large integer factorials and none of them point out the origin of the solution in the simple, by-hand addition of two multi-digit numbers.

emkay
Автор

one thing to ask unitx = charAt(i) then it is clear that unitx will save the assci value of char at that no

gaganbaghel
Автор

so how the other operations are performed in it

gaganbaghel