SDE-2 Pragmatic Play (Arrise Solutions)

pragmatic play logo
pragmatic play
SDE-2
July 20, 20256 reads

Summary

I had an interview experience for an SDE-2 role at Pragmatic Play, which consisted of two rounds covering data structures & algorithms, system design, and multi-threading problems.

Full Experience

First Round :-

Maximum Water Trapped between two buckets (Leetcode -easy)
Discussion (HLD) on Distributed Counter and Sorting.


Second Round :- Print the below sequence using 3 threads

0 1 0 2 0 3 0 4 0 5 0 6........

One thread should print 0 other thread for even numbers other for odd numbers.

Interview Questions (3)

Q1
Maximum Water Trapped
Data Structures & AlgorithmsEasy

Given an array of non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining. This is commonly known as 'Trapping Rain Water' on LeetCode.

Q2
Distributed Counter and Sorting (HLD)
System Design

High-Level Design discussion on implementing a distributed counter and sorting mechanisms in a distributed system.

Q3
Multi-threaded Sequence Printing (0, Even, Odd)
Data Structures & Algorithms

Implement a multi-threaded program using three threads to print the sequence: 0 1 0 2 0 3 0 4 0 5 0 6... One thread should exclusively print '0', another thread should print even numbers, and the third thread should print odd numbers, ensuring the correct interleaved sequence.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!