leetcode-patterns icon indicating copy to clipboard operation
leetcode-patterns copied to clipboard

Companies question frequency count mismatch

Open vrajeshkanna opened this issue 7 months ago • 4 comments

e.g. https://leetcode.com/problems/contains-duplicate/description/

Original

Image

Site

Image

vrajeshkanna avatar May 30 '25 17:05 vrajeshkanna

This is expected as the list is pulled every Sunday. Please hover over the "?" tooltip to view the last time the company list was pulled for the respective question:

Image

seanprashad avatar May 30 '25 22:05 seanprashad

Upon closer inspection, the company count for each question is off - will have to investigate

seanprashad avatar May 30 '25 22:05 seanprashad

For some reason, the Leetcode GraphQL API is returning a different dataset that what is shown in Leetcode's web UI:

Image

vs.

{
    "1": [
        {
            "taggedByAdmin": "False",
            "name": "Google",
            "slug": "google",
            "timesEncountered": 9
        },
        {
            "taggedByAdmin": "False",
            "name": "Bloomberg",
            "slug": "bloomberg",
            "timesEncountered": 6
        },
        {
            "taggedByAdmin": "False",
            "name": "Amazon",
            "slug": "amazon",
            "timesEncountered": 6
        },
        {
            "taggedByAdmin": "False",
            "name": "Meta",
            "slug": "facebook",
            "timesEncountered": 4
        },
        {
            "taggedByAdmin": "False",
            "name": "tcs",
            "slug": "tcs",
            "timesEncountered": 2
        }
    ],
    "2": [
        {
            "taggedByAdmin": "False",
            "name": "Microsoft",
            "slug": "microsoft",
            "timesEncountered": 7
        },
        {
            "taggedByAdmin": "False",
            "name": "Oracle",
            "slug": "oracle",
            "timesEncountered": 3
        }
    ],
    "3": [
        {
            "taggedByAdmin": "False",
            "name": "Apple",
            "slug": "apple",
            "timesEncountered": 15
        },
        {
            "taggedByAdmin": "False",
            "name": "Uber",
            "slug": "uber",
            "timesEncountered": 5
        },
        {
            "taggedByAdmin": "False",
            "name": "Adobe",
            "slug": "adobe",
            "timesEncountered": 4
        },
        {
            "taggedByAdmin": "True",
            "name": "Yahoo",
            "slug": "yahoo",
            "timesEncountered": 3
        },
        {
            "taggedByAdmin": "False",
            "name": "Nagarro",
            "slug": "nagarro",
            "timesEncountered": 2
        },
        {
            "taggedByAdmin": "False",
            "name": "Nvidia",
            "slug": "nvidia",
            "timesEncountered": 2
        },
        {
            "taggedByAdmin": "False",
            "name": "ZScaler",
            "slug": "zscaler",
            "timesEncountered": 2
        },
        {
            "taggedByAdmin": "True",
            "name": "Airbnb",
            "slug": "airbnb",
            "timesEncountered": 0
        },
        {
            "taggedByAdmin": "True",
            "name": "Palantir Technologies",
            "slug": "palantir-technologies",
            "timesEncountered": 0
        }
    ]
}

seanprashad avatar May 30 '25 23:05 seanprashad

Opened https://github.com/fspv/python-leetcode/issues/24

seanprashad avatar May 30 '25 23:05 seanprashad