Amy Blankenship
Nov 20, 2023

--

This is only true for whatever language you're thinking about. In Javascript, you can use arrays without knowing the size (and your preprocessing could populate the array in one step). But since everything fits in memory, you could create a Set by customer, date and one by customer, url and find all customers that have at least 2 entries in each. This solves the actual problem--your solutions only find one customer.

--

--

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

No responses yet