2026 August 1 Problems

31 views
Skip to first unread message

daryl...@gmail.com

unread,
Aug 1, 2026, 12:54:52 PM (11 days ago) Aug 1
to leetcode-meetup
Feel free to work on any of the problems you want; we'll have people present their solutions at 11:30.

Please post your solutions to this thread so others can use this as a reference.


First Hard problem carried over from last week:


Here is the meeting url:

Full details:

Topic: Leet Code meeting
Time: Mar 28, 2026 10:00 AM Pacific Time (US and Canada)
        Every week on Sat, 110 occurrence(s)
Please download and import the following iCalendar (.ics) files to your calendar system.
Weekly: https://us05web.zoom.us/meeting/tZYocuqgqzMuH9IuHUphHIiZ_4T4IndJLToX/ics?icsToken=DJFc88pL6-me_TneLwAALAAAAA70ShjYgLH6RfEnqUm5LK03v2OgtbXujwlKXRMVgIVWCY9aONPJMCycMlkhyPZ3XSrMVVgXDSYlGF_r7DAwMDAwMQ&meetingMasterEventId=MGJmt5lJTd6mPygcS0hiAQ
Join Zoom Meeting
https://us05web.zoom.us/j/82553858456?pwd=fnK5Vb0CcfFpv0lnouILjeEs2z2Khc.1

Meeting ID: 825 5385 8456
Passcode: 182596

Bhupathi Kakarlapudi

unread,
Aug 1, 2026, 2:01:50 PM (11 days ago) Aug 1
to leetcod...@googlegroups.com
class Solution:
def balancedStringSplit(self, s: str) -> int:
balance:int = 0
num_of_balance_strings:int = 0
for ch in s:
if ch == 'L':
balance += 1
else:
balance -= 1

if balance == 0:
num_of_balance_strings += 1

return num_of_balance_strings

--
whatspp group: http://whatsapp.techbayarea.us/
---
You received this message because you are subscribed to the Google Groups "leetcode-meetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leetcode-meet...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/leetcode-meetup/c2a75692-7abb-4c68-b85e-8b8b6d431ce4n%40googlegroups.com.
Message has been deleted

Allen S.

unread,
Aug 3, 2026, 12:06:13 AM (9 days ago) Aug 3
to leetcode-meetup
func balancedStringSplit(s string) int {
res := 0
b := 0
for _, v := range s {
if v == 'R' {
b++
} else {
b--
}
if b == 0 {
res++
}
}
return res
}
Reply all
Reply to author
Forward
0 new messages