Hi, there was a question in my mind today I want to ask! Why the hell all the problems in the world want the answer 1-based when 90% of programmers work 0-based????? every time we should -- the input and ++ the answer :| sorry for poor English :)
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
Hi, there was a question in my mind today I want to ask! Why the hell all the problems in the world want the answer 1-based when 90% of programmers work 0-based????? every time we should -- the input and ++ the answer :| sorry for poor English :)
Name |
---|
I think that's depends on writer. Some writers think 1-indexed (1-based) is more natural problem statement than 0-indexed one. Or if writers don't think about 0-indexed or 1-indexed, many problems will be 1-indexed. (It's only my guess, if it isn't I'm sorry)
By the way, how did you get the information of "90% of programmers are using 0-indexed"?
What indexing is more natural? It looks like discussion about is zero natural number.
I think 1-based indexing is better because you will not get confused, when you say "first element", "second element", "third element" and so on.