File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 50
50
| 168 | [ Excel Sheet Column Title] ( https://leetcode.com/problems/excel-sheet-column-title ) | Easy | [ ![ Java] ( https://img.icons8.com/color/40/000000/java-coffee-cup-logo.png )] ( src/ExcelSheetColumnTitle.java ) [ ![ Python] ( https://img.icons8.com/color/35/000000/python.png )] ( python/excel_sheet_column_title.py ) |
51
51
| 169 | [ Majority Element] ( https://leetcode.com/problems/majority-element ) | Easy | [ ![ Java] ( https://img.icons8.com/color/40/000000/java-coffee-cup-logo.png )] ( src/MajorityElement.java ) [ ![ Python] ( https://img.icons8.com/color/35/000000/python.png )] ( python/majority_element.py ) |
52
52
| 170 | [ Two Sum III - Data Structure Design] ( https://leetcode.com/problems/two-sum-iii-data-structure-design ) | Easy | |
53
- | 171 | [ Excel Sheet Column Number] ( https://leetcode.com/problems/excel-sheet-column-number ) | Easy | [ ![ Java] ( https://img.icons8.com/color/40/000000/java-coffee-cup-logo.png )] ( src/ExcelSheetColumnNumber.java ) |
53
+ | 171 | [ Excel Sheet Column Number] ( https://leetcode.com/problems/excel-sheet-column-number ) | Easy | [ ![ Java] ( https://img.icons8.com/color/40/000000/java-coffee-cup-logo.png )] ( src/ExcelSheetColumnNumber.java ) [ ![ Python ] ( https://img.icons8.com/color/35/000000/python.png )] ( python/excel_sheet_column_number.py ) |
54
54
| 172 | [ Factoring Trailing Zeroes] ( https://leetcode.com/problems/factorial-trailing-zeroes ) | Easy | [ ![ Java] ( https://img.icons8.com/color/40/000000/java-coffee-cup-logo.png )] ( src/FactorialTrailingZeros.java ) |
55
55
| 189 | [ Rotate Array] ( https://leetcode.com/problems/rotate-array ) | Easy | [ ![ Java] ( https://img.icons8.com/color/40/000000/java-coffee-cup-logo.png )] ( src/RotateArray.java ) |
56
56
| 190 | [ Reverse Bits] ( https://leetcode.com/problems/reverse-bits ) | Easy | [ ![ Java] ( https://img.icons8.com/color/40/000000/java-coffee-cup-logo.png )] ( src/ReverseBits.java ) |
Original file line number Diff line number Diff line change
1
+ class Solution :
2
+ def titleToNumber (self , columnTitle : str ) -> int :
3
+ value = 0
4
+ for character in columnTitle :
5
+ value = 26 * value + ord (character ) - 64
6
+ return value
You can’t perform that action at this time.
0 commit comments