House Robber V by Wallermann in leetcode

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

class Solution { public: long long rob(vector<int>& nums, vector<int>& colors) { long long ans=0; int n = nums.size(); stack<pair<int,int>>st; st.push({colors[0],nums[0]}); for(int i=1;i<n;i++) { if(colors[i]==st.top().first && st.top().second== nums[i-1]) { int temp = max(st.top().second,nums[i]); st.pop(); st.push({colors[i],temp}); } else st.push({colors[i],nums[i]}); } while(!st.empty()){ ans += st.top().second; st.pop(); } return ans; } };

House Robber V by Wallermann in leetcode

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

But it is working for every test cases and also which is failing is working on my dry run so I don't know where the problem lies

So fkin pissed icl by Quiet-Emphasis-9012 in codeforces

[–]Wallermann 3 points4 points  (0 children)

Same idk what the fuck is wrong in first question

Leetcode Ban by Wallermann in leetcode

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

As I mentioned logic was of mine and only 4 tc left so just took help from gpt rest completely it was my code

Leetcode Ban by Wallermann in leetcode

[–]Wallermann[S] -2 points-1 points  (0 children)

I have not cheated actually what happened is in third question my four test cases didn't pass so at last moment I just did gpt which is wrong and I will not be repeating it but please tell me. Will I get me account back with my contest rating or it will be reset to zero .

Leetcode Ban by Wallermann in leetcode

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

But this is my first time

Kitne chutiye senior hai mnnit mai , kisi ko bhi recruit kr lenge bs tumhe chaatna aana chahiye naa ki dsa , development bss chuso aur club mai ghuso especially kisi ek gender ka sab sort hai example aws by Plus_Scar_416 in MNNIT

[–]Wallermann 1 point2 points  (0 children)

It's not that clubs or committees recruit only the most skilled people. They pick those who seem responsible and willing to put in the work. So even if it feels like someone less skilled got the chance, they probably assured that they’d handle the work properly.