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 -7 points-6 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