July 21, 2014, 12:56 a.m. |
+ 1 |
for Comment
ciel: next(x for x in range(...) if ...)
|
July 20, 2014, 9 p.m. |
+ 1 |
for Comment
ablikexe: Hi, the problem with your code is that it is modifying the list (data) while looking at its elements...
|
July 19, 2014, 11:59 p.m. |
+ 1 |
for Comment
Sim0000: On a stick :)
|
July 19, 2014, 11:59 p.m. |
+ 1 |
for Comment
coells: :D Peanut rulez.
|
July 19, 2014, 11:59 p.m. |
+ 1 |
for Comment
veky: Who said I can't learn something new on Checkio? Today I learned about Jose Jalapeno. :-D
|
July 19, 2014, 9 p.m. |
+ 1 |
for Comment
CRoig: Apologies for misunderstanding. It seems that print (for debug) method is not working for extra test...
|
July 19, 2014, 2:51 a.m. |
+ 1 |
for Comment
pohmelie: This line of code do syntax error: SyntaxError: non-keyword arg after keyword arg
|
July 19, 2014, 2:51 a.m. |
+ 1 |
for Comment
pohmelie: I don't get you. This line is syntax error, what else? Where is it suggested? http://ideone.com/wukU...
|
July 18, 2014, 10:27 p.m. |
+ 1 |
for Comment
DiZ: Well, is your IDE running Python 2? I had same error here running in Python 3. Error is due to inter...
|
July 17, 2014, 3:29 a.m. |
+ 1 |
for Comment
Cjkjvfnby: Google how to get first item form generator (a.\_\_getitem\_\_(0) is same as a[0])
|
July 17, 2014, 3:29 a.m. |
+ 1 |
for Comment
Cjkjvfnby: Then you press try it. Next two **separate** things happens: 1. Execute you code in sandbox (run wha...
|
July 17, 2014, 2:15 a.m. |
+ 1 |
for Comment
pohmelie: Don't use set here, cause you got one element instead of multiply repeating elements.
|
July 15, 2014, 11:13 p.m. |
+ 1 |
for Comment
veky: As far as I can see, no. They are waiting for the community to sort it out. :-)
|
July 15, 2014, 11:10 p.m. |
+ 1 |
for Comment
Cjkjvfnby: You profile does not show that you have done it.
|
July 15, 2014, 9:32 p.m. |
+ 1 |
for Comment
jiahe.lim.1: Thank you! Really insightful. Didn't understand the effects of mutable arguments.
|
July 12, 2014, 11:43 p.m. |
+ 1 |
for Comment
AlexanderPirogov: This is so beautiful that I want to marry this code...
|
July 12, 2014, 11:41 p.m. |
+ 1 |
for Comment
Sim0000: I try your code. In line 36-38, you destroy adjMatrix via new Matrix. If I change the code in line 3...
|
July 12, 2014, 3:34 a.m. |
+ 1 |
for Comment
Sim0000: Dictionary are not guaranteed the order.
|
July 11, 2014, 3:58 a.m. |
+ 1 |
for Comment
VivekBose: Thank you for replying so quickly.
|
July 8, 2014, 10:20 p.m. |
+ 1 |
for Comment
Sim0000: English is not good at me, I'll explain in Japanese. 記憶だけで書いているので間違っていたらすみません。私はざっと以下のような流れでやっています。 ...
|
July 8, 2014, 10:20 p.m. |
+ 1 |
for Comment
coells: I can understand almost half of your text and I even do not know Japanese :-D
|
July 8, 2014, 9:58 p.m. |
+ 1 |
for Comment
matpel: Oh really... So dumb, and yet I checked it many times before asking for help! I guess nothing is bet...
|
July 8, 2014, 9:58 p.m. |
+ 1 |
for Comment
Bleet: This is a cool solution, but I think it would be clearer if it looked like this def checkio(number):...
|
July 7, 2014, 6:23 a.m. |
+ 1 |
for Comment
veky: As I said, it's not obvious if you're suffering from C. :-O Otherwise, it is reasonable, I guess.
|
July 2, 2014, 9:22 p.m. |
+ 1 |
for Comment
veky: I probably never will. :-D
|
July 1, 2014, 11:35 p.m. |
+ 1 |
for Comment
veky: > my code is not very pythonic, right? Sorry, I thought _that_ was obvious. :-) > Could you give me ...
|
July 1, 2014, 8:35 a.m. |
+ 1 |
for Comment
Cjkjvfnby: It is good practice to use immutable args where it is possible. Function that both mutate args and r...
|
June 27, 2014, 9:33 a.m. |
+ 1 |
for Comment
blabaster: I surrender, You win :)
|
June 19, 2014, 8:42 p.m. |
+ 1 |
for Comment
pohmelie: Labyrinth is just 12x12, you will not reach recursion limit. My solution is recursive, and it's acce...
|
June 18, 2014, 1:50 a.m. |
+ 1 |
for Comment
veky: Now you know how I feel when htamas comments my code. :-D
|
June 16, 2014, 8:21 a.m. |
+ 1 |
for Comment
AngelRaposo: Ah! OK sorry, now I see it! For some reason I ignored the word intersect and assumed that words join...
|
June 16, 2014, 5:58 a.m. |
+ 1 |
for Comment
james.verran: Generally it's not a good practice to use the letters l, I or O as variable names.
|
June 14, 2014, 8:22 p.m. |
+ 1 |
for Comment
Sim0000: I try your code and there is no problem. I use Python 3. Do you use Python 2.7? If so, division is t...
|
June 14, 2014, 8:18 p.m. |
+ 1 |
for Comment
Sim0000: Thank you for nice mission.
|
June 14, 2014, 9:16 a.m. |
+ 1 |
for Comment
Cjkjvfnby: Sorry, I missed requirement that value can be only string or dict.
|
June 12, 2014, 9:22 p.m. |
+ 1 |
for Comment
Talim42: Challenge accepted.
|
June 12, 2014, 1:09 a.m. |
+ 1 |
for Comment
Lijantropique: Mission Median.
|
June 6, 2014, 8:28 p.m. |
+ 1 |
for Comment
veky: Absolutely. And even better, you can fix it alone, you don't need to rely on anybody. :-P
|
June 6, 2014, 8:20 p.m. |
+ 1 |
for Comment
Sim0000: About 1st paragraph, in the [1,2,2] vs [1,1,3] case, player wins 4 cases and player loses 3 cases. R...
|
June 6, 2014, 8:20 p.m. |
+ 1 |
for Comment
MagiMaster: Actually, no. This isn't a bug in either. Because the players reroll on a draw, the final win probab...
|
June 5, 2014, 9 p.m. |
+ 1 |
for Comment
veky: Well, I pushed and squeezed it until it fit. :-D
|
June 5, 2014, 8:49 p.m. |
+ 1 |
for Comment
veky: Finally! Oneliner. ;-) BTW great task.
|
June 2, 2014, 11:27 p.m. |
+ 1 |
for Comment
pohmelie: Sounds great! Lot of online judjment systems (I think all of them) are cpp oriented when we talk abo...
|
May 31, 2014, 10:39 p.m. |
+ 1 |
for Comment
s7even: Long time ago, i learn Java. Now only python. Still beginner.
|
May 31, 2014, 10:39 a.m. |
+ 1 |
for Comment
Renelvon: dimension It's a generic name instead of "length", "side", etc, which would be inappropriate (i.e ar...
|
May 31, 2014, 8:49 a.m. |
+ 1 |
for Comment
gyahun_dash: # Appendix (but longer than code) In this approach, numbers are converted to 2-D coordinates (x, y) ...
|
May 28, 2014, 10:18 p.m. |
+ 1 |
for Comment
spoty: I don't want to spam this thread, but regarding to Unicode in py2 and py3 I have read interesting ar...
|
May 28, 2014, 10:18 p.m. |
+ 1 |
for Comment
veky: The only problem is people treating them as the same language. I don't have anything more to tell yo...
|
May 27, 2014, 11:02 p.m. |
+ 1 |
for Comment
panaro32: Good to know! Thanks!
|
May 22, 2014, 10:43 a.m. |
+ 1 |
for Comment
DiEvAl_0d0e0434e59e45f68684d0e: Are lines sorted by datetime?
|
May 21, 2014, 10:33 p.m. |
+ 1 |
for Comment
RyanAlexander: Very informative and detailed. Luckily I've realized that it was just asking me to count the numbers...
|
May 21, 2014, 10:32 p.m. |
+ 1 |
for Comment
gyahun_dash: 1
|
May 18, 2014, 10:35 p.m. |
+ 1 |
for Comment
nickie: [Renelvon's counters](http://www.checkio.org/mission/verify-anagrams/publications/Renelvon/python-3/...
|
May 15, 2014, 9:38 p.m. |
+ 1 |
for Comment
sandarovich: Sorry for inconvenience.I did not carefully read the task ( "a" == "A"). def checkio(text): res ={} ...
|
May 15, 2014, 9:38 p.m. |
+ 1 |
for Comment
sandarovich: Sorry for inconvenience.I did not carefully read the task ( "a" == "A"). def checkio(text): res ={} ...
|
May 12, 2014, 8:19 p.m. |
+ 1 |
for Comment
veky: Noone said tasks should be as hard as they can. :-)
|
May 11, 2014, 9:58 p.m. |
+ 1 |
for Comment
veky: What if pattern is longer than word?
|
May 10, 2014, 11:18 p.m. |
+ 1 |
for Comment
asakoRaven: Today, I tried it again. Run & Check menu can finish. My code is just on debugging. as you thought, ...
|
May 10, 2014, 11:17 p.m. |
+ 1 |
for Comment
macfreek: This code seems to be for the mission [Striped words](/mission/striped-words/), not for [The end of ...
|
May 10, 2014, 8:39 p.m. |
+ 1 |
for Comment
macfreek: First of all, in line 26, you probably mean to write **key=itemgetter(1)** instead of **key=operator...
|
May 9, 2014, 9:01 a.m. |
+ 1 |
for Comment
yulya_9060: Thanks, I've noticed this error and corrected it myself, but thanks anyway))
|
May 6, 2014, 9:47 p.m. |
+ 1 |
for Comment
Cjkjvfnby: > Input: One, two or three arguments as floats. or ints
|
May 6, 2014, 9:59 a.m. |
+ 1 |
for Comment
Kansuke: Well It was actually my fault, I am sorry. I just omitted some white spaces and now it's working cor...
|
May 6, 2014, 8:10 a.m. |
+ 1 |
for Comment
veky: Of course. But Google usually doesn't place such weight on just a domain name. Though surely it can ...
|
May 5, 2014, 8:39 p.m. |
+ 1 |
for Comment
sandarovich: Hi. Using for statement you have in variable i - values. It's not index. So palabara = i in your cas...
|
May 4, 2014, 10:42 p.m. |
+ 1 |
for Comment
macfreek: This apparently has not been fixed. The following solutions fail this test: * First of EnCuKou * Thi...
|
May 3, 2014, 7:59 p.m. |
+ 1 |
for Comment
Sim0000: You must read carefully the description of the mission. "You should check if the string contains ***...
|
May 1, 2014, 6:14 a.m. |
+ 1 |
for Comment
Cjkjvfnby: Confusing error message on checking empty code: NotImplementedError: Where is 'min'?, , 3 Fail: chec...
|
April 30, 2014, 12:47 a.m. |
+ 1 |
for Comment
ciel: By the way, Py2 default_code is wrong (syntax error). Actually I want to know how to keep compatibil...
|
April 29, 2014, 9:51 p.m. |
+ 1 |
for Comment
veky: Somebody would probably call that unreadable, though I'm perfectly ok with that. I even use it when ...
|
April 29, 2014, 4:02 a.m. |
+ 1 |
for Comment
veky: Also, you don't forbid sort (please don't now, or else I won't tell you in the future what you need ...
|
April 27, 2014, 6:54 a.m. |
+ 1 |
for Comment
brady.cheng: Hi bryukh, Just want to let you know that I've solved this task. Please ignore the aforementioned fe...
|
April 26, 2014, 7:53 p.m. |
+ 1 |
for Comment
Lasica: Okay, I feel stupid now. I must have been unconscious yesterday. I googled it again and it turns out...
|
April 26, 2014, 7:53 p.m. |
+ 1 |
for Comment
veky: You know, format is also a function. format(x, "+.2f") is much clearer for the first part.
|
April 23, 2014, 11:46 p.m. |
+ 1 |
for Comment
sprinkles: Whoops! Sorry, ha, I thought I checked that.
|
April 22, 2014, 11:13 p.m. |
+ 1 |
for Comment
Cjkjvfnby: What workflow for test recheking? Just put task back in author-debug mode?
|
April 22, 2014, 9:56 p.m. |
+ 1 |
for Comment
Lasica: 1) Yes. For example a "Stop", probably also ctrl + c/d in console if it's easy to add.
|
April 22, 2014, 9:22 p.m. |
+ 1 |
for Comment
Lasica: Having commented on something, I'd like to quickly add two things concerning code editor and interfa...
|
April 22, 2014, 9:15 p.m. |
+ 1 |
for Comment
hanpari: From quick view I would say you are over with your moves (guesses). See second line "Too many moves"...
|
April 21, 2014, 9:20 p.m. |
+ 1 |
for Comment
Lasica: Hey, As far as the main idea should be algorythmically fast, I don't know how many structures in pyt...
|
April 21, 2014, 9:20 p.m. |
+ 1 |
for Comment
Lasica: PS: using the fact that the map is in carthesian coordinates one can try using A-star algorithm with...
|
April 19, 2014, 8:45 p.m. |
+ 1 |
for Comment
s_z_p_60c43fd019354f2f94e57149: Ok it works. thx!
|
April 16, 2014, 10:17 p.m. |
+ 1 |
for Comment
macfreek: Don't be sorry for the fun I had! Thank you, I enjoyed it! And replacing mission is not bad, it keep...
|
April 16, 2014, 8:20 p.m. |
+ 1 |
for Comment
helderco: An empty list evaluates to false so len(args) == 0 is the same as not args If you place the return 0...
|
April 10, 2014, 9:37 p.m. |
+ 1 |
for Comment
JasonLin: I know what's wrong... I should use from_date to compare to_date...
|
April 6, 2014, 10 p.m. |
+ 1 |
for Comment
PositronicLlama: Yes, somehow I duplicated the implementation, and didn't notice until after it was posted :(
|
March 28, 2014, 7:19 a.m. |
+ 1 |
for Comment
qria: good point. sorry
|
March 28, 2014, 2:16 a.m. |
+ 1 |
for Comment
Aaranos: I understand most of what you have there, but will have to spend some time iterating through it to f...
|
March 28, 2014, 1:49 a.m. |
+ 1 |
for Comment
brittain.hard: You're right! Better fix it.
|
March 24, 2014, 10:48 p.m. |
+ 1 |
for Comment
lllz: Do I understand you correct, you'd like to make part of your user account open to a third party to g...
|
March 24, 2014, 10:47 p.m. |
+ 1 |
for Comment
Bassmaster: Oh I'm sorry, I didn't notice that difference. For some reason I assumed that because the letter was...
|
March 24, 2014, 9:14 a.m. |
+ 1 |
for Comment
standArt: I'm newbie in python and programming :) If smb give me some advice, about my code, I would be very t...
|
March 19, 2014, 11:20 p.m. |
+ 1 |
for Comment
veky: "Small" is misleading here. You're solving the problem in continuous space, while the original probl...
|
March 18, 2014, 9:21 a.m. |
+ 1 |
for Comment
EvgenyM: Sorry, it's my mistake. I didn't understand how to publish my solution.
|
March 16, 2014, 8:37 p.m. |
+ 1 |
for Comment
Aaranos: The birds, I rather like your tasks even if they frustrate me sometimes. Thank you.
|
March 15, 2014, 11:50 p.m. |
+ 1 |
for Comment
skbokor: thanks for your post. After consulting further literature I solved the problem and published the sol...
|
March 14, 2014, 7:53 a.m. |
+ 1 |
for Comment
turtle51: Thanks for the comment and likes -- I'm not used to that :)
|
March 12, 2014, 7:56 p.m. |
+ 1 |
for Comment
ciel: If algorithmic measurement is possible, it should be the best. For a notice: Painting Wall's desired...
|
March 9, 2014, 5:43 a.m. |
+ 1 |
for Comment
veky: > Another request, I want you to also allows this as an answer like below. Well, then it would be mu...
|
March 8, 2014, 10:56 p.m. |
+ 1 |
for Comment
nickie: Yes, after all, that was my interpretation of the author's intention... :-)
|