Software Developer | IIT Bombay (B.Tech, 2021) github.com/laxmankumar12 Solving problems || Passionate about code,coffee & creationβ˜•πŸ’» 🍁

Mumbai
Day17 #Leetcode #100dayschallenge #100DaysOfCoding #365days Q:Maximum Swap You are given an integer num. You can swap two digits at most once to get the maximum valued number. Return the maximum valued number you can get.
13
2
319
19,669
πŸ“… Oct3 🍁 Day 64/100 ❄️ #LeetCode Q32. Longest Valid Parentheses
5
40
599
πŸ“… Oct2 🍁 Day 63/100 ❄️ #LeetCode Q22. Generate Parentheses
4
48
551
πŸ“… Oct1 🍁 Day 62/100 🌻 ❄️ #LeetCode Q20. Valid Parentheses
8
64
742
πŸ“… Sep30 🍁 Day 61/100 ❄️ #LeetCode Q1111. Maximum Nesting Depth of Two Valid Parentheses Strings
8
51
611
πŸ“… Sep29 🍁 Days 60/100 ❄️ #LeetCode Q1934. Confirmation Rate πŸ“NOTE: round(count(case when action='confirmed' then 1 else null end) / count(s.user_id), 2)
5
46
700
Today's LeetCode question is toooooo easy! πŸ˜„ Everyone should try it! πŸš€ πŸ“… Sep 28 🍁 Day 59/100 ❄️ #LeetCode Q1614 β€” Maximum Nesting Depth of the Parentheses
8
55
778
πŸ“… Sep27 🍁 Day 58/100 ❄️ #LeetCode Q1190. Reverse Substrings Between Each Pair of Parentheses
6
55
783
πŸ“… Sep26 🍁 Day 57/100 ❄️ #LeetCode Q1807. Evaluate the Bracket Pairs of a String
8
62
921
πŸ“… Sep25 🍁 Day 56/100 ❄️ #LeetCode Q3580. Find Consistently Improving Employees πŸ“NOTE: rank CTE β€” assigns ROW_NUMBER() per employee ordered by review_date DESC top_3 CTE β€” filters to rnk <= 3, Final filter: total_reviews >= 3
5
55
663
πŸ“… Sep -24 Today's LeetCode question is very easy! πŸ˜„ Everyone should give it a try. πŸš€ 🍁 Day 55/100 ❄️ #LeetCode Q3550. Smallest Index With Digit Sum Equal to Index Keep solving, keep learning, and stay consistent!
4
50
595
πŸ“… Sep-23 πŸπŸ™Œ Days -54/100 ❄️ #LeetCode Q1321. Restaurant Growth πŸ“NOTE: Self-join with a range condition: d2.visited_on BETWEEN d1.visited_on - INTERVAL '6 days' AND d1.visited_on β€” for each "anchor" date d1, this pulls in every d2 row whose date falls within the 7-day
5
1
59
709
πŸ“… Sep -22 🍁 Day 53/100 ❄️ #LeetCode Q176. Second Highest Salary πŸ“NOTE: DENSE_RANK() OVER (ORDER BY salary DESC) β€” assigns rank 1 to the highest salary(s), rank 2 to the next distinct salary value
6
66
841
πŸ“… Sep-21 🍁 Day 52/100 ❄️ #LeetCode Q626. Exchange Seats πŸ“NOTE: Even idβ†’id-1: swaps each even-numbered seat's id down by one, pairing it with odd seat before it. Odd id,and not the last seatβ†’id+1: swaps each odd seat's id up by one, pairing it with even seat after it.
3
48
684
πŸ“… Sep -20 🍁 Day 51/100 ❄️ #LeetCode Q3220. Odd and Even Transactions πŸ“NOTE: SUM(CASE WHEN amount % 2 <> 0 THEN amount ELSE 0 END) β€” sums only the odd SUM(CASE WHEN amount % 2 = 0 THEN amount ELSE 0 END) β€” sums only the even amounts.
6
58
656
Too EasyπŸ˜„ 🍁Today’s LeetCode question was super easy. Everyone should give it a tryπŸ’» However,in this solution, I created a hardcoded dictionary for the alphabet instead of using Python’s built-in ord() function Just trying a different approach to understand the logic better
6
65
922
πŸ“… Sep-19 🍁 Day 50/100 ❄️ 1401. Circle and Rectangle Overlapping πŸ“NOTE: Today’s LeetCode DSA Question min(xCenter, x2) caps xCenter so it never exceeds the rectangle's right edge.
4
1
47
655
πŸ“… Sep -18 🍁 Day 49/100 πŸ“NOTE: Keyword =SQL's predefined word Identifier =your database object's name PostgreSQL normally allows a maximum of 63 bytes for an identifier. PostgreSQL doesn't care about the capitalisation of unquoted keywords and identifiers. ❄️ #LeetCode
4
49
662
πŸ“… Sep -17 🍁 Day 48/100 ❄️ #LeetCode Q3564. Seasonal Sales Analysis
4
2
63
830
Shopkeeper: Total amount is 16000 Customer: Sure, doing UPI Shopkeeper: If you do, UPI, pay Rs 64 extra Customer: Why? This is wrong Shopkeeper: Government is charging that money. Not me Customer: I will do Cash payment then Government is killing UPI now, cash will be back.
47
1
71
8,614
πŸ“… Sep -16 🍁 Day 47/100 ❄️ #LeetCode Q1393. Capital Gain/Loss πŸ“NOTE: sum(price) filter(where operation='Sell') - sum(price) filter(where operation='Buy')
2
61
795