LeetCode: 43. Multiply Strings (Visualized)

preview_player
Показать описание
In this video I explain and show you how to code the solution for the LeetCode: 43. Multiply Strings problem in Javascript in the easiest way possible and while getting an optimal time complexity, I fully explain each step and each part of the code, trace and visualize the algorithm to make sure you fully understand how to solve this leetcode problem.

lets code it together.

Time Stamps🕒:
00:00 Reading the Question
01:27 Explanation & Visualization
08:18 Code

#leetcode #coding #programming
Рекомендации по теме
Комментарии
Автор

Interesting, could you have started the loop form the end ? like :

for (let i = num1.length; i > num1.length; i--)
edit : for (let i = string.length - 1; i >= 0; i--) is more correct :)

that would have saved the .split().reverse().join() I think

vincentlemoinefr