March 6, 2021, 8:20 a.m. |
+ 1 |
for Comment
ithink2020_01e0c5f00e1e4e2eb88: Nice one-liner.
|
Jan. 22, 2021, 5:15 a.m. |
+ 2 |
for
Publishing a solution for quest-myaccountneededaname
|
Jan. 21, 2021, 4:49 a.m. |
+ 3 |
for
lambda-KirillovaV
|
Jan. 21, 2021, 4:49 a.m. |
+ 1 |
for
First-askerovfuat
|
Jan. 21, 2021, 4:48 a.m. |
+ 2 |
for
First-yuripersev
|
Jan. 16, 2021, 8:45 a.m. |
+ 1 |
for Comment
SasuH: Identical to mine.
|
Jan. 8, 2021, 11:02 a.m. |
+ 1 |
for Comment
Wakko_Warner: Same as my solution 😃
|
Dec. 30, 2020, 2:17 a.m. |
+ 1 |
for Comment
hodesagustin: Hi. Keep in mind that I'm just learning Python, and maybe something I say could be wrong, if so, ple...
|
Dec. 29, 2020, 3:34 a.m. |
+ 1 |
for Comment
Pouf: Well, I'm glad I didn't go this way :D I tried and failed, though. Good job !
|
Dec. 29, 2020, 3:34 a.m. |
+ 1 |
for Comment
igharok: Very interesting approach - the real alternative to the brute force double loop
|
Dec. 29, 2020, 3:34 a.m. |
+ 1 |
for Comment
martin_b: Thanks. I was aware of the brute force solution but wanted to try it differently.
|
Dec. 29, 2020, 3:33 a.m. |
+ 1 |
for
This week's missions: Count Comprehensions and Mountain Scape
|
Dec. 29, 2020, 3:32 a.m. |
+ 1 |
for Post
The new mission "Call to Home"
|
Dec. 29, 2020, 3:30 a.m. |
+ 1 |
for Comment
oduvan: fixed. Thank you
|
Dec. 29, 2020, 3:30 a.m. |
+ 1 |
for Comment
Phil15: @oduvan Bug [here](https://github.com/CheckiO-Missions/checkio-task-calls-home/blob/master/editor/in...
|
Dec. 29, 2020, 3:29 a.m. |
+ 1 |
for Comment
Sim0000: (min - 100) * 2 + 100 = 2 * min - 2 * 100 + 100 = 2 * min - 100
|
Dec. 28, 2020, 3:34 a.m. |
+ 1 |
for Comment
bsquare: Nice solution, some suggestions: - you could replace time by _ because you don't use it (and you don...
|
Dec. 28, 2020, 3:34 a.m. |
+ 5 |
for
Counter-Sim0000
|
Dec. 28, 2020, 3:33 a.m. |
+ 1 |
for Comment
tommycarstensen: @Sim0000 Yup yup, makes sense. Thanks.
|
Dec. 28, 2020, 3:33 a.m. |
+ 1 |
for Comment
tommycarstensen: What is the advantage of using collections.Counter() instead of a dictionary?
|
Dec. 28, 2020, 3:33 a.m. |
+ 1 |
for Comment
Sim0000: Main advantage is no need to initialize. Counter's default value is 0. It is useful for simplicity. ...
|
Dec. 28, 2020, 3:33 a.m. |
+ 1 |
for Comment
blabaster: Counter() instead defaultdict(int) - it's right! By the way, someone calculate daily bill so: max(t,...
|
Dec. 28, 2020, 3:10 a.m. |
+ 1 |
for Comment
DiEvAl_0d0e0434e59e45f68684d0e: Are lines sorted by datetime?
|
Dec. 28, 2020, 3:10 a.m. |
+ 1 |
for Comment
bryukh: Early I thought it's not necessary. But after you comment changed my opinion and added in preconditi...
|
Dec. 28, 2020, 2:58 a.m. |
+ 1 |
for Task
Call to Home
|
Dec. 27, 2020, 1:22 a.m. |
+ 1 |
for Comment
Phil15: Great! I hope you learnt a few things. You can mark the post as "resolved". And in advance, Happy Ne...
|
Dec. 26, 2020, 12:56 p.m. |
+ 1 |
for Comment
Phil15: As said before, line 19 if dist(corner, center) >= radius: ~~ Well you changed the other sign `<` li...
|
Dec. 26, 2020, 12:56 p.m. |
+ 1 |
for Comment
Phil15: for *center, radius in sensors: for i, corner in enumerate(rect_corners): # to be not covered, the c...
|
Dec. 26, 2020, 12:56 p.m. |
+ 1 |
for Comment
Phil15: I may have misread the first part since you changed "not covered" to "covered". Ah zut, I misread yo...
|
Dec. 26, 2020, 12:56 p.m. |
+ 1 |
for Comment
Phil15: Well after all this time, I decided to test it myself, and this little **fix** below is enough to pa...
|
Dec. 24, 2020, 10:57 a.m. |
+ 4 |
for
First_Half-Sillte
|
Dec. 24, 2020, 10:57 a.m. |
+ 5 |
for
Better than nested? Nah.-veky
|
Dec. 24, 2020, 10:41 a.m. |
+ 1 |
for Comment
nickie: Your DP solution uses a vector of Booleans to represent the set of all possible sums. Simply initial...
|
Dec. 24, 2020, 10:41 a.m. |
+ 1 |
for Comment
guido: for s in itertools.chain.from_iterable(itertools.combinations(stones, r) for r in range(1, max_size ...
|
Dec. 24, 2020, 10:41 a.m. |
+ 1 |
for Comment
guido: max_size = math.ceil(len(stones) / 2) Use the // operator ("floor division") to do integer division ...
|
Dec. 24, 2020, 10:41 a.m. |
+ 1 |
for Comment
guido: def min_diff(self, stones): What should the answer be if stones is an empty list? I think it should ...
|
Dec. 24, 2020, 10:41 a.m. |
+ 1 |
for Comment
guido: best = None If you initialize best to a large enough value you won't need to special-case "best is N...
|
Dec. 24, 2020, 10:41 a.m. |
+ 1 |
for Comment
PositronicLlama: return 1 << (len(stones) - 1) Thanks for all the code review feedback! I appreciate the time you put...
|
Dec. 24, 2020, 10:41 a.m. |
+ 1 |
for Comment
guido: return 1 << (len(stones) - 1) This is probably better written as 2 ** (len(stones) - 1), so the read...
|
Dec. 24, 2020, 10:40 a.m. |
+ 1 |
for Comment
bryukh: Super! I like selection of algorithm.
|
Dec. 24, 2020, 10:40 a.m. |
+ 5 |
for
First-takapt0226
|
Dec. 24, 2020, 10:09 a.m. |
+ 1 |
for Comment
bryukh: The most simple brute-force is use itertools.combinations and check combinations with different leng...
|
Dec. 24, 2020, 9:44 a.m. |
+ 4 |
for
Pseudo-Morse-PositronicLlama
|
Dec. 24, 2020, 5:58 a.m. |
+ 1 |
for Task
Morse Clock
|
Dec. 24, 2020, 5:51 a.m. |
+ 1 |
for Task
Simplify Unix Path
|
Dec. 21, 2020, 5:26 a.m. |
+ 1 |
for Comment
veky: Because _something_ has to be at the bottom of the hierarchy. Python is too Western to be comfortabl...
|
Dec. 21, 2020, 5:26 a.m. |
+ 1 |
for Comment
artemrudenko: The only thing to add here is that it's recomended to use isinstance instead of type.
|
Dec. 21, 2020, 5:26 a.m. |
+ 3 |
for
Ignalion's twist-nickie
|
Dec. 21, 2020, 5:26 a.m. |
+ 5 |
for
60-DiZ
|
Dec. 21, 2020, 5:25 a.m. |
+ 1 |
for Comment
DiZ: And certainly possible to go down by changing type test. Edit: Well, Veky's idea breaks down charact...
|
Dec. 21, 2020, 1:23 a.m. |
+ 1 |
for Comment
Phil15: `width, height = rect_corners[2]` is right for `origin == (0, 0)` but wrong otherwise. It probably l...
|
Dec. 19, 2020, 12:04 p.m. |
+ 5 |
for
First-Sim0000
|
Dec. 19, 2020, 12:03 p.m. |
+ 4 |
for
7-liner: Sim0000's simplified-przemyslaw.daniel
|
Dec. 19, 2020, 12:01 p.m. |
+ 1 |
for Comment
przemyslaw.daniel: This is beautiful algorithm. When iterating we have to check if father with his ancestors has nothin...
|
Dec. 19, 2020, 10:10 a.m. |
+ 1 |
for Comment
narimiran: Don't know if this is intentional: After solving a mission, if you're not 'awesome user' you have to...
|
Dec. 19, 2020, 10:09 a.m. |
+ 1 |
for
New Monthly Leaderboard
|
Dec. 19, 2020, 8:59 a.m. |
+ 1 |
for Comment
Phil15: First, there are good things. Second, a few notes and simplifications: - 10 is probably a too large ...
|
Dec. 19, 2020, 4:56 a.m. |
+ 1 |
for Post
A new mission "What is wrong with this family?"
|
Dec. 19, 2020, 4:53 a.m. |
+ 1 |
for Comment
kurosawa4434: Hi kuzdras. Your solution depends on the order of input values. It becomes 'True' if you read the in...
|
Dec. 17, 2020, 11:42 a.m. |
+ 1 |
for Comment
Phil15: First, this was to use `string.Template` which I don't find useful, since there are great other ways...
|
Dec. 17, 2020, 11:42 a.m. |
+ 1 |
for Comment
Phil15: Birth 1991-06-15 15:15. Hence I kind of use 15 a lot. But my age is almost twice as old.
|
Dec. 17, 2020, 10:40 a.m. |
+ 1 |
for Comment
Phil15: Hi @quarkov long time no see! 1. (xi, yi, ri) like quarkov said 2. Well I did not think I was talkin...
|
Dec. 17, 2020, 9:41 a.m. |
+ 1 |
for Comment
quarkov: 1. It was written that _circle defined by the coordinates of its center (xi, yi), and its radius Ri_...
|
Dec. 17, 2020, 1:27 a.m. |
+ 1 |
for Comment
Phil15: I'm gonna try to explain the mission with other words. You have a rectangle and a list of circles, a...
|
Dec. 17, 2020, 1:25 a.m. |
+ 1 |
for
PEP 498 - f-strings for Python 3.6
|
Dec. 17, 2020, 1:23 a.m. |
+ 3 |
for
string.Template-oduvan
|
Dec. 17, 2020, 1:22 a.m. |
+ 1 |
for Comment
levelup_oduvan: this is awesome!!
|
Dec. 17, 2020, 1:22 a.m. |
+ 4 |
for
str.format --- without def/lambda-flpo
|
Dec. 17, 2020, 1:22 a.m. |
+ 1 |
for Comment
oduvan: so many likes. I hope people will also check [our article about f-string](https://py.checkio.org/blo...
|
Dec. 17, 2020, 1:22 a.m. |
+ 4 |
for
Say Hi-svartmetall
|
Dec. 17, 2020, 1:21 a.m. |
+ 1 |
for Task
Say Hi
|
Dec. 17, 2020, 1:19 a.m. |
+ 1 |
for Comment
myelhusseiny: Hiii, I'm sorry I don't understand either :/ But I hope you have a merry Christmas, a happy New Year...
|
Dec. 16, 2020, 11:59 a.m. |
+ 4 |
for
recursion-yoichi
|
Dec. 16, 2020, 9:29 a.m. |
+ 1 |
for Task
Mathematically Lucky Tickets
|
Dec. 16, 2020, 9:17 a.m. |
+ 1 |
for
How to improve CheckiO missions?
|
Dec. 16, 2020, 9:15 a.m. |
+ 4 |
for
Encode and check-veky
|
Dec. 16, 2020, 9:11 a.m. |
+ 3 |
for
First-RRRQ
|
Dec. 16, 2020, 9:11 a.m. |
+ 1 |
for Comment
moazaaa: Really interesting, as a noob I would never have found a way like this one :p @metabuddy : find retu...
|
Dec. 16, 2020, 6:22 a.m. |
+ 4 |
for
meh-ssk8
|
Dec. 16, 2020, 2:38 a.m. |
+ 4 |
for
Stackless-blabaster
|
Dec. 16, 2020, 2:35 a.m. |
+ 1 |
for Comment
hijarian: :) No real offence, I was just mildly joking. In real developer team you most possibly want to split...
|
Dec. 16, 2020, 2:33 a.m. |
+ 4 |
for
Stack-veky
|
Dec. 16, 2020, 2:29 a.m. |
+ 1 |
for Comment
ssk8: This solution works either way so it's unnecessary and I don't remember why I used it. I think that ...
|
Dec. 15, 2020, 10:41 a.m. |
+ 1 |
for Task
Striped Words
|
Dec. 15, 2020, 10:30 a.m. |
+ 1 |
for Comment
veky: This is exactly why walrus is killing Python. :-P You have lame names and indexing instead of writin...
|
Dec. 15, 2020, 2:29 a.m. |
+ 1 |
for Comment
Rcp8jzd: Very clever use of str.maketrans. This function keeps only one translation for each character of str...
|
Dec. 15, 2020, 2:29 a.m. |
+ 3 |
for
str.maketrans-flpo
|
Dec. 15, 2020, 2:28 a.m. |
+ 4 |
for
zip-kurosawa4434
|
Dec. 15, 2020, 2:25 a.m. |
+ 1 |
for Task
Surjection Strings
|
Dec. 14, 2020, 11:47 a.m. |
+ 4 |
for
First-panaro32
|
Dec. 14, 2020, 11:38 a.m. |
+ 1 |
for Task
Verify Anagrams
|
Dec. 14, 2020, 11:37 a.m. |
+ 1 |
for Task
Find Sequence
|
Dec. 14, 2020, 11:34 a.m. |
+ 4 |
for
Double ended-veky
|
Dec. 14, 2020, 11:33 a.m. |
+ 1 |
for Comment
veky: ah. :-) I see what's going on. You see, Python (and many other languages) have a thing called "stand...
|
Dec. 14, 2020, 10:55 a.m. |
+ 1 |
for Task
Letter Queue
|
Dec. 14, 2020, 10:36 a.m. |
+ 1 |
for Comment
ddavidse: Yeah I just realized that you meant just dropping the else and putting return on a new line. However...
|
Dec. 14, 2020, 10:18 a.m. |
+ 1 |
for Comment
ddavidse: L stands for List, it's what I call any list when I'm too lazy to think of a proper name I don't kno...
|
Dec. 14, 2020, 9:49 a.m. |
+ 1 |
for Task
Brackets
|
Dec. 14, 2020, 4:14 a.m. |
+ 4 |
for
Unix Match, part 1-ddavidse
|
Dec. 12, 2020, 4:03 a.m. |
+ 1 |
for Comment
colinmcnicholl: Very good. I would not have deduced from reading the python docs for unicode module that category(c)...
|