Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2021
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.03 KB | None | 0 0
  1. This post is hidden. It was deleted 2 years ago by user45941.
  2.  
  3. Python 3.8 (pre-release), 62 bytes (non-competing)
  4. 62 UTF-8 bytes, 62 chars
  5. lambda x:{*[y.count(C)for C in (y:=x)]}!={*[2.]}##!2bcdfilmrtu
  6. Try it online!
  7.  
  8. Just for fun, a solution that is itself a "List of Noah".
  9.  
  10. Share Edit Follow Undelete (1) Flag
  11. edited Jul 8 '19 at 9:54
  12. answered Jul 8 '19 at 9:30
  13.  
  14. negative seven
  15. 2,011 1 gold badge 6 silver badges 19 bronze badges
  16.  
  17. 7
  18. While fun, this breaks the rules by not being a serious contender. –
  19. Adám
  20. Jul 8 '19 at 9:32
  21.  
  22. It would be great if it were a common rule of this challenge to make code list-of-noahish. Pretty nice twist. I think you can add some extra comment in the title like [list of Noah truthy] to protect yourself from fun fighters and seriosity defenders. –
  23. Daniil Tutubalin
  24. Jul 8 '19 at 9:51
  25.  
  26. @DaniilTutubalin Good idea. –
  27. negative seven
  28. Jul 8 '19 at 9:55
  29.  
  30. 3
  31. @DaniilTutubalin There is very strong consensus to warn non-serious contenders, and then delete if the author has not corrected the answer given reasonable time to do so. Note that this answer actually falls under the label deliberately invalid, and wouldn't even require waiting, but we're being unusually nice about this one because it is fun. –
  32. Adám
  33. Jul 8 '19 at 10:05
  34.  
  35. 6
  36. @Adám For code golf, e.g., this is limited to answers that do not even attempt to golf the code. Answers that are simply poorly golfed are not invalid. This answer is definitely well golfed and also introduces additional restriction of being list-of-Noah-truthy, which makes it even stronger contender than other solutions. So this rule does not apply here. –
  37. Daniil Tutubalin
  38. Jul 8 '19 at 10:10
  39.  
  40. 4
  41. @DaniilTutubalin No, removing comments is an obvious way to shorten code, so it isn't well-golfed. And one cannot just make up restricted-source requirements on a pure code-golf challenge and claim superiority based on that. If the author of this answer wants to do so, they may ask the challenge author to (or for permission to) post such a challenge. –
  42. Adám
  43. Jul 8 '19 at 10:13
  44.  
  45. 2
  46. @negativeseven Marking an answer as non-competing does not exempt it from being invalid. –
  47. Adám
  48. Jul 8 '19 at 10:15
  49.  
  50. 1
  51. @Adám this applies to rule 2 only. –
  52. Daniil Tutubalin
  53. Jul 8 '19 at 10:16
  54.  
  55. @Adám ok, answer is poorly golfed (there's a way to make it shorter), but the attempt to golf it has been done. So Rule 3 does not apply here. –
  56. Daniil Tutubalin
  57. Jul 8 '19 at 10:26
  58.  
  59. @DaniilTutubalin The author himself has qualified that rule to be universal: "The only exception to this rule is using a programming language (or a feature thereof) that was implemented after the challenge was posted." (However, using post-dated languages was later allowed, so there are no more exceptions, afaict.) –
  60. Adám
  61. Jul 8 '19 at 10:34
  62.  
  63. Proposal: Adding difficulty to the challenge is allowed –
  64. Daniil Tutubalin
  65. Jul 8 '19 at 11:08
  66.  
  67. 5
  68. I think the best way to satisfy everybody: put 2 solutions in one answer, one is competing and follows specs, another is with extra restriction followed. –
  69. Daniil Tutubalin
  70. Jul 8 '19 at 11:46
  71.  
  72. @DaniilTutubalin But +15/-11 is definitely reliable consensus. –
  73. Adám
  74. Jul 8 '19 at 16:04
  75.  
  76. 4
  77. @Adám IMO, having a self-imposed restricted-source requirement is more akin to using a different language. There is a serious attempt to golf here, but he's not golfing Python 3.8 per se, but rather a subset of it governed by the restricted source. I see nothing wrong with this answer. –
  78. Conor O'Brien
  79. Jul 8 '19 at 20:46
  80.  
  81. 2
  82. Serious contenders do not contain superfluous code codegolf.meta.stackexchange.com/a/10836/34718 –
  83. mbomb007
  84. Jul 8 '19 at 21:24
  85.  
  86. I find the consensus in the link mbomb007 pointed two above clear and have therefore flagged this for deletion. –
  87. The Fifth Marshal
  88. Sep 18 '19 at 23:47
  89.  
  90. I'm temporarily deleting this answer in accordance with our policy on invalid answers as it is not a serious contender. Feel free to fix the issues and flag it for undeletion. –
  91. user45941
  92. Oct 1 '19 at 4:38
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement