Actually on further inspection I see there are three places for packages but a lot of packages simply ignore those so for example I have git installed directly in Program Files rather than under AppData or Program Files/WinGet/Packages.
January 26, 2025 at 2:43 PM
Actually on further inspection I see there are three places for packages but a lot of packages simply ignore those so for example I have git installed directly in Program Files rather than under AppData or Program Files/WinGet/Packages.
Or install it with winget: `winget install --exact astral-sh.uv` winget comes with Windows 11 so you don't need to install any third party package manager.
January 26, 2025 at 11:22 AM
Or install it with winget: `winget install --exact astral-sh.uv` winget comes with Windows 11 so you don't need to install any third party package manager.
Brute-force was pretty much the only way to do Monkey Market. With your code you try and access every key that was in any buyer dict across all of them so lots of adding 0. I used a Counter and updated it with each buyer so only ever accessed existing keys. For comparison: pastebin.com/U6Cf3cB3
Brute-force was pretty much the only way to do Monkey Market. With your code you try and access every key that was in any buyer dict across all of them so lots of adding 0. I used a Counter and updated it with each buyer so only ever accessed existing keys. For comparison: pastebin.com/U6Cf3cB3
It has to create it: if you had `d=defaultdict(list)` then `d[key].append(value)` only works because the object is created in the dictionary whenever first accessed.
December 22, 2024 at 3:26 PM
It has to create it: if you had `d=defaultdict(list)` then `d[key].append(value)` only works because the object is created in the dictionary whenever first accessed.