15
ainoneko
2 13 28
1139/ 1195
Eugene Nsk
Last seen 2 months ago
Member for 2 years, 11 months, 18 days
Difficulty Normal
Missions (100) / Solutions (38)
Best solutions / Newest solutions
Initiation
First, simple and ineffective
Remove All Before
index
typing.Iterable
Iterable
typing
inline-if
First
Number Length
int
str
len
First (sum of findall)
Sum Numbers
re.compile
compile
findall
re.findall
r-string
1
First
Replace First
typing.Iterable
Iterable
typing
list
1
First
Is Even
bool
int
First
Nearest Value
min
abs
set
inline-if
in
First: zip of sliced
Split Pairs
zip
join
list-comp
list
comprehension
First: rstrip zeroes and look at the length change
End Zeros
rstrip
int
str
len
Home
First: sort with Counter and index
Sort Array by Element Frequency
collections.Counter
Counter
collections
index
lambda
Electronic Station
First: use squared distances to compare integers
Similar Triangles
combinations
itertools.combinations
Tuple
typing.Tuple
all
1
Second: no negations in condition
Sort by Extension
rindex
chr
List
typing.List
typing
First: just sort
Sort by Extension
rindex
chr
List
typing.List
typing
First: just check without tricks
Surjection Strings
zip
enumerate
bool
in
False
Second: get rid of useless enumerate()
Surjection Strings
zip
bool
in
False
True
First: yield, join, re.search
Find Sequence
re.compile
compile
yield
re.search
search
First: collections.Counter
Verify Anagrams
collections.Counter
Counter
collections
replace
lower
Second: compare sorted()
Verify Anagrams
replace
lower
sorted
Scientific Expedition
First: split, title, join
Conversion into CamelCase
title
join
split
comprehension
str
First
The Hidden Word
itertools.zip_longest
zip_longest
itertools
find
enumerate
First: Is the alphabet a subset of the set of the string?
Pangram
ascii_lowercase
string.ascii_lowercase
string
set
lower
O'Reilly
(with itertools.chain())
Flatten a List
chain
itertools.chain
type
is
itertools
First: just count for each
Count Inversions
if-comprehension
list-comp
range
comprehension
len
Second: make it a one-liner
Count Inversions
sum
if-comprehension
list-comp
range
comprehension
Incinerator
First: Ugly, not very OOPish
Straight Fight
class
staticmethod
property
super
decorator
Mine
First: just write it in Python
Binary Count
bin
count
int
1
First: straightforward solution, no tricks
Fizz Buzz
and
int
str
if
1
Ice Base
First: sets
Count Chains
combinations
itertools.combinations
Tuple
typing.Tuple
dict-comp
7
2
First
Monkey Typing
set-comp
find
set
lower
if-comprehension
First: Chop one at a time
Reverse Roman Numerals
startswith
while
for
First
Roman Numerals
while
for
Second
Roman Numerals
while
for
GitHub
Sort the words by length, then look for shorter words in longer ones
The End of Other
endswith
any
enumerate
lambda
sorted
PyCon TW
First: dict of lambdas
Simple Areas
math.pi
pi
math.sqrt
sqrt
round
First: string.translate()
House Password
translate
digits
string.digits
ascii_uppercase
string.ascii_uppercase
Second: sets' intersections
House Password
digits
string.digits
ascii_uppercase
string.ascii_uppercase
intersection
Blizzard
First: datetime.datetime(...).weekday()
Unlucky Days
datetime.datetime
datetime
if-comprehension
list-comp
range
First: simple math with acos
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
float
Not On Map
First: use Counter
Aggregate and Count
update
collections.Counter
Counter
dict
collections
1