Skip to main content

Timeline for Deal the cards to the players

Current License: CC BY-SA 4.0

49 events
when toggle format what by license comment
Nov 22, 2020 at 12:57 vote accept aloisdg
Jun 17, 2020 at 9:04 history edited CommunityBot
Commonmark migration
May 14, 2019 at 21:13 answer added att timeline score: 3
Mar 20, 2019 at 21:41 answer added user77406 timeline score: 0
Mar 13, 2019 at 12:00 history tweeted twitter.com/StackCodeGolf/status/1105800806832443393
Mar 7, 2019 at 23:38 answer added Avilyn timeline score: 2
Mar 7, 2019 at 23:22 answer added Xcali timeline score: 1
Mar 7, 2019 at 21:50 answer added Daniel Widdis timeline score: 1
Mar 7, 2019 at 20:35 answer added 640KB timeline score: 1
Mar 7, 2019 at 13:47 answer added maxb timeline score: 1
Mar 7, 2019 at 12:39 comment added Shaggy Given that "the card can be any kind of value (number, object, string, etc.)" then A=[0,1,2] and n=4 would give an output of [[0],[1],[2],[0]].
Mar 7, 2019 at 12:13 comment added aloisdg @Shaggy with n=2 and A=["1","2","3","4","5","6"] the output should be [["1","3","5"],["2","4","6"]] and with n=4 and A=["1","2","3"] I could allow an output with [["1"],["2"],["3"],[0]] if the language cannot to [], null etc.
Mar 7, 2019 at 12:09 comment added aloisdg @Shaggy indeed it would be a problem. I dont know if there is a language without empty or null array where [0] would be the correct way to write it. I would like to avoid [0] but I dont want to block a lang where [0] is the only way to have an empty array.
Mar 7, 2019 at 11:08 answer added t-clausen.dk timeline score: 2
Mar 7, 2019 at 9:36 comment added Shaggy What if the input array contains a 0?
Mar 7, 2019 at 7:26 answer added Graham timeline score: 1
Mar 7, 2019 at 7:22 answer added Emigna timeline score: 14
Mar 7, 2019 at 7:02 comment added aloisdg @Graham Yes zero is fine
Mar 7, 2019 at 5:21 comment added Graham Can we use zero to indicate a missing card or empty hand e.g. n = 4 A = [1,2,3,4,5,6] [[1,5],[2,6],[3,0],[4,0]] or n = 4 A = [1,2,3] [[1],[2],[3],[0]]
Mar 7, 2019 at 4:08 answer added l4m2 timeline score: 2
Mar 7, 2019 at 3:59 answer added Adam timeline score: 3
Mar 7, 2019 at 3:13 history edited Gymhgy CC BY-SA 4.0
Some spelling and grammar fixes
Mar 7, 2019 at 0:58 answer added Nick Kennedy timeline score: 6
Mar 7, 2019 at 0:41 answer added Jonah timeline score: 4
Mar 7, 2019 at 0:22 answer added ZaMoC timeline score: 7
Mar 7, 2019 at 0:20 answer added dfeuer timeline score: 4
Mar 7, 2019 at 0:13 answer added Neil timeline score: 3
Mar 7, 2019 at 0:08 history edited aloisdg CC BY-SA 4.0
deleted 33 characters in body
Mar 7, 2019 at 0:03 comment added aloisdg @Adám in the case of the empty hand? You are free to use any value suited in your language.
Mar 7, 2019 at 0:01 history edited aloisdg CC BY-SA 4.0
added 108 characters in body
Mar 6, 2019 at 23:45 review Close votes
Mar 7, 2019 at 15:52
Mar 6, 2019 at 23:44 comment added Adám @aloisdg I can't parse your suggested alternate rule. If the idea is like people often deal to a circle, then all the players that end up with most cards are at the beginning, and players that are at the end may get no cards.
Mar 6, 2019 at 23:43 comment added aloisdg @JoKing I fully agree. I didnt think I would have so much edit to do. It is like pushing to prod without deploying on beta first. Thank you for the help.
Mar 6, 2019 at 23:42 comment added Jo King In the future I'd recommend using the Sandbox to iron out problems and gauge community feedback before posting your question to main
Mar 6, 2019 at 23:42 history became hot network question
Mar 6, 2019 at 23:41 comment added Adám you will need to return every hands and an empty hand contradicts the last test case's first result possibility.
Mar 6, 2019 at 23:41 history edited aloisdg CC BY-SA 4.0
added 12 characters in body
Mar 6, 2019 at 23:38 history edited aloisdg CC BY-SA 4.0
added 2 characters in body
Mar 6, 2019 at 23:37 history edited aloisdg CC BY-SA 4.0
deleted 3 characters in body
Mar 6, 2019 at 23:34 history edited aloisdg CC BY-SA 4.0
added 98 characters in body
Mar 6, 2019 at 23:34 answer added Adnan timeline score: 5
Mar 6, 2019 at 23:28 history edited aloisdg CC BY-SA 4.0
added 98 characters in body
Mar 6, 2019 at 23:22 history edited aloisdg CC BY-SA 4.0
added 86 characters in body
Mar 6, 2019 at 23:22 answer added Shaggy timeline score: 6
Mar 6, 2019 at 23:14 answer added Jo King timeline score: 7
Mar 6, 2019 at 23:13 answer added Giuseppe timeline score: 9
Mar 6, 2019 at 23:12 answer added aloisdg timeline score: 0
Mar 6, 2019 at 23:05 history edited Giuseppe CC BY-SA 4.0
changed link to Q rather than A
Mar 6, 2019 at 23:01 history asked aloisdg CC BY-SA 4.0