« first day (3058 days earlier)      last day (1789 days later) » 

3:39 AM
0
Q: Code challenge to finding the minimum and maximum number of possible liars in a group

CiworopIn particular, the challenge can be found here. My current approach is essentially hypothesis testing. Assume some people are truth tellers (thus all their statements are true)/ the remainder are liars (at least one statement is false), then check the validity of the hypothesis. I try and do thi...

 
 
1 hour later…
5:00 AM
How is the domain www.code.golf not taken‽
 
5:17 AM
probably because its parked at 25K or something stupid like that
 
 
2 hours later…
7:01 AM
-1
Q: Ordered hash table

swom bhaiIn a normal hash table, a key is hashed then linear search is performed in the bucket where the key will be found if it exists in the hash table. A successful search terminates as soon as the key is found, on average half-way through the bucket, but an unsuccessful search requires that every item...

 
7:41 AM
2
Q: First occurrence in the Sixers sequence

SokThe Sixers sequence is a name that can be given to sequence A087409. I learned about this sequence in a Numberphile video, and it can be constructed as follows: First, take the multiples of 6, written in base 10: 6, 12, 18, 24, 30, 36, ... Next, concatenate the numbers into a stream of digits:...

 
8:17 AM
Trying to make @KevinCruijssen jealous :-P
 
8:36 AM
@LuisMendo Hehe :) Tbh, I don't easily get jealous for a 3x3x3 sticker mod. ;p
 
@LuisMendo D:
 
8:47 AM
@KevinCruijssen I suspected that, seeing your collection... :-D
 
8:58 AM
@LuisMendo Have you already scrambled and solved it?
 
9:33 AM
@KevinCruijssen I wouldn't dare :-) I would never ever see it well arranged again
 
 
2 hours later…
11:14 AM
@KevinCruijssen I have quite a bit of twisty puzzles myself but I haven't bought any for quite some years. Do you have a pic of your collection?
…it's in your profile, nevermind
 
11:33 AM
@LuisMendo Hehe, where's the fun in a puzzle you don't solve. :) Here is a tutorial I made for the 3x3x3 Cube once: youtube.com/watch?v=bNgxnIE3eKc. A picture cube only requires to solve the centers as well. To rotate a single center 180 degrees at the top: [R U R' U] (5x); and to rotate both the front and top centers 90 degrees: [M U M' U'] (5x). Good luck. ;p
@Fatalize twistypuzzles.com/forum/viewtopic.php?f=14&t=26889 EDIT: Ah, you had already found it.
 
Quite a bit more puzzles than in my collection (that's an understatement)
 
@Fatalize I hear that more often, haha ;) Do you have a picture of your collection?
 
I don't (and I'm not at home right now). I have about 30 puzzles I think
They're mostly the classical ones everyone has, I don't have anything too crazy
 
11:52 AM
I probably don't remember how to solve half of those
 
@KevinCruijssen Heh, you even made a video! I can't have sound now though, I'll watch it later
 
12:41 PM
I really wanna learn to solve a 3x3x3 cube. A friend at work has one and he just absentmindedly solves it a few times every time we need to wait for Delphi to compile.
 
Just learn how to program in Cubically
 
@Veskah As long as it's not Delphi
 
12:59 PM
As a side note, I find it great shame that Delphi isn't owned by Oracle
4
 
1:13 PM
@JohnDvorak they're actually related. Borland thought of the name Delphi because at the time (circa '95), the most widely used database for Windows 3.1 was Oracle's, and they released Delphi to target those specific customers.
Kinda like "If you want to use (the) Oracle, Delphi is the way to go" or something along those lines.
 
Oh, nice!
 
2:15 PM
@J.Sallé It's really not difficult to learn using a beginner method
It would take you an hour, and maybe a couple more hours to know the method by heart
 
2:57 PM
1
Q: Fill it with a snake

Nicola SapMake a snake fill any maze (until it gets stuck). The snake The snake starts at a given starting point, pointing EAST. It moves by having always a wall or a part of its body immediately to the LEFT of its head ("left-hand rule wall follower"), until it gets stuck because all the four directions...

 
 
3 hours later…
5:36 PM
0
Q: Can you convert this c++ code to python?

user87480enum Weekday { INVALID, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY }; Weekday operator+(Weekday w, int n) { if (w == INVALID) return w; n %= 7; if (n < 0) n += 7; return Weekday((n + (w - 1)) % 7 + 1); } Weekday operator+(int n, Weekday w) { return w + n; } Weekday...

 
6:35 PM
Anyone here doign facebook hackercup?
 
 
2 hours later…
8:36 PM
I'm not even doing Facebook.
 
CDN is still backed up for me
 
hmm, so @mbomb007 has a 77 byte Retina solution... well the bad news is that I have a 36 byte solution in Retina 0.8.2 (save 2 bytes by using Retina 1)
 
lol what
 
9:07 PM
@Neil Post it then. As I said in my answer, I'm super out of practice.
If there was a nice way to get the line index of a match, that would shorten mine a lot.
 
9:53 PM
Anyone golfing with PHP may want to use the newly released 7.4.0alpha1 branch. They added null coalescing assignment and array unpacking. github.com/php/php-src/blob/php-7.4.0alpha1/UPGRADING
They also added arrow functions
 
 
2 hours later…
11:31 PM
there you go then
 
Anonymous
@mbomb007 Cool that they're finally catching up with the rest of the world
 

« first day (3058 days earlier)      last day (1789 days later) »