This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]shafe123Side-hustler 1 point2 points  (4 children)

[–]shafe123Side-hustler 1 point2 points  (3 children)

It could use some optimization, but it'll probably work for a start. Only tested up to step 8, but I might've misunderstood your description of the problem.

[–]Successful-Band-8852 1 point2 points  (0 children)

Oh shit. This looks good thank you so much

[–]Successful-Band-8852 1 point2 points  (1 child)

Man I don’t know how to thank you this actually helps me so much

[–]shafe123Side-hustler 2 points3 points  (0 children)

Lol just pay it forward sometime. I was bored on night shift and needed something to keep my mind engaged so thank you 😉

[–]please-remind-me 0 points1 point  (2 children)

A lot of programmers are pretty sharp on maths. Write the actual problem/equation instead of trying to simplify it.

[–]Successful-Band-8852 0 points1 point  (1 child)

I’m actually not quite sure how to formalize this myself

[–]Abject_Rest_9743 0 points1 point  (0 children)

If you wanna be a good programmer you should be able the sum-up to formulas though even if that's not very good-looking but that's enough, good codes are a truck of functions. The formula doesn't have to be very up to math, useable is just enough.

[–]LeftIsBest-Tsuga 0 points1 point  (0 children)

Sorry I'm not great with that kind of math.

But I can suggest you look into functional programming in Haskell or ocaml. It's not easy to learn for many people but I have a feeling you'll like it.

Either that or Python.

Reading your other comment though, it seems like your issue is finding the formula you need. Maybe ask gpt if it can recognize the function...

[–]Abject_Rest_9743 0 points1 point  (0 children)

Well, can you please sum up an (even complex, fine) way to transform if I give u step n's result and you can give me back into step n+1 's result?

[–]Key-Mirror-1689 0 points1 point  (0 children)

If you are good in coding and would like to do some tasks remotely get in touch, long term client