InternDoor

Groww interview prep

5 practice questions on the topics candidates reported from Groww interviews, with answers. The questions are ours; each one links to the interview report that names its topic.

Practise them as a timed round

DSA 1

  1. DSAMedium

    To find a peak (an element larger than its neighbours) by binary search, you compare a[mid] with a[mid + 1]. If a[mid] < a[mid + 1], what do you know?

    1. There is no peak
    2. A peak exists only to the left of mid
    3. mid is a peak
    4. A peak exists somewhere to the right of mid
    Show the answer

    D. A peak exists somewhere to the right of mid

    Walking right from mid, the values either keep rising until the end (the last element is a peak) or fall at some point (the element before the fall is a peak). Halving each time gives O(log n).

    This topic is named in a candidate’s interview report: SDE fresher interview, 2024, on Reddit.

Python 1

  1. PythonMedium

    What does this print?

    def ok(s, skip=True):
        i, j = 0, len(s) - 1
        while i < j:
            if s[i] != s[j]:
                if not skip:
                    return False
                return ok(s[i + 1:j + 1], False) or ok(s[i:j], False)
            i, j = i + 1, j - 1
        return True
    
    print(ok("abca"), ok("abc"))
    1. True True
    2. False False
    3. False True
    4. True False
    Show the answer

    D. True False

    "abca" fails at b and c; deleting the c leaves "aba", a palindrome. "abc" fails at a and c, and neither "bc" nor "ab" is a palindrome. At most one deletion keeps it O(n).

    This topic is named in a candidate’s interview report: SDE fresher interview, 2024, on Reddit.

DBMS and SQL 1

  1. DBMS and SQLEasy

    Which statement about SQL and NoSQL databases is most accurate?

    1. SQL databases cannot run on more than one machine
    2. NoSQL databases cannot store structured data
    3. SQL databases store tables with a fixed schema, joins and strong transactions; NoSQL databases (document, key-value, column, graph) trade some of that for flexible schemas and easy horizontal scaling
    4. NoSQL means the database has no query language
    Show the answer

    C. SQL databases store tables with a fixed schema, joins and strong transactions; NoSQL databases (document, key-value, column, graph) trade some of that for flexible schemas and easy horizontal scaling

    Choose SQL when data is relational and correctness across rows matters, as in payments. NoSQL suits flexible, very large or simple-lookup data, such as sessions in a key-value store.

    This topic is named in a candidate’s interview report: SDE fresher interview, 2024, on Reddit.

Web development 1

  1. Web developmentMedium

    How does Node.js serve many requests at once on a single JavaScript thread?

    1. It starts a new thread for every request
    2. It compiles JavaScript into separate processes
    3. It blocks on each request until it finishes
    4. An event loop runs callbacks while I/O such as disk and network is done asynchronously by the operating system and libuv's thread pool
    Show the answer

    D. An event loop runs callbacks while I/O such as disk and network is done asynchronously by the operating system and libuv's thread pool

    Waiting on I/O does not tie up the thread, so thousands of connections can be open. A long CPU-bound task does block the loop, which is why heavy work goes to worker threads.

    This topic is named in a candidate’s interview report: SDE fresher interview, 2024, on Reddit.

Machine learning 1

  1. Machine learningMedium

    What does a support vector machine choose when separating two classes?

    1. The boundary that passes through the class means
    2. The boundary that touches the most points
    3. The boundary with the largest margin to the nearest training points of each class, the support vectors
    4. A random separating line
    Show the answer

    C. The boundary with the largest margin to the nearest training points of each class, the support vectors

    Maximising the margin tends to generalise well. Kernels such as RBF let an SVM draw non-linear boundaries by working as if in a higher-dimensional space.

    This topic is named in a candidate’s interview report: SDE fresher interview, 2024, on Reddit.

Prep for other employers

All employers
See who is hiring after Groww

Engineering internships and entry-level jobs in India, newest first.