Temperature Code Golf puzzle discussion

Hi Atharv. We can’t provide you with the validators. However, if you don’t validate everything, your code doesn’t answer all possibilities, hence you should ameliorate it in order to validate it.

By the way, this is a code golf challenge, try the classic puzzle maybe. It is the same without the code golf challenge.

Good luck :slight_smile:

Hey!
I just wanted to inform that, I have already solved classic puzzle of the same challenge with 100% clearance.
But, I just wanted to Increase my XP, so I took the same in Code Golf, but since I am only able to clear 10/12 validators, it is making me more confusing regarding the mistake in my code…
Further more, Increase in my XP will really help in my level boost.

Thanks,
Regards

Codegolf doesn’t give XP, only CP (ranking).
About your problem, if your formula contains something like t*t-t, think about what happen if the values list contains 4 then -3, and another values list -3 then 4. Maybe you don’t always choose the good value.

if your “classical code” solution validates everything, then your reduced solution should not be less performant, you might have removed a crucial part of the solution.

And as said Remi, code golf don’t give you xp.

This is no longer the case. Seems like it uses the byte count now, not the char count.

Hi !
Does anyone know the best score in plain js without hardcoding or system call ?
I’m currently down to 134 char but have no clue how far i am from the best answer
Frustrating…
thx

Down to 128 chars using print instead of console.log

I want to see some code, is this possible? I have a 114 Chars in C++ and I’d like to compare it to some non-hardcoded Solutions…

solutions are available in “standard” puzzle not in golf

it’s not “the solution” im interested in but more like “how did others do” that used the same language as I did. There’s one guy with a C++ solution that’s just 71 chars and I’d love to see how he did it!

Ok, I see now that the guy holds also the record for the perl solution… When I’m setting up a minimal cpp exe that just executes perl + something it takes exactly 44 char. Adding the 29 from his perl solution I arrive at his actual 73 (not 71) chars…
While it is creative I’d like to stay in “my” language without invoking others to compete…

115 chars in js and I have no clue to reduce this… (Non-harcoded)
Hmm…
I already used some hints accross the forum but I don’t even know how to deal at this point

EDIT : illumination → 65 chars …