Loading...
Showing 421-430 of 1581 forum items
The interviewer presented a stream of earning events and asked me to support adding revenue, correcting a previous amount, and returning the current top earners. I used a hash map for authoritative totals and a heap for ranking, with lazy deletion for stale en...
The system design question focused on building a News Aggregator Service, similar to Google News. The functional requirements were: - Users can subscribe to specific topics. - Users can subscribe to specific publishers. - The system provides general top storie...
The coding portion involved debugging `str.isalnum()` due to extra parentheses. I was allowed to use Google to debug. I was asked about the time complexity and whether I frequently use `s[::-1]` in my work. I answered truthfully that I do not, and I suggested...
The interviewer was direct from the beginning and did not spend much time on small talk. The question was Build Target Recipe Value: https://www.chillinterview.com/learn/coding-interview-questions/build-target-recipe-value The setup involved base ingredients,...
The first problem involved a string containing 0, 1, and ! characters. A ! appears when a '10' or '01' subsequence pair is present in the string. Given an error string like '101!1', I needed to calculate the total number of errors. The approach involved replac...