Skip to main content

Timeline for Encoding and decoding exercise

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Mar 11, 2015 at 14:00 vote accept arc4randall
Sep 11, 2014 at 23:55 history edited maaartinus CC BY-SA 3.0
added 53 characters in body
Sep 11, 2014 at 23:53 comment added maaartinus @mjolka Clearer and longer. It's alright in this case, but for long masks pretty unusable (even 16 digit hex a pain). Not worth introducing the dependency on Java 7. Anyway, thanks, I didn't now about binary literals.
Sep 11, 2014 at 20:34 comment added maaartinus I mean that all your intermediate String operations are too literal. You need none of them. Working with bits means just that, working with bits. No strings involved. "I assumed I was supposed to return these values they specified." Just like I did. It's just that your program is wayyyy too long and inefficient.
Sep 11, 2014 at 20:27 comment added arc4randall ya, I had a test and interface as well, but just wrote the two functions as a simplified version. Still a little confused what you mean by taking the task too literally. I assumed I was supposed to return these values they specified. The challenge provided a lot of examples and what they should return and I passed all of them
Sep 11, 2014 at 20:22 history answered maaartinus CC BY-SA 3.0