Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Timeline for Is this number triangular?

Current License: CC BY-SA 3.0

12 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited Community Bot
Commonmark migration
May 23, 2017 at 2:44 comment added Greg Martin Oops sorry, didn't see the OP's comment! Yes, there are some "perverse" incentives in code golfing: that 1-byte savings is more important in a code-golf question than all the efficiency in the world :)
May 23, 2017 at 1:05 history edited ZaMoC CC BY-SA 3.0
deleted 2 characters in body
May 23, 2017 at 1:03 comment added ZaMoC OP says: "You may assume that the input is a positive integer under 10^6".But I like your idea and I will take it ,although mine gives the right result for every case using a list of 5040 elements but yours worst case needs a list of 999999 elements.Thanks for the tip!
May 23, 2017 at 0:35 comment added Greg Martin I recommend replacing 7! by #. First, it's shorter; more importantly, the current solution is not correct, as it artificially imposes a limit on the size of the input it works on.
May 22, 2017 at 21:12 review Low quality posts
May 22, 2017 at 21:13
May 22, 2017 at 21:09 history edited ZaMoC CC BY-SA 3.0
deleted 1 character in body
May 22, 2017 at 20:56 review Low quality posts
May 22, 2017 at 20:57
May 22, 2017 at 20:53 history edited ZaMoC CC BY-SA 3.0
deleted 3 characters in body
May 22, 2017 at 20:51 history edited ZaMoC CC BY-SA 3.0
deleted 3 characters in body
May 22, 2017 at 20:45 history edited ZaMoC CC BY-SA 3.0
deleted 1 character in body
May 22, 2017 at 20:37 history answered ZaMoC CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /