Skip to main content
David G.'s user avatar
David G.'s user avatar
David G.'s user avatar
David G.
  • Member for 5 years
  • Last seen this week
  • Maine, USA
revised
Just another traffic jam!
Realized I could do better using set instead of named variables. Had to use the -- to make - a valid character.
Loading…
answered
Loading…
comment
Decide Contiguous Binary Tree
@DannyuNDos But a binary tree can have 2 entries in it. In a binary tree, there is normally an entry in each leaf and each branch node.
comment
Decide Contiguous Binary Tree
The test cases do not include any nodes with one child, like: [L,] or [[L,],[L,L]] Note that this could break some parsers based on the existing test cases.
awarded
revised
Does the sequence shut the box?
analisys of all possible succcesses and failures; slight improvement...
Loading…
comment
Does the sequence shut the box?
I really like the 12,12,10,10,... sequence; and part of me wants to enumerate all valid sorted sequences.
comment
Does the sequence shut the box?
@CursorCoercer Strangely, my original 145 byte answer deals with all your new test cases, but not the one I added. Also, you should probably add a variant of Dominic's with the missing 7 added. (even if it doesn't meet the assumptions.)
comment
Does the sequence shut the box?
@CursorCoercer, I was putting in an edit saying it failed as you added cases. Well, I think my tests are necessary but not sufficient.
revised
Does the sequence shut the box?
doesn't work out... ah well.
Loading…
revised
Does the sequence shut the box?
add a test case, fix a bug // note on +coreutils+bc
Loading…
answered
Loading…
comment
Does the sequence shut the box?
Two necessary conditions that are sufficient to eliminate the Falsy examples: the sum of the sequence must be 78. For every n>=6 there must be at least 13-n entries in the sequence >= n. I don't know if we are just missing another Falsy sequence, or if this is enough.
awarded
comment
Was it a King or a Queen or neither?
@Neil As I understand it, "ye" is actually a pronoun form. The use of it as "the" is a french misreading of the word spelled Þe. Þ (thorn) is one of the lost English letters, pronounced as soft "th.
revised
Print all integers
shave 2 bytes by using the initial assignment in lieu of the noop (":") statement.
Loading…
awarded
revised
Follow a linked list
-1 for final newline
Loading…
answered
Loading…
awarded
1
2 3 4 5