37
YASSIF
https://github.com/yyassif
Last seen 4 days ago
Member for 3 years, 8 months, 16 days
Difficulty Normal
The Fox!
Initiation
1-liner works just as much as I can hope
Replace First
1
20
6
1-liner: right padded '_' using ljust
Split Pairs
2
15
0
1-liner not
Is Even
3
21
2
zip_longest does the job
Split Pairs
8
5
4
1-liners: third one passed all tests
Nearest Value
9
19
2
1-liner
Easy Unpack
16
24
1
1-liner
End Zeros
16
17
2
1-liner
All the Same
16
6
2
2-liners: both functions work the same
The Most Frequent
27
10
1
1-liner max
Max Digit
28
11
2
1-liner always keep the f_letter uppercase
Correct Sentence
35
12
1
1-liner
First Word (simplified)
36
9
1
1-liner made easy in map filter & re.split
Split Pairs
37
10
1
1-liner
Count Digits
40
8
2
1-liner
Multiply (Intro)
50
9
0
1-liner
Sum Numbers
50
8
3
1-liner made even easier with list
Max Digit
52
9
2
1-liner: numpy.roll
Replace First
54
9
1
1-liner
All Upper I
55
9
0
itertools zip_longest docs adapted
Split Pairs
66
7
2
1-liner
Remove All Before
69
7
0
1-liner cutting
Between Markers (simplified)
79
7
0
1-liner
Number Length
80
6
1
1-liner
Acceptable Password I
82
6
2
1-liner: deque
Replace First
84
7
1
1-liner
Beginning Zeros
93
6
2
1-liner made easy
All Upper I
109
6
1
1-liner
Is Even
136
5
0
1-liner
Backward String
152
7
2
Home
6-liner: numpy.where
Duplicate Zeros
1
4
0
2-liner strftime the saver
Date and Time Converter
2
14
2
1-liner
Popular Words
2
11
2
1-liner: import numpy as np
Split List
2
7
0
1-liner
Morse Decoder
3
16
0
1-liner
Days Between
3
15
4
1-liner
Second Index
3
12
0
1-liner
Sort Array by Element Frequency
4
12
1
1-liner
Sun Angle
4
6
1
1-liner
Split List
6
9
0
1-liner
Between Markers
8
7
0
1-liner made even easier with itertools.chain.from_iterable & collections.Counter
Sort Array by Element Frequency
9
7
0
2-liner
Pawn Brotherhood
23
5
2
1-liner
Backward Each Word
38
7
2
1-liner
Bigger Price
43
10
0
array.array for speed
Non-unique Elements
48
8
0
1-liner
First Word
84
8
0
itertools & collections.Counter
Sort Array by Element Frequency
133
6
1
1-liner
Even the Last
143
15
4
10-liner: length of all possible changes except the initial step
Changing direction
145
0
0
8-liner: Iterate over min-> max via step and find missing number
Missing Number
172
0
0
1-liner
Three Words
228
7
2
1-liner
Right to Left
292
6
1
1-liner
Non-unique Elements
422
9
4
Electronic Station
All possible combinations
Remove Brackets
1
69
7
1-liner: str.isupper
All Upper II
1
23
3
1-liner
Unix Match. Part 1
1
13
2
1-liner
Acceptable Password IV
2
9
1
thats not a practical solution
Similar Triangles
3
8
2
1-liner
Unix Match. Part 2
3
6
2
4-liner: Sympy Polygon
Inside Block
3
5
0
1liner
All Upper II
5
17
0
1-liner
All Upper II
5
5
2
1-liner
Ascending List
5
5
0
7-liner: short and fast
Remove Brackets
6
19
0
1-liner
Acceptable Password III
7
2
0
16-liner: Path-Finding -> Visited Neighbors are ignored
Can You Pass?
8
10
2
Use rpartition as a key to sorted
Sort by Extension
8
4
0
3-liner: issubset does a better job hindering the False statements
Words Order
8
4
0
2-liner: reduce & operator.mul
Digits Multiplication
11
10
0
7-liner: remove numbers! Compare Brackets ¯\_( ͡▀̿ ̿ ͜ʖ ͡▀̿ ̿ )_/¯
Brackets
12
5
0
1-liner passes the test while it is not accurate
Acceptable Password II
12
3
0
1-liner
Acceptable Password V
12
1
0
1-liner not accurate but passes the set
Surjection Strings
18
0
0
1-liner
Acceptable Password VI
20
0
0
2-liner sorted
Verify Anagrams
37
1
0
29-liner: disjunction of cases
Find Sequence
43
11
0
Second
Digits Multiplication
62
4
1
9-liner: operator module
Boolean Algebra
94
7
1
2-liner
Verify Anagrams
188
0
1
Scientific Expedition
1-liner
Goes Right After
1
18
5
1-liner: thank to the text transform function
YAML. More Types
1
18
1
3-liner: unicodedata normalization
Remove Accents
1
16
5
Used What I've learnt lately :D Walruses, numpy.trnaspose and right padding(ljust)
The Hidden Word
1
12
0
1-liner
Conversion from CamelCase
2
14
0
1-liner re make the work looks professional
YAML. Simple Dict
2
10
1
very explicit
YAML. Simple Dict
3
29
0
1-liner: index fetching
Caps Lock
3
13
2
1-liner
Conversion into CamelCase
3
9
0
1-liner: re Context of reference to group \g<0> == \1
Bird Language
4
26
0
9-liner: numpy.rot90(grille, -1) in a loop
Cipher Map
4
14
2
1-liner
Sum by Type
4
8
2
1-liner puzzling
Follow Instructions
5
11
0
1-liner
Pangram
5
8
0
1-liner
Absolute Sorting
7
9
0
1-liner
Common Words
7
8
0
1-liner
Time Converter (24h to 12h)
9
23
1
1-liner
Follow Instructions
11
18
3
5-liner: used the built-in translate to MorseCode it
Morse Clock
13
5
1
1-liner sort by frequency taking precautions using asccii_lowercases
The Most Wanted Letter
13
5
1
1-liner collections.Counter
The Most Wanted Letter
14
5
1
7-liner: defaultdict
Convert and Aggregate
14
5
1
11-liner: cost is 2 times coins when price gt 100
Call to Home
16
9
2
1-liner re
Secret Message
18
5
1
4-liner: Modify the output after each command
Letter Queue
24
7
0
11-liner: had to assign consonants and vowels a sign number
Striped Words
33
15
0
Counter
The Most Wanted Letter
119
8
2
1-liner
Secret Message
161
11
1
Moment of Honesty
I Love Python!
211
7
4
O'Reilly
7-liner: if you can't dimension it, Stringify it
How Deep
1
43
4
2-liner: Think of it as a coincidance
Median of Three
1
18
0
1-liner: itertools.groupby
Compress List
1
17
1
4-liner: Done using chain & zip
Chunk
1
9
0
made easier using insert
Sort Except Zero
2
11
1
1-liner
Remove All After
2
7
0
13-liner: check every single words permutations
Cipher Crossword
3
16
2
3-liner
Reverse Every Ascending
3
7
0
1-liner: sorted by count & index(natural order)
Frequency Sorting
4
6
0
4-liner: sum it up
Sum of Digits
4
5
2
Generator Version
Flatten a List (generator version)
4
5
0
1-liner
Index Power
5
11
1
1-liner
Majority
5
6
1
using numpy
Median
5
5
0
1-liner: chr translation
String-2-Matrix
5
0
0
1-liner numpy
Median
6
8
0
2-liner: chr and edge case handling
Matrix-2-String
6
0
0
1-liner statistics
Median
7
8
0
12-liner: optimized thanks to Phil15
Cipher Crossword
7
5
0
1-liner pure lingo
Median
9
8
0
1-liner: itertools.compress
Compress List
9
3
2
1-liner: basically each substring is enumerated
Count Inversions
11
17
1
compressed
Compress List
11
13
0
9-liner: sort by characters & maintain the NEW order
Determine the Order
11
11
1
7-liner: convert datetime to total seconds
Lightbulb Intro
11
8
3
1-liner
Chunk
14
8
0
4-liner: All possibles moves in 1set
Xs and Os Referee
15
30
2
Using Generators
Flatten a List
17
5
0
5-liner: longest conditional line I've ever written
Time Converter (12h to 24h)
18
10
1
9-liner: Well I had to Brute Force
Loading Cargo
18
5
0
Function Recursion
Flatten a List
22
15
0
Flat dictionary using Function Recusrsion
The Flat Dictionary
22
7
0
1-liner: statistics already have it
Median
24
5
0
Reversed at its finest
Integer Palindrome
34
0
1
Best One liners ever
Median
40
10
0
1-liner
Replace Last
64
5
2
17- liner: condition for start_watching
Lightbulb Start Watching
220
0
0
Incinerator
Unicity is a must! ;)
Every Person is Unique
2
6
0
8-liner: Setup city_name after instantiating for the first time
Capital City
3
21
0
After All Strategy Design Pattern was helpful
Geometry Figures
4
11
0
23-liner: collections.defaultdict(set) does pretty much the job
Friends
4
6
1
17-liner: The Language was Hacked Successfully!
Hacker Language
5
9
0
15-liner: The City Has Been Built Made Carefully
Building Base
6
16
1
11-liner: you cannot copy a shallow version, so deepcopy it
Text Editor
6
12
0
No Oven is left behind!
Microwave Ovens
6
6
0
The Warriors: Shortened after solving army battles
The Warriors
10
21
1
20-liner: Swordsman, Lancer & Archer Are all Soldiers
Army Units
10
7
0
Do you think your code can defend mine? I don't think so
The Defenders
12
6
2
23-liner: Your TV have been controlled succesfully (Detailed Code)
Voice TV Control
13
6
0
Can you beat my Army?
Army Battles
14
13
1
I am Moving Everything Into the Classes
The Vampires
14
5
0
20-liner: HumanoRobotic Dialogues Have been Achieved Successfully
Dialogues
16
5
0
14-liner: The Momento Storing Class Have Shown Cool Efforts
Text Editor
19
5
0
10-liner: Everyone is Invited to the Party!
Party Invitations
24
4
1
All Clients are served :P
3 Chefs
29
5
0
7-liner: sequential indexing
Multicolored Lamp
67
5
0
Can you defeat me?
The Warriors
109
5
1
Mine
4-liner: aim for the accuracy dawg
Determinant
2
12
2
58-liner: It'd be better instead of 20 collisions, a limit distance where the fly dies.
Escape
2
11
2
2-liner: thanks itemgetter
Best Stock
3
12
0
hexed coordinates
Find Enemy
3
11
1
1-liner: numpy determinant
Determinant
3
7
4
15-liner: Generate possible moves of moves @ each count
Chess Knight
4
15
0
1-liner: split conditions into list of lists
Fizz Buzz
7
25
0
9-liner: Cut by split & go on each stack
Cut Sentence
7
16
1
10-liner: re.sub
Caesar Cipher (decryptor)
7
7
1
1-liner: formatting strings
Binary Count
8
10
1
10-liner: had to make some changes to my previous solution
Caesar Cipher (encryptor)
8
5
0
2-liner: SymPy equation solver
Achilles and the Tortoise
10
11
1
7-liner: builtin functions
Caesar Cipher (decryptor)
13
5
0
Created GCD as Euclid Algorithm
The Greatest Common Divisor
16
11
0
4-liner: functools.cmp_to_key is a useful sorting key
Bigger Together
21
5
0
1-liner: numpy det
Determinant
23
0
0
5-liner: looping gcd through args
The Greatest Common Divisor
25
9
0
10-liner: had to create my replace function
Caesar Cipher (encryptor)
37
9
0
1-liner: fomatting strings in binary
Binary Count
52
5
0
operations table
Aggregate by Operation
72
0
0
conditionals
Fizz Buzz
137
15
1
1-liner
Binary Count
171
8
1
Respect the grid boundaries & Play With DIRS navigation
Moore Neighbourhood
186
5
2
Ice Base
6-liner: time module & our the hour-min equation
Clock Angle
2
10
0
2-liner: literally generate every possible square!
Largest Rectangle in a Histogram
2
9
0
simplified by fractions.Fraction
Oil Pie
3
5
0
17-liner: Count 🔗 1 by 1
Count Chains
3
5
0
4-liner: remove all zeros and add them at the end
Move Zeros
4
9
0
itertools.product and np.rot90
Identify Block
6
5
0
1-liner
Find Quotes
7
20
1
12-liner: path-finding neighbor friends
How to Find Friends
9
22
4
Thanks stackoverflow
Roman Numerals
10
8
1
8-liner: Dynamic Programming Implementation
Making Change
12
5
0
1-liner
Morse Encoder
13
13
1
1-liner
Roman Numerals
14
6
0
2-liner re.finditer
Long Repeat
23
5
0
1-liner
Monkey Typing
24
15
0
7-liner: Points in a Quarter Circle Can Be Useful
Counting Tiles
26
7
0
9-liner: Feed Pigeons the right way!
Feed Pigeons
27
12
3
1-liner
The Most Numbers
140
11
0
Alice In Wonderland
4-liner: conditionals
When is Friday?
1
13
1
2-liner: numpy Transposition method
Transposed Matrix
3
6
0
2-liner: strptime
When is Friday?
5
24
2
4-liner: Swap each pair
Swap Nodes
5
15
0
11-liner: sum of all operations(and, or & xor) at once
Multiplication Table
7
13
1
1-liner: Transposition using zip
Transposed Matrix
12
10
2
9-liner: Function recursion for the leaves of fall
Tree Walker
12
5
0
1-liner: proceed by each chunk of data
Long Non Repeat
18
7
0
6-liner: How many winners are there?
The Fastest Horse
20
7
2
Caught the ZIGZAG *_*
Zigzag Array
26
5
0
2-liner: ceil & floor
Middle Characters
34
5
0
GitHub
Merge Intervals as a Generator Version
Merge Intervals
1
10
0
9-liner: Generator
Merge Intervals (generator version)
1
9
0
2-liner: numpy rot90 * 3 & enumerate the indexing
The Highest Building
2
5
0
2-liner: itertools.permutations
The End of Other
15
5
0
9-liner: enumerate each interval
Create Intervals
29
5
0
10-liner: Counter & defaultdict
The Most Frequent Weekdays
32
7
1
Dropbox
1-liner hash
Simple Hashlib
6
15
1
8-liner: Sympy Circle of 3x Points
Three Points Circle
6
5
0
know your place -_-
Worth of Words
12
10
0
Why 101?
The Best Number Ever
61
5
1
7-liner: Got Palindormes
The Longest Palindromic
78
5
0
15-liner: working perfect for <= 9999
Speech Module
116
8
2
PyCon TW
12-liner: Solved a System of Linear Equations
How Much Gold
1
8
0
2-liner: groupby made it easy
Sum Consecutives
3
5
0
If you are stuck ar-range it!
Ryerson Letter Grade
10
11
0
10-liner: Robotic Sorting
Robot Sort
10
5
0
10-liner: Digits Stacked Perfectly
Digit Stack
13
7
0
18-liner: jump from island to island.
Calculate Islands
19
5
0
6-liner: thanks to Heron’s formula
Simple Areas
33
8
1
7-liner: reverse it in order to make it easy
Golden Pyramid
62
5
0
5-liner: pure regex
House Password
139
9
0
4-liner: Satisfy All Conditions line by line
House Password
374
5
1
Storage
2-liner: Used groupby for the second time in a single day
Group Equal consecutive
2
11
0
2-liner: MATRIX TRANSPOSED & enumerated by coords
Weak Point
2
5
0
2-liner: Use As Much Conditions As You Can, It's Free ;)
Word Pattern
2
5
0
7-liner: datetime: placeholder & formatter
Convert Date
34
0
0
5-liner: numpy.allclose
Skew-symmetric Matrix
156
0
0
HubSpot
thanks to defaultdict I was able to link Nodes
Node Disconnected Users
1
16
4
1-liner
Weekly Calendar
2
6
5
3-liner: splitted by new lines
Non Empty Lines
2
5
0
48-liner: Generate connections & start path-finding
Triangular Islands
5
5
0
2-liner: itertools.zip_longest
The Hamming Distance
7
5
0
11-liner: Pretty The Dream of eveyone
Number Base
9
10
1
3-liner: bascially checkio = int if no error to catch
Number Base
20
5
1
1-liner: evaluate it
Restricted Sum
187
6
0
Blizzard
3-liner: loop all over the numbers
Stair Steps
2
10
0
35-liner: Backtracking Algo
Sudoku Solver
2
4
1
1-liner: palindrome thanks to textreverse.com
Palindromic Palindrome
3
15
0
11-liner: Function Recursion
String Conversion
4
5
0
1-liner date extended by timedelta
Weekend Counter
6
5
0
2-liner: date split into mm-13-yyyy dates
Unlucky Days
7
21
1
thanks to timedelta
Weekend Counter
8
11
1
HOLY BOOLEAN
The First Working Day
8
8
0
1-liner: thanks re.search +[!-.]* pattern replacement
Stressful Subject
21
13
2
4-liner: How many squares in a set of squares!
Rectangles Union
23
5
1
6-liner: thanks wikipedia for the equations
The Angles of a Triangle
137
5
1
Rock
10-liner: Sort By Catching IndexError
Sort by Removing
1
9
2
3-liner: W Lambert Function
Super Root
2
11
1
7-liner: Sorted By Copy And Clear
Sort by Removing
3
10
3
Shelter
10-liner: numpy slicing 2D-Arrays
Pattern Recognition
1
10
1
2-liner: My own Iterable Checker
Completely Empty
3
5
0
30-liner of nice-scattered code
ADFGVX Cipher
11
5
0
29-liner: apply sieve table to the encoded message
AMSCO Cipher
11
5
0
8-liner: Mainly specified each single case.
Completely Empty
15
8
0
2-liner: so much math
The Nearest Square Number
17
5
0
Hermit
1-liner: sympy
Simplification
3
6
0
7-liner: set concept
Unique Email Addresses
4
6
0
Watchtower
1-liner: checkio = sum
Funny Addition
27
5
0
Escher
1-liner: Perfect Combo
The Stone Wall
2
5
0
8-liner: min of min indexes and max of max indexes
Ground for the House
3
5
0
13-liner: normalize distances
Compass, Map and Spyglass
5
5
1
3-liner
The Ship Teams
26
9
0
4-liner: set concept
The Ship Teams
31
8
3
Not On Map
collections.Counter
Most Wanted Letter
3
11
0
1-liner: str Class Method
Length of the String
5
5
2
6-liner: defaultdict does the job
Aggregate and Count
6
5
0