-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Description
According to PEP 8
Never use the characters ‘l’ (lowercase letter el), ‘O’ (uppercase letter oh), or ‘I’ (uppercase letter eye) as single character variable names. In some fonts, these characters are indistinguishable from the numerals one and zero. When tempted to use ‘l’, use ‘L’ instead.
However several of these solutions use lowercase 'l' usually as a "left" pointer in conjunction with a "right" pointer indicated by 'r'. Personally I would recommend changing these to "L" and "R" but really anything is okay as long as it isn't "l" as it is very confusing. Examples of problems that use this are 424-Longest-Repeating-Character-Replacement and 647-Palindromic-Substrings.