Alright, I completely forgot about --release
because i normally use just to run my stuff. That brings part 2 down to around 400ms, i am okay with that for now :D
I’d like to see your solution in total.
I set it up a bit like a game, https://pastebin.com/FGA6E7fA
My part one hovers around 600 microseconds.
Ohhh, that says my part 1 is slow already, i was sure my approach for 2 was the problem. Good to know!
I dont change the map, i just record the steps in the hashtable. But maybe drawing on the map is indeed shaving some time off, thanks for the input :)
The binary search sounds smart, would reduce the pathing quite a bit i guess :)
Part 2 i approached quite the same i think, was only a couple lines of code additionally. But running 5ms 5000 times is also gonna take a while…
I am doing the same principle brute force but it takes ~7 seconds oO
Is using a HashSet<(Pos, Dir)>
for the loop detection so expensive? My CPU shouldn’t be THAT bad…
Part one around 7ms.
Also curious that i have not seen someone mention a more efficient approach, there gotta be one?
But these are never real deals are they? At least I saw maaaaaaany bullshit fake deals, cant remember anything legit ever…
I also found my mum buying crap of instagram a while ago, but i kinda got to her to be a bit more mindful what she clicks on.
Does anyone ever actually click on an ad? Like “hey thats cool I wanna check it out/buy it right here right now”?
I have adblockers active everywhere and only disable then somtimes for specific sites that really don’t work otherwise, but even if the unlikely case would come up that something is interesting I would just look it up separately? Mostly I just turn a blind eye on them anyway, but just wondering, some people gotta really click/buy from these ads? It just seems so surreal to me…
Ever heard of wine?
deleted by creator
After their shit about the Phone unlock tool I would rather not buy Asus in the first place…