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

Most of the meat is in the comments/discussion below.
Most important change: float multiplier. Special thanks to [personal profile] juan_gandhi for this discussion!

https://github.com/aklepatc/backoff/blob/main/backoff.go
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.

Profile

aklepatc

May 2024

S M T W T F S
   1234
567 891011
12131415161718
19202122232425
262728293031 

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 23rd, 2025 08:56 am
Powered by Dreamwidth Studios