Given a binary string, count number of substrings that start and end with 1 (Binary String) | Java

  Рет қаралды 3,400

Prepare Yourself

Prepare Yourself

3 жыл бұрын

Given a binary string S. The task is to count the number of substrings that start and end with 1. For example, if the input string is “00100101”, then there are three substrings “1001”, “100101” and “101”.
#datastructure,
#algorithem,
#computerscience
#prepareyourself
#java
#array
#geeksforgeekssolution
#leetcodesolution
#arraysolutioninhindi
#datastructureinhindi

Пікірлер: 6
@amanmotghare7196
@amanmotghare7196 Жыл бұрын
good explaination
@ahn360
@ahn360 Жыл бұрын
Nice Explanation
@A_CupOf_Life
@A_CupOf_Life 2 жыл бұрын
👍👍👍 great
@rekhakalasare4910
@rekhakalasare4910 Жыл бұрын
Great explanation! But how did you frame this formula? Cant we directly return countofOne variable?
@bhaveshmadnani8646
@bhaveshmadnani8646 2 жыл бұрын
Niceee i love it❤👍👍👍
@prepareyourself7992
@prepareyourself7992 Жыл бұрын
thanks, glad you like it.
Find if one string is a rotation of another string
9:19
Techdose
Рет қаралды 49 М.
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 22 МЛН
Count Binary Substrings | Live Coding with Explanation | Leetcode - 696
7:28
Algorithms Made Easy
Рет қаралды 21 М.
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 254 М.
Check Two Strings are Anagram Or Not using Sort and Equals in Java
11:10
Naveen AutomationLabs
Рет қаралды 25 М.
Git Tutorial For Dummies
19:25
Nick White
Рет қаралды 1 МЛН
1. Anagrams | Strings | Multiple methods with Optimisations & Code! New Series! ❤️🚀💪
14:26
Code From Scratch - Keerti Purswani
Рет қаралды 4,1 М.