4 kyu
Challenge Fun #20: Edge Detection
28 of 49myjinxin2015
Loading description...
Algorithms
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
If even ZED needed dozens of lines of code to solve this one, you know this is a tough kata ;)
And Ruby fork, too =P
merged description and approved
JS fork with the same upgrades listed below (or more :) )
merged description and approved
Python fork:
approved
Image in the description is not loaded.
http://media.openjudge.cn/images/1009_1.jpg
fixed by your translation
I have some issues with this kata, while all other katas seem to be working fine this already almost times out from just using "pass" and I have no idea why.
this kata is fine, no timing issues
Ruby 3.0 should be enabled.
Updated to 3.0. Had to change the number of random tests from 100 to 80.
But only 1 fixed test case covers the whole range; the random tests rarely goes above 10^6 pixels, making this input range misleading and not enforced.
fixed by 4500zenja1 in all languages
Difficult, but definitely learned a lot doing this one. Not sure the effort unrolling loops and list comprehensions in order to squeeze out the last milliseconds of efficiency was time well spent, though.
Python 3.6 needs to be enabled.
You already did that ;-)
the implementation has simple code, but during the optimization process a monster was born :) Cool kata!
Cool kata! I find it unfair that it's been apparently sitting for a year forgotten by the world.
Python Translation Ruby Translation
Approved. Approved. O_o
Hi, I have some problems with this kata. Here is test:
For this test we have width = 9, then we have 45 times value 133... From this, I'm sure that first 4 rows on output must be zeros. So it should be
9 0 36...
. Am I wrong?Thanks!
I've completely forgotten how my code works, and I'll check it if I have enough time (not now) ;-)
Code changed. Please retry ;-)
It works! Nice kata!
Congrats for
1dan
;-)Thanks!