« first day (1673 days earlier)      last day (3172 days later) » 

9:00 PM
Actually, it's 6 Arrays, if you look carefully
And Arrays are prone to that, so that may be the cause...
 
Thanks (even looking carefully I'm out of my depth in JavaScript)
 
I tried filling it with Strings, but it wouldn't allow me to use r[0][2]='z'; then
 
Try adding the inner arrays one at a time in a loop and see if it does the same
I assume the output is already what you want, apart from too many cs being replaced?
 
Yeah, this is just a test run to narrow down the problem
From my 200-something long partially-done mostly-golfed solution... ugh
Well...

z=s=>{
r=[];for(i=0;i<6;i++)r.push([...'abcdef']);
r[0][2]='z';
return r.map(x=>x.join('')).join('\n');
};

works, so I guess that was the problem
 
@PeterTaylor haha, I'm hearing "challenge accepted!" :D
 
9:05 PM
@ETHproductions Hmm. That's a lot of extra characters. How frustrating...
 
Actually, I already had a loop for a similar task in the full function, so it only adds 4-5
 
Would it work if you changed the order and changed to z at the end?
 
Actually, it might even be shorter...
I'm not sure what you mean; can you please rephrase?
 
Once you've joined, you can change a single character without it changing in all of them
 
9:07 PM
Oh no - you said you can't change it in a string
 
No, it's very hard :(
Takes like 20 chars
 
You could slice it, but not without adding characters
 
@MartinBüttner Maybe... And if I find one, maybe I should negotiate a more detailed explanation for how I got it in exchange for a bigger bounty...
 
@tricho I think the current fix fits in well with my current solution, actually.
 
@ETHproductions Great. I assume the newlines are just for clarity until you finalise the golfing...?
 
9:09 PM
Yep :)
 
:)
And that final two semicolons - that's very rule abiding for a golf...
 
I know, I separated it into lines in case the auto-checker could see what was the problem
 
I do that :) It's about the only reason I add semicolons to JavaScript...
 
Yeah, same here :)
Except when I'm doing "serious work" with it
 
The most serious work I've done with it is trying to write a Stack Snippets KotH
 
9:18 PM
Oh gosh, I've actually got this thing working :D
 
10:02 PM
Has anyone on Ice Road Truckers actually gone through the ice?
I've never seen it :P
 
10:32 PM
I've been looking at languages starting with 1 in an effort to complete the digits for the HW challenge... 1+, 123, 1337, and 1L all look very interesting (i.e. non-trivial) for this task. although I think 123 will be the one with the most obvious optimal solution
 
11:00 PM
posted 123
 
11:11 PM
-1
Q: Printing squares without multiplication

phillipskI am trying to produce this output without multiplication: 81 100 121 144 169 196 225 256 289 I produced that with this for loop: for (int k = 9; k <=17; k++){ System.out.print( k * k +" "); } But again, I am trying to create a for loop or nested for loops producing the sam...

 
11:26 PM
@trichoplax: Here's what I needed that for: codegolf.stackexchange.com/a/55648/42545
 
@PeterTaylor How does 500 sound? :)
 
11:42 PM
@ETHproductions Hmmm. A downvote with no comment. That must be depressing... +1 anyway. I never expect golf answers to be "finished" - they always seem to keep shrinking for some time after posting...
 

« first day (1673 days earlier)      last day (3172 days later) »