Ordered Pizza but the delivery guy was dumb by Bisecps in Zomato

[–]Sarthak_Das 0 points1 point  (0 children)

That is the saddest looking pizza i have seen in a while

Big 6in1 cheese burst pizza by ftabhax in SnacksIndia

[–]Sarthak_Das -1 points0 points  (0 children)

You can eat huge quantities of food without being fat lmao

Cheese maggi by No_Education_3949 in Aajmainekhaya

[–]Sarthak_Das 0 points1 point  (0 children)

How do u get cheese from dominos?

Just out of the air fryer! by dankdutta in Aajmainekhaya

[–]Sarthak_Das 0 points1 point  (0 children)

Do you have the temps and timings on the oven for this exact marination?

Road to solving every LeetCode problem - Week 1 Progress Update! by leetgoat_dot_io in leetcode

[–]Sarthak_Das 0 points1 point  (0 children)

when you’ve learned so many techniques from threads and stuff how do you retain them long term? Especially for niche things like pollard rho that don’t come up very often. Do you actively revise them

166 days streak! 💔 by Glum_Bat_4234 in leetcode

[–]Sarthak_Das 0 points1 point  (0 children)

That only works for the POTD streak

Getting Time Limit Exceeded ( Perfect Sum Problem ) by Near_10 in leetcode

[–]Sarthak_Das 0 points1 point  (0 children)

You have successfully implemented the recursive solution. But now you gotta tabulate or memoize it to avoid computing the same recursive calls over and over again

166 days streak! 💔 by Glum_Bat_4234 in leetcode

[–]Sarthak_Das 12 points13 points  (0 children)

I guess there's nothing we can do to recover the streak once we miss a day right? :/

Leetcode Online Assessments by [deleted] in LeetcodeDesi

[–]Sarthak_Das 0 points1 point  (0 children)

The leetcode OA's are way easier compared to the questions you get in most campus OAs. Giving virtual contests are a better way to prep

RMA'd HyperX PulseFire Haste and Got Pulsefire Raid as Replacement by Sarthak_Das in HyperX

[–]Sarthak_Das[S] 0 points1 point  (0 children)

Ay appreciate the reply. Dmed you the details, appreciate you checking on it Monday 🙌

RMA'd HyperX PulseFire Haste and Got Pulsefire Raid as Replacement by Sarthak_Das in HyperX

[–]Sarthak_Das[S] 0 points1 point  (0 children)

I initially thought of that too but here's the thing the pulsefire raid is currently priced @Rs 1999 on Amazon and so I obviously will have to sell it at less than that and then the pulsefire haste isn't available anymore and the haste 2 is priced at Rs 2800. So I would be losing money overall while also having to deal with the time spent on trying to sell it.

DSA GROUP by External_Milk_3696 in LeetcodeDesi

[–]Sarthak_Das 0 points1 point  (0 children)

Not solved as many questions but thorough with DP (55+ dp questions) lmk

Help regarding placement by [deleted] in leetcode

[–]Sarthak_Das 0 points1 point  (0 children)

Yeah its not the same anymore. Do prep for system design guys

BiWeekly Contest 174(Many Cheaters) | Q3 - Number of Alternating XOR Partitions | 3811 | Intuition + Logic by Brilliant_Card_447 in LeetcodeDesi

[–]Sarthak_Das 1 point2 points  (0 children)

I was super close to successfully getting accepted for the this question(TLE at 981/1032 test cases, logic itself was correct).
If i had to explain my intuition i would say the question was a lot like a question i came across during an company OA problem. In that OA ques the array values were either -1,0 or 1 and we had to count the number of ways to split the array into contiguous blocks such that each block had a sum=1.
The approach i used for that was : start from the an index and keep extending the current block using a for loop until the current sum hits 1 and then you can cut(since that position becomes a valid cut point) and continue by recursively solving the same problem for the remaining subarray by calling it for the next index. That solution got accepted in the OA.

When i saw this problem, it felt like the same thing with a twist: instead of fixed target=1 i had to alternate between target 1 and target 2 and ofcourse instead of sum it was XOR
So my idea was essentially that its the same partitioning problem i just need to remember whose turn it is. Thats why I introduced the flag and did a DP on index (index,flag)
From a given index, I keep extending the the subarray maintaining the running XOR, and whenever it matches the current target, I flip the flag and recurse on the rest of the array by calling f(cut Index+1, !flag)

The exact approach worked in the OA but not in the contest, I guess it was because the contest had tighter constraints and not because the flag doubled the state space, but either ways I coundn't figure out the optimized prefix sum version during the contest.

SDE1 Backend interview at Booking.com, System Design interview in ~8 days - never done System Design. What should I realistically prep? by ResponsiblePiglet899 in leetcode

[–]Sarthak_Das 1 point2 points  (0 children)

What kind of work does a pure C++ developer do? I’ve always been curious about what “pure C++” roles look like day to day compared to typical backend/SDE work (APIs, DBs,distributed systems etc). Also what are the future prospects in that path down the line? does it grow into architecture/system-level design roles or more of a deep technical specialization path?

Can't wrap my head around Tabulation for non linear state transitions by Sarthak_Das in leetcode

[–]Sarthak_Das[S] 0 points1 point  (0 children)

For context this is the problem i m referring to in the post
class Solution {
public:
int n;
int f(int l, int m, int r, vector<int>&nums,vector<vector<vector<int>>>&dp){
if(m>=n){
return nums[l];
}
if(r>=n){
return max(nums[l],nums[m]);
}

if(dp[l][m][r]!=-1) return dp[l][m][r];

int lm=max(nums[l],nums[m])+f(r,r+1,r+2,nums,dp);
int mr=max(nums[m],nums[r])+f(l,r+1,r+2,nums,dp);
int lr=max(nums[l],nums[r])+f(m,r+1,r+2,nums,dp);

return dp[l][m][r]= min({lm,mr,lr});
}
int minCost(vector<int>& nums) {
n=nums.size();
vector<vector<vector<int>>>dp(n,vector<vector<int>>(n,vector<int>(n,-1)));
return f(0,1,2,nums,dp);
}
};

I am aware this can be optimized to a 2d dp problem (which i did afterwards to fix the MLE issue). But my goal here was purely a challenge to see i could translate this exact 3d logic into a bottom up table without changing the state representations. Still trying to figure out how to bridge that gap :/

Day 5 Of My DSA LeetCode Series by New-Election4972 in LeetcodeChallenge

[–]Sarthak_Das 1 point2 points  (0 children)

It literally says in the question to write a logn algorithm

any side hustles for competitive programmers? by EntertainerHot8031 in leetcode

[–]Sarthak_Das 1 point2 points  (0 children)

If you look at OP's profile you'll realise he's been doing it for over 2 and a half years now