16
Last seen 3 years ago
Member for 4 years, 3 months, 23 days
Difficulty Normal
Initiation
return (not num%2)
Is Even
217
3
0
Using reduce
All the Same
939
0
0
Home
two lines
Sun Angle
4
11
0
with filter and count
Non-unique Elements
207
2
0
using dictionary as ordered set to keep trace of relative position
Sort Array by Element Frequency
336
0
0
not elegant, but it works
Bigger Price
510
0
0
using classes: Cell, Pawn, Pieces
Pawn Brotherhood
2710
0
0
Electronic Station
I find algorithm my myself, not elegant but it passed the tests
Inside Block
64
0
0
using getattr
Boolean Algebra
362
2
2
with classes
Brackets
2185
0
0
Scientific Expedition
Uding unicodedata
Remove Accents
25
6
0
nothing special
YAML. More Types
67
1
0
using a dict
Follow Instructions
77
0
0
For..else
Striped Words
99
5
0
with class Cipher which may be used again
Cipher Map
129
3
0
Nothing Special
YAML. Simple Dict
130
0
2
return name.replace('_',' ').title().replace(' ','')
Conversion into CamelCase
136
4
0
Using isinstance
Sum by Type
296
0
0
Using collections.defaultdict(lambda: 0)
Call to Home
445
0
0
trasforming hour to int and again to str
Time Converter (24h to 12h)
454
0
0
without re,
Bird Language
908
0
0
return sorted(numbers_array, key=lambda x: abs(x))
Absolute Sorting
3906
0
2
return ''.join(l for l in text if l.isupper())
Secret Message
4577
0
1
O'Reilly
recursive
Flatten a List
772
0
0
with class Node, each node with 4 linked nodes
Xs and Os Referee
4562
0
0
easy solution, using floor from math
Median
8317
0
0
Incinerator
Simple, because the logic of damages was already into a method of class Warrior
The Defenders
18
5
0
all works inside Warrior
The Weapons
61
0
0
With "order" as attribute of Warrior
The Warlords
64
0
0
Simple, keep the logic of damage/health into Warrior class
The Vampires
66
2
0
I dont see the point of this task
Every Person is Unique
66
0
0
With new unit type "Dead(Warrior) "
Straight Fight
70
0
0
With class Front (the first 2 warriors) which acts as Warrior, to keep fight() unchanged
The Healers
90
0
0
With all properties into the classes
The Lancers
100
0
0
with itertools.cycle and using a simple state design pattern
Multicolored Lamp
150
0
0
simple and open to further development
Army Battles
183
1
1
using a list to store the connections
Friends
188
1
1
code into the classes
The Warriors
212
3
2
Ice Base
using a dict to store rectangles (key=high, value=length)
Largest Rectangle in a Histogram
51
5
0
simple with function inside
Roman Numerals
209
1
0
iterating over line just one time
Long Repeat
885
0
0
Alice In Wonderland
Create orizontal water basins, and merge the basins in the above bacins
Flood Area
33
0
0
Recursive
Tree Walker
36
0
0
to practice generators
Zigzag Array
38
0
0
With classes Cell, Knight, Board (for further expansion)
The Shortest Knight's Path
109
0
0
for i in range(0, 2*(len(a)//2), 2): new_a.extend([a[i+1],a[i]])
Swap Nodes
110
0
2
Working on bits
IP Network: Route Summarization
150
0
0
return [[data[k][i] for k in range(len(data))] for i in range(len(data[0]))]
Transposed Matrix
605
0
0
GitHub
It gets the shorter possible path. Using classes for Cell and Map, readable
Open Labyrinth
926
0
0
Dropbox
Using classes: Cell, Queen, Board and for...else cycles
Place Queens
48
0
0
using reduce
Worth of Words
387
0
1
PyCon TW
Getting, step after step, the whole labyrinth, and using Dijkstra's algorithm to find cells near "?" and then "E"
Dark Labyrinth
26
0
0
Using classes Line, Cell, Map; considering the boxes as normal cells; open to further developement
Express Delivery
90
0
0
HubSpot
Calculating in advance the zoc for each cell, in order to be quicker
Supply Line
44
0
0
simple recursive
Restricted Sum
621
1
0
Blizzard
With classes Cell and Map
Safe Coasts
90
0
0
Shelter
with a generator of fibonacci numbers
Ghosts Age
1275
0
0
Codeship
Using Dijkstra's algorithm, with classes Line, Cell, Field
Snake Lite
21
0
0
using classes, calculating in advance the Zone of Influence of each cell.
Eaten Go Stones
30
0
0
Using classes, calculating in advance the Zone of Influence of each cell, open to further developments
The Territory of Go
34
0
0
Hermit
With binaries, xor and popcount
Mono Captcha
98
0
0
working on a table of binaries to use brute force
Break Rings
176
0
0
Watchtower
Using classes: Light and Grid, self explanatory, algorithm as per Wikipedia page
Wall Keeper
54
0
0
Calculating for each cell the coefficient with the numbers of bacteria in each direction
Bacteria Colonies
79
0
0
Not On Map
return ''.join(DIGITS[x] for x in reversed(remainders)).lstrip('0')
Base change - Position System
8
0
0