Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Oct 15th, 2018
82
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.24 KB
| None
|
0
0
raw
download
clone
embed
print
report
def convertToTitle(self, n):
"""
:type n: int
:rtype: str
"""
s = ""
while (n > 0):
d = (n % 26) - 1
if d < 0:
d = 25
n = (n - 1) // 26
s += chr(ord('A') + d)
return s[::-1]
Add Comment
Please,
Sign In
to add comment
Public Pastes
wifi-to-eth-route.sh
Bash | 13 min ago | 1.54 KB
ACTIVITY 4 ADASYS
MySQL | 14 min ago | 1.56 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 44 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 53 min ago | 0.39 KB
jrszb2018
JSON | 57 min ago | 1.42 KB
85128
JSON | 1 hour ago | 2.85 KB
Q348z
JSON | 1 hour ago | 1.28 KB
hanjukankan
JSON | 1 hour ago | 2.52 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!