23
smilicic
11 27 42
3086/ 3195
Siniša Miličić
Last seen 9 months ago
Member for 10 years, 2 months, 12 days
Difficulty Normal
Missions (172) / Solutions (162)
Best solutions / Newest solutions
Initiation
Split is a city, not your toy!
First Word (simplified)
bytes
itertools.takewhile
takewhile
functools.partial
partial
3
Patternal issues
Number Length
random.shuffle
shuffle
class
StopIteration
random
5
6
is_unacceptable_predicate
Acceptable Password I
IndexError
replace
except
try
False
15
1
__abs__olutely __neg__ative.
Easy Unpack
itertools.product
product
itertools
tuple
lambda
Invert od invert not... there is no (meaningful) try.
Backward String
isidentifier
finally
Ellipsis
Exception
insert
Mad max iterator
Max Digit
max
int
str
composite list of taking zeros
Beginning Zeros
itertools.takewhile
takewhile
itertools
list
int
Using a common MATLAB pattern. Also, shaken, not stirred.
Multiply (Intro)
random.shuffle
shuffle
random
as
sum
longest_zipper
Split Pairs
itertools.zip_longest
zip_longest
itertools
list-comp
comprehension
Checkio told me to use groupby somewhere. This is somewhere. It's also wrong.
End Zeros
groupby
itertools.groupby
itertools
list
int
The lowest distance value among the values
Nearest Value
min
abs
inline-if
in
comprehension
Even Python supports bit fiddling.
Is Even
bool
not
int
Valid setting
All Upper I
printable
string.printable
ascii_lowercase
string.ascii_lowercase
string
1
some __ne__w items removed
Remove All Before
dropwhile
itertools.dropwhile
itertools
inline-if
in
First
Replace First
inline-if
First
Sum Numbers
digits
string.digits
string
set
sum
Between reductions
Between Markers (simplified)
SimpleNamespace
types.SimpleNamespace
types
functools.reduce
reduce
First
Correct Sentence
upper
replace
not
str
if
Home
Pairwiser
Missing Number
itertools.pairwise
pairwise
itertools
max
lambda
Λ
Pawn Brotherhood
chr
any
ord
zip
lambda
1
Once upon a time I forgot to publish this.
Non-unique Elements
lambda
count
if-comprehension
list-comp
comprehension
2
The one obvious way to do it.
Even the Last
not
sum
if
1
First
Days Between
as
date
datetime.date
datetime
abs
1
Days in a second
Sun Angle
datetime.strptime
strptime
datetime.datetime
datetime
inline-if
Electronic Station
A little help from Euclid
Similar Triangles
complex
math.gcd
gcd
combinations
itertools.combinations
First
Verify Anagrams
isinstance
sort
bool
lower
if-comprehension
2
Now I have two problems
Brackets
re.compile
compile
r-string
any
format
2
Clearly separated islands
Can You Pass?
yield
dict-comp
any
add
remove
5
Irregular expression
Unix Match. Part 1
match
re.match
r-string
re
replace
First
Boolean Algebra
get
dict
not
lambda
or
1
First
Find Sequence
itertools.product
product
itertools
break
or
1
Index wordorum containerorum
Words Order
itertools.pairwise
pairwise
all
itertools
bool
Scientific Expedition
Iterated lambdas make Python sad :(
The Hidden Word
ljust
next
filter
find
enumerate
5
First
I Love Python!
6
ȷǚșϯ⋯ƥłåîŋ⋯ȃѡφǖƛ
Remove Accents
unicodedata.name
name
unicodedata
ord
map
7
1
First
Pangram
ascii_letters
string.ascii_letters
intersection
string
set
18
1
Folded ceilings
Call to Home
math.ceil
ceil
collections.defaultdict
defaultdict
values
19
1
First
Secret Message
isupper
lambda
join
if-comprehension
comprehension
1
First
Striped Words
match
re.match
findall
re.findall
upper
1
Annoying
Morse Clock
format
enumerate
join
True
list-comp
1
We all live in the re.sub-marine...?
Bird Language
re.sub
sub
ascii_lowercase
string.ascii_lowercase
string
1
O'Reilly
First
Loading Cargo
itertools.product
product
itertools
zip
min
13
1
Twisted images in transition
Determine the Order
itertools.product
product
combinations
itertools.combinations
intersection
5
First
Index Power
lambda
inline-if
len
[a]
Flatten a List
isinstance
map
lambda
inline-if
sum
2
First
Count Inversions
all
zip
enumerate
not
or
First
Xs and Os Referee
count
range
for
if
2
Incinerator
First
Friends
class
discard
difference
frozenset
set-comp
10
First
Straight Fight
contextlib.contextmanager
contextmanager
contextlib
with
class
First
The Healers
AttributeError
class
StopIteration
hasattr
TypeError
First
The Lancers
class
StopIteration
iter
next
super
They made me do it, they made me watch TV!
Voice TV Control
class
isinstance
inline-if
in
else
Rather puritanical beverages...
3 Chefs
class
super
f-string
First
The Vampires
class
StopIteration
iter
next
super
First
The Defenders
class
StopIteration
iter
next
super
First
Army Battles
class
StopIteration
iter
next
super
First
Building Base
class
format
1
First
The Warriors
class
super
all
while
False
Mine
Enemy found... it's the code!
Find Enemy
ascii_uppercase
string.ascii_uppercase
math.sqrt
sqrt
string
2
11121
Achilles and the Tortoise
lambda
sum
range
comprehension
18
1
Just plain horrible
Cut Sentence
reversed
index
lambda
in
True
20
1
Switchgetter(1)
Switch Keys to Values
itemgetter
operator.itemgetter
groupby
itertools.groupby
operator
First
Moore Neighbourhood
enumerate
abs
lambda
sum
if-comprehension
Tail call division
Binary Count
lambda
inline-if
3
str.makeencrypt
Caesar Cipher (encryptor)
translate
ascii_lowercase
string.ascii_lowercase
as
string
Ice Base
First
Move Zeros
bool
sorted
True
10
range(len(meh))
Largest Rectangle in a Histogram
enumerate
min
max
range
comprehension
15
What have the OrderedDicts ever done for us?!
Roman Numerals
OrderedDict
collections.OrderedDict
divmod
collections
join
3
First
Is String a Number?
isnumeric
str
Symmetric
Interesting, intersecting
bool
or
and
Counteriterative
When "k" is Enough!
update
yield
collections.Counter
Counter
collections
The ... obvious ... way.
Feed Pigeons
max
lambda
inline-if
3
First
Monkey Typing
lower
lambda
sum
in
comprehension
1
First
How to Find Friends
fromkeys
keys
dict
pop
not
1
First
Roman Numerals
join
list-comp
range
comprehension
for
1
Alice In Wonderland
As far as I am willing to go.
YAML. Complex Structure
DOTALL
re.DOTALL
dropwhile
itertools.dropwhile
itertools.takewhile
3
Meh
Tree Walker
isinstance
values
dict
not
or
11
Taking a deep breath
The Shortest Knight's Path
fromkeys
collections.deque
deque
itertools.product
product
15
2
Obviously, right?
Multiplication Table
lambda
inline-if
1
Generally verbose
Digits Doublets
collections.defaultdict
defaultdict
update
set-comp
dict-comp
1
First
Transposed Matrix
lambda
list-comp
range
comprehension
len
1
GitHub
Morse's site
Simplify Unix Path
continue
pop
not
or
inline-if
13
AllTruist
Solution for Anything
class
lambda
True
15
Because why the set not?
Power Supply
union
extend
get
items
pop
Somewhere not yet visited
The Cheapest Flight
itemgetter
operator.itemgetter
groupby
itertools.groupby
operator
... because dunders make good clarification
The Most Frequent Weekdays
date
datetime.date
datetime
map
lambda
5
First
Open Labyrinth
print
and
for
if
1
Dropbox
Lambda nostalgia
Humpty Dumpty Form
asinh
math.asinh
math.asin
asin
math.pi
10
Are hexes digestable?
Simple Hashlib
getattr
hashlib
as
lambda
First
Friendly Number
copysign
math.copysign
math.log
log
math.floor
1
First
Three Points Circle
eval
divmod
math.sqrt
sqrt
format
1
First
Numbers Factory
fromkeys
divmod
keys
dict
format
1
First
Speech Module
else
if
1
PyCon TW
Searching for the first swapsort that reaches a partially swapped breath.
Robot Sort
functools.partial
partial
collections.deque
deque
next
1
1
First
Digit Stack
pop
sum
append
split
comprehension
5
1
First
Ryerson Letter Grade
match
re.match
r-string
re
split
First
Sum Consecutives
groupby
itertools.groupby
itertools
sum
list-comp
List incomprehensibility
Network Attack
any
enumerate
min
not
if-comprehension
1
Second
Calculate Islands
set-comp
enumerate
pop
abs
sorted
1
First
How Much Gold
fromkeys
Fraction
fractions.Fraction
fractions
combinations
1
First
Calculate Islands
bisect.insort
insort
bisect
itertools.product
product
1
First
Golden Pyramid
enumerate
max
print
list-comp
list
1
Readable
Golden Pyramid
enumerate
max
print
list-comp
list
1
Storage
Complex rotation
Square Spiral
divmod
abs
while
if
3
1
Postcomprehensionism
Moria Doors
string.whitespace
whitespace
ascii_letters
string.ascii_letters
intersection
4
1
Unitsphery classicism
Earth Distances
math.cos
cos
class
math.sin
sin
12
3
Mostly Greek
Saw the Stick
math.tau
tau
math.pow
pow
math.ceil
15
5
First
Digging a Canal
bisect.insort
insort
bisect
pop
not
1
First
Mind Switcher
isinstance
dict-comp
keys
all
get
1
Syntactic bile causes cancer of the colon.
Word Pattern
all
format
tuple
zip
map
Matrices are two-dimensional, right?
Playfair Cipher
isalnum
digits
string.digits
divmod
yield
1
Weak censorship
Restricted Prime
lambda
while
False
True
int
1
First & boring
The Rows of Cakes
math.gcd
gcd
collections.defaultdict
defaultdict
values
3
Capital class
English to Braille Translator
class
digits
string.digits
zfill
ascii_uppercase
First & boring
Skew-symmetric Matrix
all
lambda
range
comprehension
len
2
HubSpot
Disconnection makes me set.
Node Disconnected Users
frozenset
set-comp
copy
values
items
18
1
Complex, not complicated
Supply Line
string.index
digits
string.digits
collections.deque
deque
Clu-set-rize
City's Happiness
frozenset
union
set-comp
copy
yield
Tail
The Hamming Distance
and
int
if
1
Tail recursion
Restricted Sum
len
if
1
Blizzard
First
Spaceship Landing Strip
all
enumerate
max
lambda
if-comprehension
1
2
Влади́мир Ио́сифович Левенште́йн
String Conversion
min
max
lambda
inline-if
len
5
First
Stressful Subject
groupby
itertools.groupby
yield
endswith
ascii_lowercase
First
Min and Max
get
lambda
list
else
len
1
First
Radiation Search
set
not
count
in
False
1
Ugly normalization
Weekend Counter
datetime.timedelta
timedelta
date
datetime.date
datetime
1
Meh
The Angles of a Triangle
math.acos
acos
math.pi
pi
round
1
Rock
First
Count Comprehensions
ast.walk
walk
ast.parse
parse
ast
1
1
Could use more cleaning up
Crossword Solver
itertools.product
product
set-comp
filter
is
16
New & improved; still a lambda mess
Crossword Solver
union
itertools.product
product
set-comp
filter
17
from collections import namedwolf, namedgoat, namedcabbage
River Crossing
collections.namedtuple
namedtuple
collections.deque
deque
itertools.product
17
Get the item and eat it!
Black Holes
math.cos
cos
class
math.hypot
hypot
19
First
Berserk Rook
bisect.bisect
bisect
continue
set
max
20
1
Lambda-verified parity with a dunder
Parity Bit Generator
chr
bin
map
not
lambda
5
Shelter
First
One line Drawing
frozenset
union
values
dict-comp
continue
8
Verbose
Four To The Floor
complex
extend
all
any
continue
16
Why should python code be elegant?
AMSCO Cipher
math.floor
floor
math.ceil
ceil
dict-comp
Codeship
Should suffice
Pearls in the Box
round
min
max
lambda
count
10
First
The Square Chest
itertools.product
product
as
itertools
tuple
16
3
Why simulate only one?
Probably Dice
max
lambda
or
inline-if
sum
This shouldn't work
Minesweeper
itertools.product
product
set-comp
yield
any
1
Legibility score: prob*whites
Pearls in the Box
dict-comp
get
items
round
count
1
Ugly piping
Pearls in the Box
Fraction
fractions.Fraction
fractions
collections.defaultdict
defaultdict
1
Hermit
An orderly queue of one
Anagrams By Stacks
collections.deque
deque
collections
None
or
2
1
Illegibility discounts
The Good Radix
next
filter
index
max
lambda
6
For..in..for..in..for..in..foreign! Also, partial!
Colder-Warmer
functools.partial
partial
set-comp
functools
as
12
1
Poly1dmorous
Simplification
numpy.poly1d
poly1d
eval
numpy
reversed
18
Lazy, evaluation powered.
Simplification
class
itertools.zip_longest
zip_longest
staticmethod
eval
Combinatordering
Stock Profit
combinations
itertools.combinations
itertools
max
list
Minimax
Ore In The Desert
set-comp
values
dict-comp
all
round
1
Shadow cliques for breaking rings are no basis for a system of government!
Break Rings
frozenset
union
combinations
itertools.combinations
set-comp
1
Watchtower
Disregarding contradictions
Bulls and Cows
itertools.permutations
permutations
digits
string.digits
match
10
5
:-D :D- -:D -D: D:- D-: D,_
Rotate Hole
all
enumerate
lambda
if-comprehension
list-comp
13
6
Because lambda
Vigenere Cipher
chr
ord
zip
min
lambda
14
Complicated directions
Boundary Blocks
itertools.count
union
itertools.product
product
next
A third should suffice
Bag of Santa Claus
None
max
or
and
if
Banana
Compare Functions
is
None
except
try
inline-if
1
First
Numbered Triangles
itertools.permutations
permutations
itertools
enumerate
not
Wait... what?!
Funny Addition
sum
1
Escher
A heapsort divided
The Ship Teams
heapq.nsmallest
nsmallest
heappush
heapq.heappush
heapq
Not On Map
First
Most Wanted Letter
ascii_lowercase
string.ascii_lowercase
as
collections.Counter
Counter