Timeline for Find the maximum of 3 numbers without branching
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Jun 25, 2014 at 17:02 | comment | added | Keen |
@ClydeLobo It's 6 because < and > cost double.
|
|
Jun 25, 2014 at 12:40 | comment | added | Clyde Lobo |
I guess it should be 4 tokens i.e 2 && , < and > . The = is used as an assignment and counts as 0
|
|
Jun 25, 2014 at 5:54 | comment | added | qwr | @primo This was an interesting issue. I believe some CISC architectures have instructions that include conditional statements, so I'm not sure how those would be counted. | |
Jun 25, 2014 at 5:09 | comment | added | primo |
@edc65 It is. Allowing && and || was likely an oversight, which should be pointed out, rather than exploited.
|
|
Jun 25, 2014 at 2:52 | comment | added | justhalf | I would consider this as branching, haha | |
S Jun 25, 2014 at 1:46 | review | Low quality posts | |||
Jun 25, 2014 at 3:54 | |||||
S Jun 25, 2014 at 1:46 | review | First posts | |||
Jun 25, 2014 at 5:06 | |||||
Jun 25, 2014 at 1:33 | comment | added | edc65 | +1 I see shortcut evaluation as a type of branching, but it's not forbidden in the rules | |
Jun 25, 2014 at 1:31 | history | answered | openorclose | CC BY-SA 3.0 |