16 questions · from 1 interviews

Mykaarma interview questions

Every question candidates reported from their Mykaarma interviews, most frequently asked first. Each links to the write-up it came from, so you can see the round and how it went.

Mykaarma coding and DSA questions

  1. 01

    House Robber

    Given an array representing the amount of money in each house, determine the maximum amount of money you can rob tonight without alerting the police. The constraint is that if you rob two adjacent houses, the police will be alerted.

    Medium · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

  2. 02

    Find K Closest Elements

    Given a sorted integer array arr, two integers k and x, return the k closest integers to x in the array. The result should also be sorted in ascending order. If two integers have the same difference, the smaller integer has priority.

    Medium · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

  3. 03

    Find Smallest Number with Sum of Digits N

    Given an integer N, find the smallest positive integer whose sum of digits is equal to N.

    Medium · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

  4. 04

    Generate Parentheses

    Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.

    Medium · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

  5. 05

    Product of Array Except Self

    Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i]. The product of any prefix or suffix of nums is guaranteed to fit in a 32-bit integer. You must write an algorithm that…

    Medium · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

  6. 06

    Kth Smallest Element in a BST

    Given the root of a binary search tree, and an integer k, return the kth smallest value (1-indexed) of all the values in the nodes of the tree.

    Medium · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

  7. 07

    Number of Solutions for x + y + z = n

    Determine the number of non-negative integer solutions for the equation x + y + z = n, where x, y, z, and n are integers.

    Medium · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

  8. 08

    Implement Merge Sort

    Explain the Merge Sort algorithm and write its code, detailing its divide-and-conquer approach.

    Medium · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

  9. 09

    Explain BFS and DFS

    Explain the Breadth-First Search (BFS) and Depth-First Search (DFS) graph traversal algorithms, including their principles, use cases, and differences.

    Easy · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

  10. 10

    Explain Backtracking

    Explain the concept of backtracking, a general algorithmic technique for solving computational problems by trying to build a solution incrementally, one piece at a time, removing those solutions that fail to satisfy the constraints of the problem at any point…

    Medium · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

  11. 11

    Check if String is Palindrome

    Write code to determine whether a given string is a palindrome (reads the same forwards and backward, ignoring case and non-alphanumeric characters usually, or in its simplest form, character by character).

    Easy · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

Mykaarma other questions

  1. 01

    Shopkeeper and Fake Note Puzzle

    A shopkeeper sold goods worth Rs. 200 to a lady. The lady gave him a Rs. 1000 note. The shopkeeper didn't have change, so he went to a neighbor, got change for Rs. 1000, gave Rs. 800 back to the lady, and kept Rs. 200 for himself. Later, the neighbor…

    Medium · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

  2. 02

    Find Ages of Daughters Puzzle

    A man meets a friend. 'I have three daughters,' says the friend. 'The product of their ages is 36. The sum of their ages is the same as the number of my house.' The man rushes to the door, examines the number, and returns. 'I need more information,' he…

    Medium · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

  3. 03

    Maximize Probability of White Ball Puzzle

    Given two identical urns. One urn contains 2 white balls and 2 black balls, and the other urn contains 1 white ball and 3 black balls. If you have to pick one white ball, which urn should you choose to maximize the probability of picking a white ball, and…

    Medium · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

  4. 04

    Describe API Data Fetching in JavaScript

    Describe the JavaScript code and process used to fetch data from an API, including asynchronous operations and handling responses.

    Easy · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

  5. 05

    Explain Encapsulation with Example

    Define encapsulation as an object-oriented programming concept and provide an example class illustrating how it bundles data with the methods that operate on that data, and restricts direct access to some of an object's components.

    Easy · From MyKaarma | SDE Internship Interview Experience | On-Campus | Noida | 8th Aug 2023 [Selected]

Mykaarma interview questions FAQ

What questions are asked in Mykaarma interviews?

Candidates reported 16 distinct questions across 1 Mykaarma interviews. 11 coding and DSA questions, 5 other questions.

How difficult are Mykaarma interview questions?

Of the questions candidates rated, 25% were easy, 75% medium and 0% hard.