Timeline for answer to Why does Python start at index -1 (as opposed to 0) when indexing a list from the end? by recnac
Current License: CC BY-SA 4.0
Post Revisions
18 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 28, 2019 at 2:32 | history | edited | recnac | CC BY-SA 4.0 |
added 654 characters in body
|
| Apr 16, 2019 at 16:22 | comment | added | Paddy3118 | Donor use this method. You still need to understand the underlying use of negative indexing for indexing from the end. This is just further obfuscation. | |
| Apr 16, 2019 at 12:38 | comment | added | recnac |
Problem Description: A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Find all strobogrammatic numbers that are of length = n. And the key points of Stefan's code: First line, if nums is odd, the middle will in '018', we will add pair to leftmost and rightmost in while loop, but we should consider number can not start with '0', so n<2 is used here. just 5 line solve a complex problem. @Konrad
|
|
| Apr 16, 2019 at 12:01 | comment | added | Konrad | Could you provide description of the problem that Stefan's code solves? I don't want to register at leetcode only to access that information.It's also good when the answers contain all relevant details. | |
| S Apr 16, 2019 at 0:27 | history | mod moved comments to chat | |||
| S Apr 16, 2019 at 0:27 | comment | added | samliew | Comments are not for extended discussion; this conversation has been moved to chat. | |
| Apr 15, 2019 at 17:32 | history | edited | recnac | CC BY-SA 4.0 |
deleted 3 characters in body
|
| Apr 15, 2019 at 14:58 | history | edited | recnac | CC BY-SA 4.0 |
added 845 characters in body
|
| Apr 15, 2019 at 14:32 | history | edited | JJJ | CC BY-SA 4.0 |
grammar, capitalization, don't use code formatting for words that aren't code
|
| Apr 15, 2019 at 12:12 | history | edited | recnac | CC BY-SA 4.0 |
added 7 characters in body
|
| Apr 15, 2019 at 11:00 | history | edited | recnac | CC BY-SA 4.0 |
added 111 characters in body
|
| Apr 15, 2019 at 9:00 | history | edited | recnac | CC BY-SA 4.0 |
added 129 characters in body
|
| Apr 15, 2019 at 8:51 | history | edited | recnac | CC BY-SA 4.0 |
added 152 characters in body
|
| Apr 15, 2019 at 8:38 | history | edited | recnac | CC BY-SA 4.0 |
added 14 characters in body
|
| Apr 15, 2019 at 8:31 | history | edited | recnac | CC BY-SA 4.0 |
added 186 characters in body
|
| Apr 15, 2019 at 8:28 | history | edited | recnac | CC BY-SA 4.0 |
added 186 characters in body
|
| Apr 15, 2019 at 8:27 | vote | accept | abraham | ||
| Apr 15, 2019 at 8:16 | history | answered | recnac | CC BY-SA 4.0 |