User talk:CalmoSoft: Difference between revisions

m
→‎Can I add the next task to Rosetta Code?: added some "stress tests" and implied task requirements.
m (→‎Can I add the next task to Rosetta Code?: added some "stress tests" and implied task requirements.)
Line 267:
<br>
--[[User:CalmoSoft|CalmoSoft]] ([[User talk:CalmoSoft|talk]]) 17:00, 17 July 2021 (UTC)
 
: I would add another set of elements that had the same (max) difference, and have the program select the first maximum difference that it finds. &nbsp; Also, specify that the two elements (which have the maximum difference) be identified &nbsp; (as you have above, but with more verbiage). &nbsp; And have at least one of the elements have a negative value, &nbsp; and also an element that has a zero value. &nbsp; You didn't mention it, &nbsp; but are you going to restrict the numbers to integers or any real number? &nbsp; An example that would "stress test" these requirements could be an element list of: &nbsp; &nbsp; '''2, 0, 1, 1, -2, 0, 5, 8, 6, 2, 9, 11, 8, 1''' &nbsp; &nbsp; I am not sure that all lists &nbsp; (for different computer programming languages) &nbsp; prohibit the use of duplicates, &nbsp; but for this task, &nbsp; allow duplicate numbers. &nbsp; &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 09:56, 18 July 2021 (UTC)