Skip to content

Meesho Coding Questions - DSA Problems & Solutions

Practice Meesho placement paper coding questions with detailed solutions. Access Meesho OA coding problems in Python, Java, JavaScript.

This page contains Meesho coding questions from Meesho OA placement papers with detailed solutions.

Meesho OA Coding Section:

  • Problems: 2-3 coding problems
  • Time: 60-90 minutes
  • Languages: Python, Java, JavaScript
Q1: Return an array where each element is the product of all other elements.

Solution (Python):

def productExceptSelf(nums):
n = len(nums)
result = [1] * n
for i in range(1, n):
result[i] = result[i-1] * nums[i-1]
right = 1
for i in range(n-1, -1, -1):
result[i] *= right
right *= nums[i]
return result

Time Complexity: O(n)


Practice Meesho coding questions regularly!