6 kyu
■□ Pattern □■ : Wave
298 of 900myjinxin2015
Loading description...
ASCII Art
Puzzles
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.
i struggled with this one. trick is to work out what you need to focus on early. lots of peeps here saying it was easy, but not this guy :)
PHP Translation.
This is a kata that looks hard, but not as hard when you do it :)
I know this is old and not popular kata, but i have a issue with random test, basic test are fine. RandomTests @ Test Failed Expected string length 26 but was 5. Strings differ at index 3. Expected: "□■\n□■\n□■\n□■\n□■\n□■\n■■\n■■\n■■"' But was: "“□■\n■■"
Hi,
Not an issue a question. You don't provide the input value so the problem is most likely in your code. Just print the input to the console to knwo what case your test is failing.
(this might help)
Hi, Print the input help me understand whats is wrong in my code.
Thanks.
Haskell translation: https://www.codewars.com/kumite/63dbfd2ce4d10b04524d2642?sel=63dbfd2ce4d10b04524d2642
Approved
I don't get the random tests here. What's that all about?
My bad, Johan is a legend and is on it, fixing it.
It's Sherrif Johan now.
Fixed
--
The Sherrif
( Is this how Blind became Gandalf? At least Carrot made himself Carrot. )
description is scary but kata is very easy.. :)
C++ missing
#include <string>
in initial solution and perhaps test case section as pointed out hereadded
The kata is nicely challenging, but the instructions are incomplete and it is difficult to understand what the exact conditions to put '■' are. How was I supposed to know that '■' must be put in place of Max and then (Max - 1) over each next line? From the sample tests it seemed like it should be in place of a maximum number of each line. Much time wasted. Please correct the instructions and make samples with numbers with difference more than 1 between them.
Any addition to the description is unnecessary, It's up to you to understand the requirements given and come up with an approach. Any further corrections are based on the comparison you make with the results from the
test
/attempt
tests.TLDR: Solving on CW is TDD oriented. closing.
For C translation it says
I thought that wording misleading because it reads like the entire histogram string is allowed to have a trailing L'\n'. But it's not OK.
ok, i rewrote that
nice kataA!
JS:
fixed
C translation (author gone)
Thanks :)
Python translation is ready! Please, review and approve :)
Approved. Thanks ;-)
nice kata and character choice
This comment has been hidden.
OK, well done. another kata seems has the same issue, but I forget which one, let me search in my comment history, please wait.. ;-)
OK, this one: https://www.codewars.com/kata/56e6705b715e72fef0000647/discuss#5815b96bc6b6d5525e00002f
And smile67 has a same issue(https://www.codewars.com/kata/basics-02-string-array-result/discuss/csharp)
@Dentzil, @Dentzil, @Dentzil, @Dentzil, @Dentzil, @Dentzil
For the C++ translation, the hidden tests do not compile.
The error shown is:
-isystem /runner/frameworks/cpp fatal error: 'boost/algorithm/string/join.hpp' file not found #include <boost/algorithm/string/join.hpp> ^ 1 error generated.
Thanks!
Oh, I think we need a @Dentzil ;-)
Has this been resolved? I'm getting:
Test Results: -isystem /runner/frameworks/cpp fatal error: 'boost/algorithm/string/join.hpp' file not found #include <boost/algorithm/string/join.hpp> ^ 1 error generated. STDERR: -isystem /runner/frameworks/cpp fatal error: 'boost/algorithm/string/join.hpp' file not found #include ^ 1 error generated.
when I try to run the suite.
Sorry, @Dentzil haven't noticed this issue :(
@Dentzil, @Dentzil, @Dentzil, @Dentzil, @Dentzil, @Dentzil ;-)
Hi
MilheiroSantos
andspace33071
,i have just fixed the issue. The tests must work.
@Dentzil, Thank you, just tried it and it worked
Maybe you should pick one example with array consisting a least 1 zero? Cause now I need to rewrite my solution.
OK, good point ;-) Added this to description:
And added this to testcase:
Thanks for your feedback ;-)
I think the kata could use a little bit more info..
yes
This Kata is basically same as my https://www.codewars.com/kata/histogram-v1 except yours uses sexier looking characters.
If you translate mine to JavaScript, I'll translate yours to Java ;-)
I am a little tired, they are so similar, I think there is no need to translate again ;-) Are you sure you're not copying my Kata? ^_^
Ha Ha. Ever since I did that other crazy Kata of yours https://www.codewars.com/kata/crazy-programmer-03-must-praise I can't get it out of my head!
Now I translate all your comments:
"That greedy dinglemouse. He stole my lollipop and he copied my kata. I hate him!"
Must praise, man. ;-)
Description example says
drawWave
instead ofdraw
Hi
dinglemouse
,adjusted.
Hi
Dentzil
,thanks.
Nice kata! Thanks!
C++-Translation kumited.
Please check it and approve. Thanks! ;)
Both approved, thanks ;-)
Super! Thanks.
C#-Translation kumited.
Please check it and approve. Thanks! ;)
Random tests doesn't work? ;-)
Hm, should work. Can you check it once again please?
Nice Kata myjinxin2015 ^_^
Can I add this to my collection Complete The Pattern?
of course, please ;-)
Test wave1 not defined
fixed. thank you~~