2024-05-08 01:34 pm

Strange Container

Code a data structure with 2 operations: push() and popMostFrequent().

Most of the meat is in the comments/discussion below.
2024-04-22 10:34 am
Entry tags:

Exponential Backoff in Golang: take two

Most important change: float multiplier. Special thanks to [personal profile] juan_gandhi for this discussion!

https://github.com/aklepatc/backoff/blob/main/backoff.go
2022-08-14 02:55 pm
Entry tags:

Spreadsheet Problem

Design and implement a simplified spreadsheet. Spreadsheet consists of cells. Every cell has a string id. All ids are valid so there is no need to validate them. A cell contains an integer value or a formula like "=A1+B1". You can assume that all formulas are valid and "+" is the only operation that needs to be supported.

What is wrong and what is very wrong with my original solution?
https://go.dev/play/p/v0SXCGdaQsu

JIC: this is not meant to be language-specific. If you at least can read my Go then you are all set.