Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
d0mine
on Dec 29, 2011
|
parent
|
context
|
favorite
| on:
Combining coins to reach a target sum (C, Python)
`[(y,x)]` is the same thing as `[y,x]`
`,` creates a tuple, not parentheses (empty tuple is an exception).
ttsiodras
on Dec 29, 2011
[–]
Thank you, didn't know this!
Code updated.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
`,` creates a tuple, not parentheses (empty tuple is an exception).