IT/Software career thread: Invert binary trees for dollars.

Lendarios

Trump's Staff
<Gold Donor>
19,360
-17,424
I'm guessing it's something like that, Lend. I'll let ya'll know.
send me a PM with code samples, or do a private github,

Also Datasets gets loaded into memory as well, instead of been buffered, use data reader instead of dataset with dealing with sql.
 

Noodleface

A Mod Real Quick
38,245
15,029
Maybe I'm dumb, but theres a line in some code that I'm a little confused by:

Anyone know what that is? The code actually works, and I have not seen that before.

Edit: something is a UINT8, so not an array or any other crazy data type.
 

moontayle

Golden Squire
4,302
165
I've never seen anything like that in the Java world but then my experience is limited. I can't imagine the IDE would be fine with something just hanging there without an operator of some sort attached to it, let alone the compiler.

Aside: If you like coding puzzles, I foundAdvent of Codethrough a former work acquaintance.
 

Noodleface

A Mod Real Quick
38,245
15,029
Yeah like I said the code works, somehow. I'm sure it's something really obscure, I just have no idea. Maybe it's just checking the first number and not caring about the second - no idea.

Code is fucked.
 

Tenks

Bronze Knight of the Realm
14,163
607
Maybe I'm dumb, but theres a line in some code that I'm a little confused by:

Anyone know what that is? The code actually works, and I have not seen that before.

Edit: something is a UINT8, so not an array or any other crazy data type.
Never seen something like that. The way its written in the three examples almost would look like binary but it contains a 0,1,2 which, obviously, is not binary. Maybe octal or hex comparison?
 

Lendarios

Trump's Staff
<Gold Donor>
19,360
-17,424
Im thinking bitwise comparison. This is C right? or c++?

Also since UINt8 is only 255 long do a loop from 0 to 255 and break whenever is been true, that way you can build the truth table and figure out what it does.
 

Tenks

Bronze Knight of the Realm
14,163
607
I can't say I'm well versed in bitwise but I thought you could only have 0's and 1's?
 

Noodleface

A Mod Real Quick
38,245
15,029
It's only in one place and makes no sense. They also built the IDE themselves so I have no idea what it's actually doing.
 

Lendarios

Trump's Staff
<Gold Donor>
19,360
-17,424
truth table noodle its the only way to be sure.

Oh and good luck.

PS: if they didn't warned you ahead of time that is a pretty shitty thing. If is not standard C, but some homegrown version, yikes bro.
 

Noodleface

A Mod Real Quick
38,245
15,029
Yeah, looking at the code more it looks like the if statement is comparing it against a list.. or.. i don't know.

I don't really have any time to construct a truth table since it takes so long to build. I'm walking away from it right now.