Mini programming puzzle/challenge #2

lol I was walking to the train station so I could get to school (which I am now at)

3 Likes

woah cool you use a train to get to school!

1 Like

I just realized i dont have to use python!!! im so dumb

3 Likes

This was painful … atleast the way I did it

3 Likes

Figured the solution out. :eyes:

1 Like

First prize has been claimed by @not-ethan! :confetti_ball: Once second and third are claimed I’ll put the top three’s solutions in the post.

2 Likes

I wrote a script to write a solution

2 Likes

Second prize has been claimed by @GrimSteel! :confetti_ball:

2 Likes

These challenges are fun… I might do my own challenge so I can get rid of some of my cycles

3 Likes

Submitted a new one. Hopefully, it’s valid. :eyes:

1 Like

sigh, im not going to get it, I give up. Someone else can take third place instead. ;-;

did it involve many + operators on a single line?

I had to write a script for to write it, meaning it had a lot of repetitive code

There are probably infinite solutions though

1 Like

Matt is saying I am getting really close, but i honestly just want to scrap my work and attempts.

I’m curious now. If you’re okay with it, can you PM me your tries?

yeah, gimme a sec, i have to copy and paste them all

1 Like

PUT ME IN PLACE FOR THE THIRD PRIZE I DID IT. (sent in dm)

I got the solution
:sparkling_heart: :100: :tada: :confetti_ball: :sparkles:

@MattDESTROYER

2 Likes

Pretty cool and wacky idea @MattDESTROYER :slight_smile:

2 Likes

Omg I love your username. XD @whileTRUEpass

2 Likes

I was bored and made my own solution. I hope this won’t break any rules. The irony is that in JavaScript, everything is a data type, including functions. They are considered object types, making it challenging to avoid data types in JavaScript, given its prototype-based nature. :sweat_smile:

I attempted to do this with the most solid coding style possible. I generated the number one by using the built-in window object and creating a reference to it in the nothing variable. Then, I performed a bitwise operation to transform it into 1. That is the only complex part of this code, in my humble opinion.

Yeah Im late but better late than never. :smiley:

Hexscript solid solution
const one = Math.exp(document.getElementById(String.toString()));
const ten = one + one + one + one + one + one + one + one + one + one;
const hundred = ten + ten + ten + ten + ten + ten + ten + ten + ten + ten;
const hundredEleven = hundred + ten + one;
const hundredFourteen = hundred + ten + one + one + one + one;
const hundredEight = hundred + one + one + one + one + one + one + one + one;
const seventyTwo = ten + ten + ten + ten + ten + ten + ten + one + one;
const oneHundredOne = hundred + one;
const eightySeven = ten + ten + ten + ten + ten + ten + ten + ten + one + one + one + one + one + one + one;
const fourtyFour = ten + ten + ten + ten + one + one + one + one;
const thirtyTwo = ten + ten + ten + one + one;
const thirtyThree = ten + ten + ten + one + one + one;

const c = console;

const o = String.fromCharCode(hundredEleven);
const r = String.fromCharCode(hundredFourteen);
const l = String.fromCharCode(hundredEight);
const d = String.fromCharCode(hundred);
const H = String.fromCharCode(seventyTwo);
const e = String.fromCharCode(oneHundredOne);
const W = String.fromCharCode(eightySeven);
const comma = String.fromCharCode(fourtyFour);
const space = String.fromCharCode(thirtyTwo);
const exclaim = String.fromCharCode(thirtyThree);
const str = H + e + l + l + o + comma + space + W + o + r + l + d + exclaim;
c.log(str);
2 Likes