Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
imglorp
35 days ago
|
parent
|
context
|
favorite
| on:
How I fell in love with Erlang
> “How can you sum the numbers from 1 to 10 without using a loop?”
Sum = n(n+1)/2
KingMob
35 days ago
|
next
[–]
Yeah, I assume it's missing some context that the numeric solution was off the table.
javcasas
35 days ago
|
parent
|
next
[–]
When all you know is hammers, all you can think of are nails. Screws are impossible to use and understand. How are you supposed to hammer in a screw? All those ridges are in the way!
robochat
34 days ago
|
prev
|
next
[–]
I remember being amazed when I learnt about summing arithmetric series.
FredPret
34 days ago
|
prev
[–]
Not even Erlang can beat Gauss
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Sum = n(n+1)/2