Talk:Largest int from concatenated ints: Difference between revisions

→‎Negative integers: As an extension?
(→‎Negative integers: As an extension?)
 
(3 intermediate revisions by 3 users not shown)
Line 4:
 
:Yep. I'm sloppy. I will fix this.[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 05:51, 4 April 2013 (UTC)
 
:: Why can't zero be included?   That is, allow non-negative integers.   The programs (I think) won't barf if zero would be included in the list.   -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:28, 7 April 2016 (UTC)
 
:::Well there is no need to wonder what a number with leading zeros is. Some conventions say ignore leading zeros on an int; others might treat it as signifying that the int should be considered as written in anther base, ... It's peripheral to the task, I guess you could state it as an extension to the task and how these leading zeroes are interpreted by your program, but you should have a first version that fits the task I would think. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 19:00, 11 April 2016 (UTC)
 
==Duplicates?==
Line 31 ⟶ 35:
(P.S. thanks for catching my <code>maxnum'''x'''</code> errors)! --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 06:19, 6 April 2013 (UTC)
: The first one under "repeated string" is infact incorrect. Try the array <code>[212, 21221]</code> and compare the result with other methods. You need to repeat each i to a length above <code>maxlen + len(i)</code>. --[[User:Ledrug|Ledrug]] ([[User talk:Ledrug|talk]]) 08:17, 6 April 2013 (UTC)
 
::Thanks Ledrug. I'll fix it. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 11:37, 6 April 2013 (UTC)
 
: Not at all. I was just expression that the second one requires Python 2.6+, since that's when the <code>fractions</code> module was added. I was not making any statement about the first version. --[[User:Spoon!|Spoon!]] ([[User talk:Spoon!|talk]]) 02:29, 7 April 2013 (UTC)
Anonymous user