filmov
tv
Multiply two linked lists using Java | GFG | 01 Oct 2024 | Linked List | Data Structure | Algorithm
![preview_player](https://i.ytimg.com/vi/iq9E9NzkHFg/maxresdefault.jpg)
Показать описание
Geeks-for-Geeks | Practice Problem | Problem Solution
01th October 2024
Problem : Multiply two linked list using Java
Level : Easy
Language : Java
Topics Tags :Linked List | Algorithms | Data Structure
-----------------------------------------------------------------------------
⬇️ You may also visit my another playlists :
👉 LeetCode Problems :
👉 Code360 by coding ninja's mcq solution :
👉 Geeks-for-Geeks :
----------------------------------------------------------
➡️ Problem Statement :
Given elements as nodes of the two singly linked lists. The task is to multiply these two linked lists, say L1 and L2.
Note: The output could be large take modulo 10^9+7.
Examples :
Input: LinkedList L1 : 3-2 , LinkedList L2 : 2
Output: 64
Explanation:
Multiplication of 32 and 2 gives 64.
Input: LinkedList L1: 1-0-0 , LinkedList L2 : 1-0
Output: 1000
Explanation:
Multiplication of 100 and 10 gives 1000.
Expected Time Complexity: O(max(n,m))
Expected Auxilliary Space: O(1)
where n is the size of L1 and m is the size of L2
--------------------------------------------------------
Stay connected with me on social media for more updates and behind-the-scenes content !
You can find me on 🔍:
📱 Instagram Profile :
🌐 LinkedIn Profile :
--------------------------------------------------------------
🔔 If you enjoyed the content, please subscribe to the channel for more updates! 📺
👍 If you found this video helpful, don't forget to give it a thumbs up and share it with your friends! 📤
🙏 Thank you for watching the video! 😊
----------------------------------------------------------------
#gfgproblemoftheday | #gfgsolution | #gfgproblems | #multiplytwolinkedlistsusingjava | #multiplytwolinkedlistssolution | #multiplytwolinkedlistsgfgsolution
01th October 2024
Problem : Multiply two linked list using Java
Level : Easy
Language : Java
Topics Tags :Linked List | Algorithms | Data Structure
-----------------------------------------------------------------------------
⬇️ You may also visit my another playlists :
👉 LeetCode Problems :
👉 Code360 by coding ninja's mcq solution :
👉 Geeks-for-Geeks :
----------------------------------------------------------
➡️ Problem Statement :
Given elements as nodes of the two singly linked lists. The task is to multiply these two linked lists, say L1 and L2.
Note: The output could be large take modulo 10^9+7.
Examples :
Input: LinkedList L1 : 3-2 , LinkedList L2 : 2
Output: 64
Explanation:
Multiplication of 32 and 2 gives 64.
Input: LinkedList L1: 1-0-0 , LinkedList L2 : 1-0
Output: 1000
Explanation:
Multiplication of 100 and 10 gives 1000.
Expected Time Complexity: O(max(n,m))
Expected Auxilliary Space: O(1)
where n is the size of L1 and m is the size of L2
--------------------------------------------------------
Stay connected with me on social media for more updates and behind-the-scenes content !
You can find me on 🔍:
📱 Instagram Profile :
🌐 LinkedIn Profile :
--------------------------------------------------------------
🔔 If you enjoyed the content, please subscribe to the channel for more updates! 📺
👍 If you found this video helpful, don't forget to give it a thumbs up and share it with your friends! 📤
🙏 Thank you for watching the video! 😊
----------------------------------------------------------------
#gfgproblemoftheday | #gfgsolution | #gfgproblems | #multiplytwolinkedlistsusingjava | #multiplytwolinkedlistssolution | #multiplytwolinkedlistsgfgsolution