filmov
tv
GFG-POTD | Add Binary Strings using Java | 29 Nov 2024 | String | Data Structures | Algorithms

Показать описание
Geeks-for-Geeks | Practice Problem | Problem Solution
29th November 2024
Problem : Add Binary Strings using Java
Level : Medium
Language : Java
Topics Tags : Strings | Data Structure
-----------------------------------------------------------------------------
⬇️ You may also visit my another playlists :
👉 LeetCode Problems :
👉 Code360 by coding ninja's mcq solution :
👉 Geeks-for-Geeks :
----------------------------------------------------------
➡️ Problem Statement :
Given two binary strings s1 and s2 consisting of only 0s and 1s. Find the resultant string after adding the two Binary Strings.
Note: The input strings may contain leading zeros but the output string should not have any leading zeros.
Input: s1 = "1101", s2 = "111"
Output: 10100
Explanation:
1101
+ 111
10100
Input: s1 = "00100", s2 = "010"
Output: 110
Explanation:
100
+ 10
110
-------------------------------------------------
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 | #AddBinaryStrings | #amazon | #facebook | #microsoft | #Strings | #todaygfgsolution
29th November 2024
Problem : Add Binary Strings using Java
Level : Medium
Language : Java
Topics Tags : Strings | Data Structure
-----------------------------------------------------------------------------
⬇️ You may also visit my another playlists :
👉 LeetCode Problems :
👉 Code360 by coding ninja's mcq solution :
👉 Geeks-for-Geeks :
----------------------------------------------------------
➡️ Problem Statement :
Given two binary strings s1 and s2 consisting of only 0s and 1s. Find the resultant string after adding the two Binary Strings.
Note: The input strings may contain leading zeros but the output string should not have any leading zeros.
Input: s1 = "1101", s2 = "111"
Output: 10100
Explanation:
1101
+ 111
10100
Input: s1 = "00100", s2 = "010"
Output: 110
Explanation:
100
+ 10
110
-------------------------------------------------
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 | #AddBinaryStrings | #amazon | #facebook | #microsoft | #Strings | #todaygfgsolution