Talk:Exactly three adjacent 3 in lists: Difference between revisions
Content added Content deleted
([9,3,3,3,3,1,7,8,5]) |
Thundergnat (talk | contribs) m (→[9,3,3,3,3,1,7,8,5]: Maybe yes, maybe no) |
||
Line 1: | Line 1: | ||
==[9,3,3,3,3,1,7,8,5]== |
==[9,3,3,3,3,1,7,8,5]== |
||
The task name is <b>Exactly three adjacent 3 in lists</b>. Should the output be true or false for [9,3,3,3,3,1,7,8,5] which has 4 adjacent 3's. Should a test be added to the task requirements?--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 15:29, 28 December 2022 (UTC) |
The task name is <b>Exactly three adjacent 3 in lists</b>. Should the output be true or false for [9,3,3,3,3,1,7,8,5] which has 4 adjacent 3's. Should a test be added to the task requirements?--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 15:29, 28 December 2022 (UTC) |
||
:This is another Calmosoft task. He is notorious for vague, poorly specced tasks. Since the task specifies '''exactly''' 3 adjacent 3s, I choose to make that condition false. (See the [[Exactly_three_adjacent_3_in_lists#Raku|Raku]] entry.) Whether you choose to make it so or not is up to you. |
|||
:Another pertinent question, should [1,2,13,33,45,67] return true or false? |
|||
:How about [1,2,3,'3',3,4,5] (An int, a string, and an int)? |
|||
:It's all very loosey-goosey --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 16:03, 28 December 2022 (UTC) |
Latest revision as of 16:04, 28 December 2022
[9,3,3,3,3,1,7,8,5]
The task name is Exactly three adjacent 3 in lists. Should the output be true or false for [9,3,3,3,3,1,7,8,5] which has 4 adjacent 3's. Should a test be added to the task requirements?--Nigel Galloway (talk) 15:29, 28 December 2022 (UTC)
- This is another Calmosoft task. He is notorious for vague, poorly specced tasks. Since the task specifies exactly 3 adjacent 3s, I choose to make that condition false. (See the Raku entry.) Whether you choose to make it so or not is up to you.
- Another pertinent question, should [1,2,13,33,45,67] return true or false?
- How about [1,2,3,'3',3,4,5] (An int, a string, and an int)?
- It's all very loosey-goosey --Thundergnat (talk) 16:03, 28 December 2022 (UTC)