Message on Whatsapp 8879355057 for DSA(OA + Interview) + Fullstack Dev Training + 1-1 Personalized Mentoring to get 10+LPA Job
0 like 0 dislike
662 views
in Interview-Experiences by Expert (30,360 points) | 662 views

1 Answer

0 like 0 dislike

Coding Round: Design and code a Queue Service, allowing multiple subscribers on a topic. Each consumer can have multiple pollers – implement parallel polling using sub queues, assuming that producer can have ordering key used to send messages to the same sub queue. — Code interfaces : (subscribe, publish, consume), allow extension for multiple pollers (initially taking just one poller).

Ensure what is expected from queue: Msg ordering, consistency, availability.

DS, Algo, PS Round:  Beakers arranged vertically, and number of beakers increase by 1 at each level

        1

      2  3

   4   5   6

 

Given k is capacity of each beaker. When x ml of water is put, how much will flow to nth beaker.

Solve using recursion.

Design Round: 

  1. Producer, Consumer for posts with Read count, write count limit per user topic, ensure fast reads (scale) – cache to be used,  distributed to allow read/write to scale.
  2. Distributed cache  – how is it distributed
  3. Check if a given expression is a tautology – always true – alphabets a-z are present in the expression

(a&&b) || !(a&&b)

  • solve using stack, check priority of operator
by Expert (30,360 points)

Get best answers to any doubt/query/question related to programming , jobs, gate, internships and tech-companies. Feel free to ask a question and you will receive the best advice/suggestion related to anything you ask about software-engineering , development and programming problems .