30
BrianMcleod
13 32 49
4983/ 5195
Brian McLeod
Last seen 1 year ago
Member for 9 years, 8 months, 12 days
Difficulty Normal
Missions (244) / Solutions (246)
Best solutions / Newest solutions
Initiation
Simple
Easy Unpack
tuple
Simple
Correct Sentence
strip
upper
str
1
First
The Most Frequent
count
list
str
for
if
First
Multiply (Intro)
First
All the Same
Any
typing.Any
List
typing.List
bool
Home
First
Second Index
ValueError
index
None
except
try
8
4
First
Bigger Price
lambda
sorted
True
list
int
1
First
Popular Words
dict
lower
count
split
list
First
Date and Time Converter
int
str
if
First
Between Markers
find
inline-if
str
len
if
1
First
Sun Angle
round
inline-if
split
int
2
First
Morse Decoder
upper
isalpha
replace
join
split
First
Sort Array by Element Frequency
collections.Counter
Counter
collections
list-comp
range
string functions
First Word
replace
split
str
2
First
Pawn Brotherhood
find
or
in
for
if
2
First
Days Between
date
datetime.date
datetime
abs
First
Three Words
isalpha
False
True
split
else
First
Right to Left
replace
join
Seven
Even the Last
range
len
for
if
First
Non-unique Elements
remove
count
append
for
if
Electronic Station
First
Can You Pass?
itertools.product
product
set-comp
itertools
zip
9
1
Groups, orders, operations - no recursion
Mathematically Lucky Tickets
operator.truediv
truediv
operator.sub
operator.add
ZeroDivisionError
First
Boolean Algebra
index
int
From the more complicated version in Ice Base (no import re)
Unix Match. Part 2
chr
find
ord
bool
while
Copied from Unix Match
Unix Match. Part 1
chr
find
ord
bool
while
1
First
Find Sequence
or
False
True
range
else
x>max?
Ascending List
all
enumerate
typing.Iterable
Iterable
bool
1
First - Push and Pop
Brackets
findall
re.findall
find
pop
re
Fourth
Verify Anagrams
upper
sort
replace
False
True
First
Digits Multiplication
replace
list
int
str
for
Scientific Expedition
First
Time Converter (24h to 12h)
format
inline-if
split
comprehension
int
3
4
First
Morse Clock
f-string
replace
list-comp
split
comprehension
1
First
Conversion from CamelCase
lstrip
isupper
lower
for
if
First
Conversion into CamelCase
upper
split
for
First
I Love Python!
First
Cipher Map
lambda
sorted
join
if-comprehension
list-comp
2
First
Caps Lock
upper
inline-if
False
True
else
First
Remove Accents
category
unicodedata.category
normalize
unicodedata.normalize
unicodedata
First
Call to Home
round
split
else
int
for
One line
Follow Instructions
count
First
Letter Queue
pop
join
elif
append
split
First
The Hidden Word
splitlines
find
max
lower
lambda
Ninth
Striped Words
re.split
re.search
search
upper
re
First
Pangram
lower
False
True
for
if
1
First
Bird Language
join
while
in
elif
append
First
Common Words
set
sorted
join
split
list
Eight
The Most Wanted Letter
lower
for
if
First
Secret Message
re.split
re
join
split
First
Absolute Sorting
abs
sorted
O'Reilly
Short
Frequency Sorting
collections.Counter
Counter
collections
lambda
sorted
16
1
First
Median of Three
min
typing.Iterable
Iterable
max
typing
First
Time Converter (12h to 24h)
f-string
inline-if
list-comp
split
comprehension
First
Cipher Crossword
itertools.permutations
permutations
dict
itertools
enumerate
No recursion solution
The Flat Dictionary
isinstance
dict
items
pop
join
1
min permutations
Loading Cargo
itertools.permutations
permutations
itertools
min
abs
Groupby with global state
Reverse Every Ascending
groupby
itertools.groupby
itertools
False
list-comp
First
Count Inversions
range
len
for
if
Just Barely!
Flatten a List
isinstance
list
else
for
if
First
Xs and Os Referee
count
and
range
for
if
First
Index Power
pow
else
len
if
Fourth
Median
sort
else
int
len
if
Incinerator
First
The Healers
class
property
decorator
pass
None
7
1
Geometry Figures
Geometry Figures
class
pow
math.pi
pi
pass
15
First
Voice TV Control
class
isinstance
in
else
int
19
1
First
The Defenders
class
property
decorator
pass
bool
1
Party Invitations
Party Invitations
class
f-string
remove
append
for
1
Unit Subclasses
Army Units
class
1
Equip yourself!!
The Weapons
class
hasattr
staticmethod
property
super
First
Straight Fight
class
staticmethod
property
decorator
pass
First
Text Editor
class
ValueError
index
except
try
First
3 Chefs
class
super
f-string
None
May the best supported Warlord win
The Warlords
class
hasattr
staticmethod
property
super
Minimum changes from Vampires
The Lancers
class
property
decorator
pass
None
1
All in Base
Microwave Ovens
class
f-string
pass
else
int
1
First
Capital City
class
super
type
not
if
First
Every Person is Unique
class
datetime.strptime
strptime
f-string
datetime.datetime
OO reuse
The Vampires
class
property
decorator
pass
bool
1
First
Dialogues
class
None
in
append
else
public parameters
Army Battles
class
pass
not
while
and
1
First
Multicolored Lamp
class
First
Building Base
class
f-string
Clear
The Warriors
class
not
while
True
else
5
First
Friends
class
frozenset
add
remove
set
1
Mine
First
Achilles and the Tortoise
14
Simple Fast Train
Fast Train
any
not
or
while
list-comp
15
First
Find Enemy
math.atan2
atan2
divmod
pow
math.pi
18
First
Bigger Together
lambda
sorted
join
True
list-comp
1
One line
Best Stock
max
lambda
First
Can Balance
enumerate
typing.Iterable
Iterable
not
typing
Chess Knight
Chess Knight
set-comp
chr
ord
set
sorted
First
Caesar Cipher (decryptor)
isspace
findall
re.findall
chr
r-string
1
First
Determinant
elif
list-comp
range
list
comprehension
1
First
Fizz Buzz
elif
else
str
if
First
What Is Wrong With This Family?
enumerate
pop
set
not
in
First
Cut Sentence
rfind
else
len
if
First
Caesar Cipher (encryptor)
isspace
chr
islower
ord
isupper
re.sub
Currency Style
re.sub
sub
r-string
re
replace
First
The Greatest Common Divisor
min
max
while
for
First
Moore Neighbourhood
count
elif
list-comp
comprehension
else
First
Binary Count
bin
count
str
Ice Base
First
Clock Angle
map
inline-if
split
int
8
Making Change w/ LCM
Making Change
combinations_with_replacement
itertools.combinations_with_replacement
math.gcd
gcd
divmod
First
Oil Pie
Fraction
fractions.Fraction
fractions
map
abs
1
First
Long Repeat
ord
zip
continue
max
not
1
1-liner
Counting Tiles
complex
divmod
abs
lambda
sum
1
First
How to Find Friends
dict
set
while
in
False
First
Feed Pigeons
while
else
if
Seventh
Monkey Typing
lower
in
for
if
Lookup Table
Roman Numerals
First
The Most Numbers
min
max
else
len
if
Alice In Wonderland
First
Digits Doublets
collections.deque
deque
collections
count
while
14
1
First
Multiplication Table
f-string
else
len
for
if
1
Simple One liner
Middle Characters
lambda
len
First
Long Non Repeat
add
enumerate
break
set
in
Zigzag Array
Zigzag Array
List
typing.List
enumerate
typing
list-comp
Breadth First Search
The Shortest Knight's Path
collections.deque
deque
set-comp
add
collections
First
The Fastest Horse
collections.Counter
Counter
collections
index
min
First
When is Friday?
date
datetime.date
datetime
map
split
2
Flatten first
Transposed Matrix
list-comp
range
comprehension
len
GitHub
Dot product calculation
Shooting Range
operator.sub
mul
operator.mul
operator
sub
10
First
Barcode Reader
f-string
keys
map
pop
None
19
Most Frequent Weekdays
The Most Frequent Weekdays
date
datetime.date
datetime
or
inline-if
1
X and Os Champion
Xs and Os Champion
collections.Counter
Counter
collections
find
zip
First
Broken Clock
math.floor
floor
rstrip
float
format
Simplify Unix Path
Simplify Unix Path
continue
pop
not
or
inline-if
list generator with range
Expand Intervals
typing.Iterable
Iterable
typing
list-comp
range
Simple
Area of a Convex Polygon
abs
range
len
for
First
Solution for Anything
class
True
First
Merge Intervals
set
not
sorted
append
range
1
First
The Highest Building
items
enumerate
max
lambda
in
Simple BFS
Open Labyrinth
discard
collections.deque
deque
set-comp
collections
My first Generator!
Painting Wall
yield
max
sum
sorted
range
4
First
Create Intervals
enumerate
print
sorted
append
len
First
Cookies
ValueError
index
except
try
split
First
Long Repeat Inside
print
append
range
else
len
Nested loops
The End of Other
rfind
elif
False
True
len
Dropbox
Second
Speech Module
rstrip
elif
else
if
First
URL Normalization
isascii
rfind
endswith
chr
upper
Basic Depth search
Place Queens
collections.defaultdict
defaultdict
values
any
add
Total brute force
Hubspot Amulet
range
for
if
1
First
Simple Hashlib
eval
First
Three Points Circle
eval
strip
format
round
else
First
Humpty Dumpty Form
math.atanh
atanh
math.asin
asin
math.pi
Simple
Worth of Words
max
lambda
sum
comprehension
First
The Longest Palindromic
range
len
for
if
First
Numbers Factory
map
sort
pop
index
max
First
Friendly Number
float
format
round
abs
print
First
Speech Module
elif
else
if
PyCon TW
First
Robot Sort
format
sorted
join
while
append
First
Ryerson Letter Grade
filter
lambda
list
int
str
First
Double Substring
find
inline-if
while
and
range
Seven-liner
Building Visibility
next
set-comp
zip
enumerate
min
Express Delivery
Express Delivery
complex
heappush
heapq.heappush
heappop
heapq.heappop
Gaussian Elimination
How Much Gold
Fraction
fractions.Fraction
fractions
keys
tuple
First
Golden Pyramid
max
else
len
if
First
Simple Areas
math.pi
pi
math
sum
elif
First
Digit Stack
pop
elif
append
split
int
List comprehensions
Network Attack
min
set
sum
while
if-comprehension
Sixth
House Password
re.search
search
re
not
False
Storage
First
Hexagon Spiral
divmod
map
abs
max
not
12
First
Restricted Prime
count
while
False
True
if
Dict of lines, set of points
The Rows of Cakes
f-string
keys
add
dict
tuple
First
Group Equal consecutive
groupby
itertools.groupby
itertools
list-comp
list
Accumulate Scores
Moria Doors
union
re.split
reverse
index
re
First
Word Pattern
re.sub
sub
re
int
English to Braille
English to Braille Translator
isdecimal
isspace
zfill
bin
tuple
First - three lines!!
Weak Point
zip
index
min
sum
list-comp
First
Saw the Stick
sum
while
append
range
len
HubSpot
math not re
Repeating Decimals
decimal.getcontext
getcontext
Decimal
decimal.Decimal
decimal
2
First
Auto Painting
map
min
lambda
join
list-comp
minimal
The Hamming Distance
bin
count
First
Restricted Sum
add
else
len
if
First
Number Base
index
max
int
if
Blizzard
A different way to solve it (fails my extra checks)
String Conversion
find
min
max
range
else
Recursive 13-liner
Radiation Search
set-comp
add
set
max
or
1
First
Sudoku Solver
class
discard
enumerate
set
not
Set of Corners
Rectangles Union
itertools.product
product
Tuple
typing.Tuple
set-comp
Landing Strip
Spaceship Landing Strip
set-comp
re.search
search
r-string
enumerate
First
The First Working Day
datetime.strftime
strftime
datetime.strptime
strptime
datetime.timedelta
Simpler than I thought (fails my extra checks)
String Conversion
find
max
len
for
if
Third times a charm - NOT Levenshtein (faster!!)
String Conversion
find
min
max
while
and
1
Just count 'em
Unlucky Days
date
datetime.date
datetime
range
for
First
Stair Steps
collections.deque
deque
collections
max
while
Straightforward and O(1)
Weekend Counter
elif
else
if
First
Stressful Subject
isupper
replace
lower
or
in
Rock
Second
CheckSum
isalnum
chr
upper
ord
enumerate
16
Most efficient cutting
Most Efficient Cutting
itertools.permutations
permutations
itertools
min
len
First
Crossword Solver
find
zip
enumerate
index
break
Black Holes
Black Holes
operator.sub
math.hypot
hypot
combinations
itertools.combinations
Clean then sum
CheckSum
isalnum
chr
upper
ord
enumerate
First
Web Log Sessions
datetime.strptime
strptime
f-string
datetime.datetime
keys
Alive
Life Counter
itertools.product
product
collections.defaultdict
defaultdict
set-comp
BFS limited by closest rook
Berserk Rook
ord
pop
abs
set
max
2
First
Parity Bit Generator
f-string
chr
bool
not
count
First
Super Root
pow
float
abs
while
Shelter
No Iterations
Ghosts Age
math.log
log
round
math
elif
7
Direction vector
The Lantern Festival
add
find
min
set
max
10
First
The Nearest Square Number
pow
int
15
detect then change
Pattern Recognition
False
True
list-comp
range
comprehension
Tenth
Ghosts Age
math.log
log
round
math
elif
First
One line Drawing
collections.deque
deque
collections.defaultdict
defaultdict
keys
First
ADFGVX Cipher
isalnum
dict
find
enumerate
lower
Codeship
First
The Territory of Go
remove
enumerate
pop
set
if-comprehension
5
1
First
Probably Dice
sum
append
list-comp
range
comprehension
6
1
First
Behind 2048
break
max
elif
append
list-comp
6
Queue testing
Eaten Go Stones
enumerate
pop
while
False
and
Ugly, but it passes
The 88th Puzzle
None
max
while
and
list-comp
3
First
The Square Chest
add
tuple
List
typing.List
set
First
Texas Referee
groupby
itertools.groupby
collections.defaultdict
defaultdict
itertools
Pascal's Triangle
Probably Dice
sum
append
list-comp
range
comprehension
1
Recursive calls
Pearls in the Box
count
elif
else
len
if
Hermit
Split possibles - Speedy = fewest steps
Colder-Warmer
math.hypot
hypot
itertools.product
product
set-comp
2
Law of Cosines = Law of Cosines and cos(A) = -cos(C)
Strawberry Fields
math.acos
acos
math.pi
pi
round
Simple 4-liner
Break Rings
combinations
itertools.combinations
set-comp
all
any
First
Fractions Addition
Fraction
fractions.Fraction
fractions
f-string
print
Network Loops - Deque
Network Loops
collections.deque
deque
collections.defaultdict
defaultdict
keys
Two conditions
Count Consecutive Summers
or
sum
if-comprehension
and
range
First
The Good Radix
isnumeric
ord
max
print
range
Watchtower
Magic Square
Magic Square
set-comp
zip
continue
enumerate
index
12
1
Compare Functions
Compare Functions
Exception
raise
None
except
try
First
Wall Keeper
class
divmod
property
decorator
any
First
Vigenere Cipher
chr
find
ord
range
len
First
Bag of Santa Claus
class
pow
max
elif
False
Sieve of Eratosthenes (sort of)
Number Guess
pop
index
and
True
list-comp
First
Numbered Triangles
itertools.permutations
permutations
itertools.product
product
all
Convex Hull - Dot Product
Convex Hull
operator.sub
complex
operator
sub
round
First
Rotate Hole
break
range
len
for
if
First
Funny Addition
Escher
One liner (I couldn't resist!!)
The Tower
combinations
itertools.combinations
collections.Counter
Counter
itertools
1
6
Clear and Simple (and fast too!)
Hypercube
collections.defaultdict
defaultdict
any
collections
zip
2
3 votes or more - 3rd try
Card Game
ValueError
pass
index
except
try
3
Climb the ladder
The Stones
add
min
set
max
not
6
No eval, just operators
Safe Code
operator.sub
operator.add
mul
operator.mul
operator
8
1
First
Wild Dogs
math.sqrt
sqrt
keys
items
round
10
First
Graphical Key
collections.deque
deque
set-comp
collections
max
15
Sorted Faces (6-liner)
The Tower
itertools.permutations
permutations
collections.Counter
Counter
itertools
16
5
Two sorted
Treasures
f-string
items
min
lambda
sorted
17
4
First
The Buttons
collections.deque
deque
collections
min
max
17
First
The Secret Room
index
sorted
elif
range
else
1
First
The Ship Teams
iter
keys
items
set
sorted
2
First
Compass, Map and Spyglass
find
abs
max
join
list-comp
First
The Stone Wall
strip
zip
index
min
lambda
First
Ground for the House
rfind
strip
any
find
enumerate
1