Add office photos
Engaged Employer

Paytm

3.3
based on 7k Reviews
Filter interviews by

Interview Questions and Answers

Updated 15 Sep 2024
Popular Designations

Q1. Separate out 0's, 1's, and 2's in an array

Ans.

Separate out 0's, 1's, and 2's in an array

  • Create three variables to count the number of 0's, 1's, and 2's in the array

  • Loop through the array and increment the respective variable for each occurrence

  • Create a new array and add the counted number of 0's, 1's, and 2's in order

Add your answer

Q2. Design system for gaming android app like ludo.

Ans.

Design a system for a gaming android app like ludo.

  • Implement game logic for ludo including dice rolling, moving pieces, and winning conditions.

  • Create a user interface with a game board, player pieces, and dice.

  • Incorporate multiplayer functionality for online play.

  • Include features like in-game chat, leaderboards, and customizable game settings.

  • Utilize a backend server to handle game synchronization and data storage.

Add your answer

Q3. Remove duplicates from the given array

Ans.

Remove duplicates from given array of strings

  • Create a new empty array

  • Loop through the original array and check if the element already exists in the new array

  • If not, add it to the new array

  • Return the new array

Add your answer

Q4. Detect a loop in linked list

Ans.

Loop in linked list can be detected using Floyd's cycle-finding algorithm.

  • Floyd's cycle-finding algorithm uses two pointers, one moving at twice the speed of the other.

  • If there is a loop, the faster pointer will eventually catch up to the slower pointer.

  • If there is no loop, the faster pointer will reach the end of the list.

  • Time complexity of this algorithm is O(n) and space complexity is O(1).

Add your answer
Discover null interview dos and don'ts from real experiences

Q5. search in rotated binary search

Ans.

Search for a target value in a rotated sorted array using binary search

  • Find the pivot point where the array is rotated

  • Determine which half of the array the target value lies in

  • Perform binary search on the appropriate half of the array

Add your answer

Q6. Design YT recommendation system

Ans.

Designing a recommendation system for YouTube

  • Utilize collaborative filtering to recommend videos based on user preferences

  • Incorporate content-based filtering to suggest videos similar to ones previously watched

  • Implement a hybrid approach combining collaborative and content-based filtering for more accurate recommendations

Add your answer

Q7. make a method thread safe

Ans.

Use synchronization mechanisms like locks or synchronized blocks to ensure only one thread can access the method at a time.

  • Use synchronized keyword in method signature

  • Use synchronized blocks inside the method

  • Use ReentrantLock for more fine-grained control

Add your answer

Q8. PRoduct array itself

Ans.

A product array is an array of strings representing different products.

  • Each element in the array is a string representing a product

  • Example: ['iPhone', 'Samsung Galaxy', 'Google Pixel']

  • Can be used to store and manipulate a list of products

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

Interview Process at null

based on 5 interviews in the last 1 year
1 Interview rounds
Coding Test Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Technical Lead Interview Questions from Similar Companies

3.6
 • 86 Interview Questions
3.7
 • 66 Interview Questions
3.6
 • 40 Interview Questions
3.7
 • 20 Interview Questions
4.2
 • 11 Interview Questions
3.5
 • 10 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
Get AmbitionBox app

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