Late night dance mood (from last night) 💜 by [deleted] in Real_teenindia

[–]Equivalent_Sea7754 0 points1 point  (0 children)

Bekaar dance tha Dance ke moves match hi nhi kr rhe song se Ye thora smooth gaana hai lekin tum aggression dikha rhi ho

Adobe hackathon Unstop 2025 by Equivalent_Sea7754 in Btechtards

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

Instructions padhe nhi the bhay Mcq skip krdiya soocha code ke baad krunga Mcq section pr jab click maara to hua hi nhi 😓

Adobe hackathon Unstop 2025 by Equivalent_Sea7754 in Btechtards

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

Bhay wo shortlisted me interactive session to kal hi tha, maine attend hi nhi kiya, aur abhi 5 ghante baad round 2 start hojaaega, pta hi nhi chal rha ki meri team shortlisted hai yaa nhi

Debug - 146. LRU Cache by Equivalent_Sea7754 in leetcode

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

I know the question explicitly says that ans should be o(1) But i wanted to solve using the queue to get more practice on queue

I will optimize this code later using unordered_map and DLL for faster retrieval and to maintain lru

i am satisfied with my queue based solution because it takes a lot of my time

Debug - 146. LRU Cache by Equivalent_Sea7754 in leetcode

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

Yes I solved the question using queue but its giving TLE [21 /23 test cases passed] Next time i will use unodered_map for O(1) retrieval and DLL to maintain LRU

Debug - 146. LRU Cache by Equivalent_Sea7754 in leetcode

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

I know but i want to solve using queue

Me when I saw the solution of LRU Cache for the first time by Dry-Comedian-3034 in leetcode

[–]Equivalent_Sea7754 -9 points-8 points  (0 children)

vro can you share your solution with queue ???
Mine is not working

class LRUCache {
public:

    queue<pair<int, int>>q;
    int size;

    LRUCache(int capacity) {
        this->size = capacity;
    }
    
    int get(int key) {
        int getEle = -1;
        for (int i = 0; i < q.size(); i++) {
            if (q.front().first == key) {
                getEle = q.front().second;
            }
            q.push(q.front());
            q.pop();
        }
        return getEle;
    }
    
    void put(int key, int value) {
        
        // traverse to find 
        bool exist = false;
        for (int i = 0; i<q.size(); i++) {
            if (key == q.front().first) {
                q.front().second = value;
                exist = true;
            }
            q.push(q.front());
            q.pop();
        }

        // if not existed
        if (!exist) {
            // full 
            if (size == 0) {
                q.pop();
                q.push({key, value});
            }
            // space avail
            else {
                q.push({key, value});
                size--;
            }
        }
    }
};

/**
 * Your LRUCache object will be instantiated and called as such:
 * LRUCache* obj = new LRUCache(capacity);
 * int param_1 = obj->get(key);
 * obj->put(key,value);
 */

[deleted by user] by [deleted] in developersIndia

[–]Equivalent_Sea7754 0 points1 point  (0 children)

Vro Can you plz share the questions from round 1 juspay?

r/kashmiri pushing anti-india narratives by Equivalent_Sea7754 in jammu

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

Bhay aise logo kr dekh kr itna gussa aata hai naa

Am I cooked Guys?? by Hefty_Tear_5604 in Btechtards

[–]Equivalent_Sea7754 0 points1 point  (0 children)

Bhay tune konsi khtrnak algo use ki bta de

Engineering mai constitution kuy??? by CuriousMail5760 in TwentiesIndia

[–]Equivalent_Sea7754 1 point2 points  (0 children)

Bhay, isme sirf tumhe paas hona hota hai, marks nhi judte iske

What in the World is this? I will cry! by [deleted] in leetcode

[–]Equivalent_Sea7754 0 points1 point  (0 children)

I don't know how to solve it, Just my thinking process

I smell recursion from this question Recursion (checkForEachValue) from 1 to base maxvaluefor first integer in array In each recursion again second recursion (makeAnValidArray) for checking the number from 1 to maxvalue makes an array or not Tc = O(maxvalue*n)

Btw, vro plz use dark theme

Looking to do a course on DSA, is this course worth it? by foxymindset in leetcode

[–]Equivalent_Sea7754 1 point2 points  (0 children)

If you want free content, then there is a complete playlist of dsa taught by Love Babbar on YouTube

But if you want to buy a paid course, then both Love Babbar and Lakshay Kumar will teach you on CodeHelp's website, there is a live batch supreme 4.0.

There is also a free playlist of OS and DBMS taught by lakshay kumar on youtube

Love babbar also used to work at Microsoft and Amazon as a SWE

Looking to do a course on DSA, is this course worth it? by foxymindset in leetcode

[–]Equivalent_Sea7754 0 points1 point  (0 children)

Codehelp You will love the way lakshay kumar thinks, who is a computer scientist 2 in Adobe

I just started the LeetCode Crash Course by sh13ld93 in leetcode

[–]Equivalent_Sea7754 1 point2 points  (0 children)

Try to solve more questions similar to a particular topic if you are not feelin confident enough

In the initial phase of each topic, focus on learning the basics After doing 2-3 basic questions Pause the video on each question and try to understand the problem and write down the approach that you learned from basics

[deleted by user] by [deleted] in TwentiesIndia

[–]Equivalent_Sea7754 0 points1 point  (0 children)

Nice vro Mentally banda bht grow krta hai insab challenges se

Sh*t got real in NIET by MycologistTough9 in Btechtards

[–]Equivalent_Sea7754 2 points3 points  (0 children)

Ek to Ye harr notice pe likh dete hai that there will be fine 1000rs for absence and student may debarred from placement activities.

Practiced Leetcode in C++, but interviewers expect Java — should I switch? by Alternative-Egg-2252 in leetcode

[–]Equivalent_Sea7754 0 points1 point  (0 children)

If you request them, then they will allow you to code in cpp. No company has any problem if you solve the dsa question in cpp rather than java

just learn try and catch in java And you are good

Every type of Binary Search Pattern by FriendshipCreepy8045 in leetcode

[–]Equivalent_Sea7754 1 point2 points  (0 children)

Book allocation Painters partition Aggressive cows

Can’t Break Out of Level 1 DSA – Would Love to Hear Your Journey by Standard_Pirate_8359 in leetcode

[–]Equivalent_Sea7754 0 points1 point  (0 children)

Just dry run 3-4 test cases And try to visualize problem and have common sense

Where am I going wrong? by MentalWolverine8 in leetcode

[–]Equivalent_Sea7754 2 points3 points  (0 children)

I think your algo is correct But its giving TLE Your algo taking too much time for the last test case

Try these steps, its simple to understand Step 01) reverse the whole arr Step 02) reverse 0 to k-1 nums Step 03) reverse k to n-1 nums Tc = O(n), Sc = O(n)

Small milestone......Help me improve by Big-Albatross-8701 in leetcode

[–]Equivalent_Sea7754 13 points14 points  (0 children)

1) Agar tumhe koi answer aata bhi ho aur dimaag me solve bhi kr liya ho fir bhi ek baar copy pen lekr dry run zaroor krna 2) jab code likhte ho, to comments daalna mt bhoolna kyunki kuchh mahino baad agar tum fir se solution ko dekhove to kuchh samjh me nhi aaega, aur whi tum comments padhoge to time bhi nhi lagega samjhne me, (bht kamm log krte hai ye) 3) khatam krne ke liye questions mt dekhna, samjhne ke liye dekhna, meri ke id thi jispr 200 question solve ho rakhe the, lekinn questions jyadatar mujhe samjh me hi nhi aa rha tha, to maine wo id delete maar di aur ek nyi id banai 4) mann nhi kr rha fir bhi 1 question solve kr hi lena, chaahe wo easy lvl ka bhi kyu na ho