menu
Nandigam
Daily 1 leetcode problem Star this Commitment
Day 24 of 42

Nandigam commits to:
Daily 1 leetcode problem from takeuforward
22
0
Report Now
A user report is currently expected for this period.
Details
My Commitment Journal
Nandigam
Nandigam
February 14, 2026, 2:57 AM
palindrome check
Nandigam
Nandigam
February 13, 2026, 3:55 AM
Longest Consecutive Sequence..class Solution {
public int longestConsecutive(int nums) {
// 1. Build set
// 2. For each number:
// if it's a starter(does not contain predecessor)
// expand forward
// 3. Track max length
HashSet<Integer> set = new HashSet<>();
for( int i=0; i< nums.length; i++) {
set.add(numsi);
}
int count=0;
int maxCount=0;

for(int num: set) {
count=1;
if(!set.contains(num-1)) {
int next= num+1;
while(set.contains(next)) {
count++;
next++;
}
if(count>maxCount) {
maxCount =count;
}
}
}
return maxCount;
}
}
Nandigam
Nandigam
February 12, 2026, 2:35 AM
Done the pattern
Nandigam
Nandigam
February 11, 2026, 3:07 AM
patterns
    This Commitment has no photos.
Displaying 1-4 of 22 results.
February 12
Successful
Success
February 11
Successful
Success
February 10
Successful
Success

Nandigam
Nandigam
- Committed user success report
Nandigam
Nandigam
- Committed user success report
Done the pattern
February 9
Successful
Success
Recipient of Stakes
Charity
To change the Recipient of Stakes for your Daily 1 leetcode problem Commitment, enter their email address or stickK username below.
Total at stake: $210.00
Stakes per period: $5.00
Remaining Stakes: $100.00
Total Money Lost: $0.00
Referee
Supporters
This Commitment doesn't have any Supporters yet!
.
Your feedback has been sent. Thank you!