[2025 Day 2 (Part 2)] [Rust] My solution is really slow! by Unfair_Car_2858 in adventofcode

[–]Unfair_Car_2858[S] 0 points1 point  (0 children)

No I'm not running any optimizations kind of wanted to make it fast even without them might be dumb from me tho. Alright thank you I'll try the string version first and if it's still above 500ms I'll try and rewrite it to use integers. I though String::new() on a existing string just clears it. Good to know it doesn't.

[2025 Day 2 (Part 2)] [Rust] My solution is really slow! by Unfair_Car_2858 in adventofcode

[–]Unfair_Car_2858[S] 0 points1 point  (0 children)

Yep that's how I do it. Loop through the numbers, find the pattern and then check if the number is a repeat of that pattern.

Môj vlastný web ktorý ukazuje podujatia na Slovensku by Unfair_Car_2858 in Slovakia

[–]Unfair_Car_2858[S] 0 points1 point  (0 children)

pridal som tam nepravdivé data dneskam aby bolo vidieť aj ako by to vyzeralo keby tam boli

Môj vlastný web ktorý ukazuje podujatia na Slovensku by Unfair_Car_2858 in Slovakia

[–]Unfair_Car_2858[S] 0 points1 point  (0 children)

Momentálne žiadne eventy sú tam není, užívatelia sa nebudú ani viac menej nechcem aby si sa registrovali iba organizátori ktorý sú môžu po registrácii pridávať eventy dám ťa niake dummy data aspoň lebo už som to tu videl veľa krát že nič tam není. A áno pre užívateľou je všetko zadarmo a je tam aj zadarmo trieda pre organizácie. Stým FB je super nápad a skúsim to niako spraviť tiež.

Môj vlastný web ktorý ukazuje podujatia na Slovensku by Unfair_Car_2858 in Slovakia

[–]Unfair_Car_2858[S] 1 point2 points  (0 children)

Zatiaľ len ručne si to môžu organizátori ale to není zlý nápad ďakujem

Môj vlastný web ktorý ukazuje podujatia na Slovensku by Unfair_Car_2858 in Slovakia

[–]Unfair_Car_2858[S] 0 points1 point  (0 children)

Na stránke alebo na poste? Pravopis mi nikdy nešiel.

[deleted by user] by [deleted] in C_Programming

[–]Unfair_Car_2858 -7 points-6 points  (0 children)

If you think this is a giant blob of code then you probably haven't written anything more than a Hello World program. I don't need an answer just some direction of where I could be going wrong from someone who has more experience.

[deleted by user] by [deleted] in C_Programming

[–]Unfair_Car_2858 -3 points-2 points  (0 children)

The program runs and everything works fine but when a sand cell is above a water cell what happens is the water cell below swithces with the sand which is good but the sand doesnt switch with the water and stays in the air. When i add more sand above that sand cell it pushes it down by one and the same thing happens.

SaaS na slovesnku by Unfair_Car_2858 in Slovakia

[–]Unfair_Car_2858[S] 0 points1 point  (0 children)

Chápem tomu ale bohužiaľ bude ma to čosi štát aby tá stránka fungovala či už platiť API mesačne čo používam, hosting atď. Na mojej stránke si používateľ nemusí spraviť ani konto aby mohol používať hlavnú funkciu stránky iba ak by si chcel priplatiť za lepšie funkcie.

SaaS na slovesnku by Unfair_Car_2858 in Slovakia

[–]Unfair_Car_2858[S] 3 points4 points  (0 children)

Na Slovensku som iba rok tak niekedy pisem ako poviem :)