2026 May 30 Problems

28 views
Skip to first unread message

daryl...@gmail.com

unread,
May 30, 2026, 12:39:17 PMMay 30
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.




We will have a different Zoom meeting that Bhupathi is providing this 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

Anuj Patnaik

unread,
May 30, 2026, 2:32:17 PMMay 30
to leetcode-meetup
class Solution:
def getDescentPeriods(self, prices: List[int]) -> int:
final_answer = 1
curr_count = 1
for i in range(1, len(prices)):
if prices[i - 1] - prices[i] == 1:
curr_count += 1
else:
curr_count = 1
final_answer += curr_count
return final_answer
Reply all
Reply to author
Forward
0 new messages