39
Horatiu Crista
Last seen 1 day ago
Member for 2 years, 6 months, 15 days
Difficulty Normal
Python, Python, Python...
Initiation
First
End Zeros
6
6
2
Using append and del
Replace First
6
6
0
Using zip_longest() from itertools
Remove All Before
6
6
0
Using collections.Counter.most_common()
The Most Frequent
8
5
0
First
Max Digit
9
6
0
a*b
Multiply (Intro)
11
6
0
First
Correct Sentence
15
6
0
First
Beginning Zeros
22
12
2
Using slicing
Replace First
31
12
2
Using isupper()
All Upper I
34
12
1
First
Between Markers (simplified)
51
9
4
One line solution
Easy Unpack
116
7
0
Using namedtuple from collections
Max Digit
127
0
0
First
Sum Numbers
225
4
0
First
Nearest Value
448
0
0
First
Number Length
477
0
2
First
Split Pairs
551
0
0
Using index
Remove All Before
659
1
2
First
First Word (simplified)
800
0
0
Using set
All the Same
1183
1
1
Home
First with explanations
Missing Number
2
22
0
First
Sort Array by Element Frequency
6
6
4
Creating a list with changes in direction
Changing direction
11
6
2
Using list comprehensions
Duplicate Zeros
58
0
0
First
First Word
75
1
1
Using replace() and find()
Second Index
101
7
2
First
Three Words
135
15
2
First
Pawn Brotherhood
167
10
2
First
Between Markers
332
3
1
First
Split List
359
0
0
Twice split
Morse Decoder
410
1
2
First
Date and Time Converter
482
0
0
First
Popular Words
522
2
0
First
Bigger Price
689
2
1
Second - using yield
Non-unique Elements
816
5
2
First
Second Index
1132
0
0
First
Days Between
2479
0
0
First
Right to Left
3604
0
0
First
Even the Last
5256
0
2
First
Non-unique Elements
9052
0
0
Electronic Station
Using numpy and itertools/groupby
Find Sequence
2
9
2
With comments
Blood distribution
15
0
0
Regex
Acceptable Password V
23
8
2
Using regex
Unix Match. Part 2
24
4
2
Using regex and islower()
All Upper II
30
9
2
Regex
Acceptable Password IV
31
6
3
First
Acceptable Password II
36
7
2
Using itertools.combinations and replace()
Remove Brackets
75
0
1
Using regex
Unix Match. Part 1
83
3
1
len() and set()
Surjection Strings
96
4
3
The three pairs of sides must be in proportion
Similar Triangles
144
0
0
Using regex
Acceptable Password III
178
2
2
Using regex, rsplit and sort with 2 keys
Sort by Extension
197
0
0
Simple
Boolean Algebra
257
3
1
Using index() method
Words Order
274
0
0
First
Ascending List
300
1
0
Using regex
Acceptable Password VI
405
0
1
Using regex
Brackets
452
2
1
One liner using sorted(), lower, replace()
Verify Anagrams
1852
0
1
First
Digits Multiplication
4320
0
0
Scientific Expedition
Using for, if and dictionary comprehension
Convert and Aggregate
7
9
0
Using re and Counter
The Most Wanted Letter
8
6
0
One-liner
Convert To Title Case
9
4
0
First
Letter Queue
9
1
2
Using re and upper()
Caps Lock
13
12
2
One-liner using the replace method
Replace All Occurrences
17
1
2
List Comprehension
Count Vowels
19
1
0
for... if... else
Longest Substring of Unique Characters
31
0
0
Using defaultdict and ceil()
Call to Home
33
0
0
2 Solutions: 1. regex and 2. one-liner
Conversion into CamelCase
34
9
2
Using a list of following consecutive digits
Beat The Previous
34
0
0
Using regex
YAML. Simple Dict
42
4
0
Regex FTW
Count Substring Occurrences
44
0
0
Using regex
Count Vowels
47
0
0
Using unicodedata
Remove Accents
69
3
3
2 solutions: isupper() and regex
Conversion from CamelCase
75
6
1
Using strptime() and strftime() methods from datetime class
Time Converter (24h to 12h)
76
8
0
Using lists, find(), index()
The Hidden Word
77
4
0
Using dataclass
I Love Python!
97
1
0
Using regex
YAML. More Types
113
0
2
Second - Using regex
YAML. More Types
125
0
0
Using isinstance()
Sum by Type
151
0
0
Using for and if
Follow Instructions
187
3
2
Using numpy
Cipher Map
211
0
0
2 solutions: one-liner using set
Pangram
213
5
2
First
I Love Python!
232
6
0
One-liner using regex
Secret Message
266
6
0
Using index()
Goes Right After
290
1
2
Using re.sub()
Bird Language
300
4
0
Solved using two methods: 1. Lists 2. Sets
Common Words
745
1
0
Using regex and slice with step 2
Striped Words
1108
0
0
First
Absolute Sorting
1452
1
2
O'Reilly
Using Numpy
Reverse Every Ascending
1
5
0
Using pandas and flatten()
Flatten a List (iterator version)
1
0
0
2 Solutions: itertools.groupby() and numpy.where() and delete()
Compress List
2
1
0
2 Solutions: 1. using recursion 2. using pandas and json_normalize (not ok for all tests)
The Flat Dictionary
3
3
2
2 Solutions: 1. One-liner using pandas and flatten() 2. Using itertools and chain()
Flatten a List
8
0
0
Using datetime, strptime(), strftime()
Time Converter (12h to 24h)
14
15
2
Finding position in ALPHABET tuple of tuples
String-2-Matrix
17
0
0
Convert the decimal number to another base + use slice
Integer Palindrome
18
3
0
For, for, if, elif + ALPHABET
Matrix-2-String
19
0
0
Using recursion
The Final Stone
27
1
3
Using recursion
How Deep
34
5
2
Brute force using all combinations
Loading Cargo
34
0
0
One-liner using slice
Chunk
40
5
0
Using recursion and list(), str(), int(), map()
Sum of Digits
43
1
0
Using total_seconds()
Lightbulb Intro
48
5
0
Using slicing
Replace Last
65
0
0
Using itertools module and combinations class
Count Inversions
90
4
1
Using pandas and numpy
Xs and Os Referee
102
0
0
Second
Lightbulb End Watching
139
0
0
Simple
Median of Three
148
1
2
Second
Remove All After
150
3
2
Used itertools, chain() and isinstance()
Flatten a List
162
6
2
First
Index Power
200
1
2
Using total_seconds()
Lightbulb Start Watching
209
0
0
Using slice
Remove All After
217
2
2
Using enumerate()
Sort Except Zero
221
2
2
Using Counter() class and itertools module
Frequency Sorting
228
1
2
Using slice
Replace Last
301
1
2
Using count()
Majority
339
1
2
Third
Replace Last
569
0
2
First
Median
8444
0
0
Incinerator
First
Army Battles
23
6
0
Clear
Army Units
34
3
2
OOP
Every Person is Unique
38
4
2
First
Capital City
56
1
2
First
The Defenders
57
3
2
Using math, decorator, inheritance
Geometry Figures
139
0
0
OOP
Dialogues
175
0
0
Inheritance
3 Chefs
239
0
0
Clear
The Vampires
303
0
0
First
The Warriors
452
1
0
OOP
Building Base
794
0
0
Mine
First
Fibonacci Poem
3
9
0
A Long Solution
Aggregate by Operation
8
0
0
Using functools.cmp_to_key()
Bigger Together
11
0
0
One liner: using list comprehension in dictionary comprehension
Switch Keys to Values
13
5
0
One-liner using integer division (//)
Count Divisibles in Range
13
0
0
Using regex, ord(), chr()
Caesar Cipher (decryptor)
16
5
2
Using numpy and the coordinates of the neighbors
Moore Neighbourhood
30
0
10
Using while and if
Adjacent Letters
42
0
0
For, Slice, Max
Replace with Biggest
43
0
0
Using groupby class and Counter class
Long Pressed
49
0
0
One-liner using numpy
Determinant
60
0
0
Using recursion
Chess Knight
80
0
0
First
Cut Sentence
96
2
2
Pure math
Achilles and the Tortoise
115
2
2
Using math.gcd()
The Greatest Common Divisor
118
3
0
One-liner using max with key
Best Stock
167
5
2
Using if, elif, else
Currency Style
174
0
0
Using bin()
Binary Count
268
5
2
First
Fizz Buzz
295
5
1
Using ord() and chr()
Caesar Cipher (encryptor)
670
0
0
Ice Base
One-liner using isupper(), islower(), istitle()
Correct Capital
1
26
8
Using regex and too many if
Reveal the Number
1
5
0
Using Polygon Class from sympy Module
Interesting, intersecting
1
0
0
try...except
Is String a Number?
3
14
0
Regex FTW!
Count And Say
3
5
4
find_divisors function
Perfect Number Checking
7
3
3
Using combinations Class
One Switch Strings
7
2
2
One-linear
Leap Year Checking
8
5
1
One-liner using isupper(), islower()
Correct Capital
9
8
1
One-liner
Move Zeros
9
6
0
Using regex
Is String a Number? (Part II)
9
5
1
Using fractions and Fraction
Oil Pie
11
0
0
Using count, reverse, remove
When "k" is Enough!
13
3
0
My Solution has a bug (didn't pass a test)
Making Change
13
0
0
Using if, elif and f-string
Write Quadratic Equation
21
0
0
With prints
Quadratic Equation Roots
25
0
0
Iteration
Count And Say
30
0
0
Analytic Geometry
Interesting, intersecting
40
0
0
Using zip Class
Not in Order
40
0
0
Using <in> keyword
Monkey Typing
47
10
0
Using re and finditer()
Long Repeat
61
8
2
Calculating pigeons and portions for every minute
Feed Pigeons
89
0
0
2 one-liner solutions: using re and using split() and slice
Find Quotes
103
4
0
Creating two sets with all the links for first and second
How to Find Friends
136
0
0
Using hypot and floor from math
Counting Tiles
278
0
0
With explanations
Clock Angle
282
0
0
Using OrderedDict and //
Roman Numerals
287
6
2
Using translate()
Morse Encoder
404
0
0
Using OrderedDict, for, if, else
Reverse Roman Numerals
506
0
0
area = length * height
Largest Rectangle in a Histogram
571
0
0
First
The Most Numbers
4262
0
1
Alice In Wonderland
Using ipaddress
IP Network: Route Summarization
8
11
2
3 Solutions: 1. using numpy, 2. using zip(), 3. using list comprehension
Transposed Matrix
9
5
2
Using recursion
Tree Walker
17
3
1
Using bin() and eval() functions
Multiplication Table
26
5
2
Using index() and max() with key
The Fastest Horse
36
5
2
One-liner using slice()
Middle Characters
47
4
2
Using datetime, strptime(), weekday()
When is Friday?
80
3
2
Using range() and list comprehension
Zigzag Array
81
1
2
Using collection module, Counter class, itertools module, combinations class
Long Non Repeat
124
1
2
Using pairwise Class and chain Class from itertools module
Swap Nodes
148
0
0
GitHub
Using regex
Simplify Unix Path
9
4
1
3 Solutions using math.gcd(), numpy.diff(), itertools.pairwise()
Evenly Spaced Trees
9
0
0
Using datetime.date()
The Most Frequent Weekdays
14
13
5
Using brute force
Long Repeat Inside
17
5
2
Using Algorithm to find the area of a polygon
Area of a Convex Polygon
20
5
2
Using range()
Expand Intervals
26
6
0
Using numpy, sum(), argmax()
The Highest Building
28
0
0
Using regex
The End of Other
37
8
2
if...else FTW
Merge Intervals
39
3
0
Using regex
Cookies
40
4
0
Using a Class for compare operators
Solution for Anything
325
0
0
Using if and for
Create Intervals
353
0
0
Dropbox
Regex FTW (13 functions)
Calculator-III
1
0
0
Regex For The Win!
Calculator-IV
1
0
0
Using numpy array
Scytale Encryption
1
0
0
Used 4 functions to solve it
Sort Sorted Groups
2
8
0
Too many re (with comments and prints)
Calculator-II
2
5
0
Lots of elif with print and comments
Calculator-I
7
5
2
Using numpy
Rotating Grille Cipher
8
0
0
Second - Regex FTW
Calculator-II
9
0
0
Using zip() and index()
Common Tail
10
5
0
Brute-force, with explanations
e+pi
11
0
1
Using find() and index
Atbash Cipher
12
5
2
Solution using if, else and for
The Longest Word
14
1
0
Recursion FTW
Sum of Distinct Cubes
15
0
0
Using itertools module
All Permutations
16
0
0
First
Revorse the vewels
16
0
0
Second - Shorter than First
Calculator-I
23
0
0
Using hashlib module - one-liner solution
Simple Hashlib
38
5
2
Solution using regex
The Longest Word
38
0
1
My number is the best because is the ACE
The Best Number Ever
39
7
0
Using pi, sqrt, asin, atanh from math module
Humpty Dumpty Form
40
5
0
Finding factors in decreasing order
Numbers Factory
90
5
0
Using max with key
Worth of Words
108
3
0
Using combinations and sorted() after len
The Longest Palindromic
113
4
0
2 Solutions: 1. using num2words (not allowed, here) 2. a longer one
Speech Module
175
6
0
Using Decimal class from decimal module
Friendly Number
583
0
0
PyCon TW
Using regex and max() with key
Double Substring
13
10
4
Using fractions module and Fraction class
How Much Gold
14
4
0
One-liner using groupby() class from itertools module
Sum Consecutives
52
2
2
Using math, pi and Heron's formula
Simple Areas
58
5
2
Second
Digit Stack
79
3
2
Converting TABLE to a dictionary
Ryerson Letter Grade
111
0
1
Using sorted()
Robot Sort
172
0
1
Using if
Digit Stack
195
1
2
2 Solution: using regex
House Password
3647
0
0
Storage
Long, with explanations
List Beautify
5
3
0
Using numpy, sum(), argmin()
Weak Point
42
0
0
Using regex
Word Pattern
51
1
1
Using numpy and transpose()
Skew-symmetric Matrix
140
0
0
One-liner using itertools module and groupby class
Group Equal consecutive
216
0
0
2 Solutions: 1. while + if 2. List comprehensions
Saw the Stick
382
0
0
HubSpot
Very long solution, but with explanations
Triangular Islands
2
0
0
Using strip() and split()
Non Empty Lines
22
5
2
Using datetime and calendar modules
Weekly Calendar
43
1
0
Using dictionary comprehension for every side
Square Board
57
0
0
Using the positions of the remainders in repeating decimals string
Repeating Decimals
102
0
0
Using try except
Number Base
199
6
3
Using pop()
Restricted Sum
221
5
2
Using string module
Number Base
2997
0
1
Blizzard
One-liner using Permutation class from sympy.combinatorics.permutations
Permutation Index
1
12
0
Using distance_matrix and minimum_spanning_tree from scipy (with explanations)
Connect Stars
3
5
2
Longest solution (13 functions) + Explanations
Sudoku Solver
4
0
0
Adding all rectangles with dimension 1x1 in a set
Rectangles Union
7
1
0
Using 't\' and '\t'
Palindromic Palindrome
33
0
0
Using timedelta class, weekday()
Weekend Counter
63
3
0
Using math module and divmod() function
Reversed Permutation Index
77
0
0
Using datetime module, datetime class and timedelta class
The First Working Day
151
0
0
First
Stair Steps
198
0
0
Using regex
Stressful Subject
208
2
0
Using datetime
Unlucky Days
411
0
0
Using sorted() with key
Min and Max
504
1
2
Using math
The Angles of a Triangle
1401
0
1
Rock
Complicated + 1 wrong result = unfinished
Greedy Number
2
0
1
Combinations
Garland
18
0
0
Using new list creation
Sort by Removing
58
1
0
First
Super Root
235
0
0
Shelter
Using recursion and the all() function
Completely Empty
23
6
0
Using brute force (list with all opacities) + explanations
Ghosts Age
115
4
2
First
Pattern Recognition
177
0
0
Using math and floor() and ceil()
The Nearest Square Number
184
0
0
Codeship
Using while
Champernowne Word
25
0
0
Long solution, using 3 functions + comments
Rolling 🎲!
26
0
0
All possible squares
The Square Chest
104
1
0
Hermit
Using math, acos(), pi
Strawberry Fields
7
5
1
Using math module + gcd() and lcm() functions
Fractions Addition
8
5
0
Using sympy module and sympify() function
Simplification
8
1
2
Using numpy and 5 separated methods
Mono Captcha
18
0
0
Using datetime.date.weekday() and datetime.timedelta()
Birthday Party
23
0
0
Using regex
Backspace Apply
36
0
0
Using enumerate()
Excel Column Number
37
0
0
Second - using regex
Backspace Apply
37
0
0
Using re.sub() and split()
Unique Email Addresses
40
0
0
Using slice()
Shorter Set
44
0
2
Using product and map
Break Rings
45
5
2
Using itertools.combinations()
Stock Profit
47
0
0
First
The Good Radix
245
0
0
Brute-force (not optimized) using itertools (tee(), islice())
Count Consecutive Summers
360
0
0
Watchtower
Too long (7 functions)
Vigenere Cipher
2
0
0
15th - For using the 'cycle' keyword
Funny Addition
15
8
0
16th - For using StringIO keyword
Funny Addition
28
5
0
Using list comprehensions + comments
Rotate Hole
42
5
0
11th - using callable()
Funny Addition
70
2
2
4th - using isdisjoint()
Funny Addition
77
0
0
Using 2 "for" loops
Number Guess
80
0
0
Using functools.reduce()
Funny Addition
103
8
2
Using enum.Enum
Funny Addition
113
0
1
Using set
Funny Addition
114
0
0
6th - using functools.partial()
Funny Addition
115
0
0
7th - using heapq
Funny Addition
116
0
0
8th - using iter() and StopIteration
Funny Addition
117
0
0
9th - using dict.fromkeys()
Funny Addition
118
0
0
10th - using issubclass() for level
Funny Addition
119
0
0
12th - Using string.Template class and eval()
Funny Addition
120
0
0
5th - using issuperset()
Funny Addition
1131
0
0
13th - using <finally> for the Quest
Funny Addition
1132
0
0
14th - using 'with', for the quest
Funny Addition
1133
0
0
Escher
Using brute force
Hypercube
4
0
0
Using eval()
Safe Code
6
0
0
Very long, could be optimized
Treasures
6
0
0
Almost OK
Card Game
6
0
0
Using dictionary
The Secret Room
11
0
0
Using numpy
Keys and Locks
30
0
0
Using match...case
Compass, Map and Spyglass
113
1
0
List Comprehension
The Ship Teams
128
3
0
Using re and dictionary comprehension
The Stone Wall
227
0
0
Calculating area
Ground for the House
234
0
0
Not On Map
Using dictionary and list comprehension
Most Wanted Letter
4
11
2
Using len()
Length of the String
11
3
2
For, if, else
Aggregate and Count
59
0
2