Add office photos
Employer?
Claim Account for FREE

Ola Cabs

3.4
based on 1.9k Reviews
Video summary
Filter interviews by

10+ MARS E-SERVICES Interview Questions and Answers

Updated 24 Oct 2024
Popular Designations

Q1. Problem: Permutations of a String

Given a string STR consisting of lowercase English letters, your task is to return all permutations of the given string in lexicographically increasing order.

Explanation:

A st...read more

Add your answer

Q2. Find the Kth Row of Pascal's Triangle Problem Statement

Given a non-negative integer 'K', determine the Kth row of Pascal’s Triangle.

Example:

Input:
K = 2
Output:
1 1
Input:
K = 4
Output:
1 4 6 4 1

Constraints...read more

Add your answer

Q3. Minimum Number Of Taps To Water Garden Problem Statement

You are required to determine the minimum number of taps that need to be opened to water an entire one-dimensional garden defined along the x-axis, which...read more

Add your answer

Q4. Missing Numbers Problem Statement

You are provided with an array called ARR, consisting of distinct positive integers. Your task is to identify all the numbers that fall within the range of the smallest and lar...read more

Add your answer
Discover MARS E-SERVICES interview dos and don'ts from real experiences

Q5. Count Leaf Nodes in a Binary Tree

Given a binary tree, your task is to count and return the number of leaf nodes present in it.

A binary tree is a data structure where each node has at most two children, referr...read more

Add your answer

Q6. LRU Cache Design Question

Design a data structure for a Least Recently Used (LRU) cache that supports the following operations:

1. get(key) - Return the value of the key if it exists in the cache; otherwise, re...read more

Add your answer
Are these interview questions helpful?

Q7. Diagonal Traversal of a Binary Tree Problem Statement

Given a binary tree, your task is to determine the diagonal traversal of the tree.

Example:

Input:
1 2 3 4 -1 5 6 -1 7 -1 -1 -1 -1 -1 -1
Output:
1 3 6 2 5 4...read more
Add your answer

Q8. Number of Islands Problem Statement

You are provided with a 2-dimensional matrix having N rows and M columns, containing only 1s (land) and 0s (water). Your goal is to determine the number of islands in this ma...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟
Q9. Design a toll booth system for Ola cabs and explain the necessary functions and data structures used in it.
Add your answer
Q10. Can you describe the system design of the OLA app?
Add your answer

Q11. What is Closure

Ans.

Closure is a function that captures the environment in which it was created, allowing it to access variables from that environment even after the function has finished executing.

  • Closure allows a function to access variables from its outer scope even after the function has finished executing.

  • It is created when a function is defined within another function and the inner function references variables from the outer function.

  • Closure helps in maintaining state in functional progra...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at MARS E-SERVICES

based on 5 interviews
Interview experience
3.4
Average
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Interview Questions from Similar Companies

4.1
 • 321 Interview Questions
3.8
 • 71 Interview Questions
4.2
 • 26 Interview Questions
3.6
 • 17 Interview Questions
4.0
 • 11 Interview Questions
3.7
 • 11 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter