5 kyu

■□ Pattern □■ : Double-Spiral

50 of 58myjinxin2015
Description
Loading description...
Games
ASCII Art
Puzzles
  • Please sign in or sign up to leave a comment.
  • artem-totality Avatar

    Great kata! Suggestion to specify constraint m alway equal n ± 1 ==> m === n ± 1

  • kazk Avatar

    Parameter m and n It means m rows and n columns, ■ and □ composition graphics of The Double-Spiral, m>0, odd number, n>1, even number.

    I got invalid n during random tests:

    Test: m=1 n=0 
    ✘ Expected: '\'\\n■\'', instead got: '\'\\n□■\''
    
  • smile67 Avatar

    Again all your "pattern katas" solved;-)... Good one again and not too easy i think (voted it 5kyu?)...

    • myjinxin2015 Avatar

      Well done. Congratulations to your 1kyu! Look forward to your 0kyu ;-)

    • smile67 Avatar

      Thanks;-)! But first of all i look forward to your 1kyu;-)! I know you are longing for:-)... 0kyu = 1dan? i think you know, it's not reachable, too less difficult katas... So next time you can catch me again, i will reduce my output here:-)... Spring is coming and i'm more and more outside, so codewars was a very nice/interesting and intensiv job for this years winter;-)...

    • myjinxin2015 Avatar

      Spring has arrived, the bear has ended the hibernation, left the beloved honey(codewars), to look for more food outside. I visited this site, PropertyExpert.de, are you a architect? or a building repair specialist?

    • smile67 Avatar

      :-)... Next kata with bears? No, have nothing to do directly with buildings and repair, but with IT, hardware and software to handle these things and for example to re-calculate costs for work and material automatically (so OCR, SQL, Web and other interesting things are important). Would say IT manager with strong addiction to software developing, so i'm here;-). If you ever search for a job in Germany, let me know;-)... Tell me some things about you, how old are you (25 as stated in one of your katas?) and what kind of job are you doing (perhaps there's a facebook entry?)?

    • myjinxin2015 Avatar

      I am a civil servant of the government. Programming is just my interest. I am 40 years old (whether a bit surprised?),but I have a 25 year old heart. Maybe you do not know, in my country to visit the facebook,youtube or Wikipedia need to use VPN, so I don't have such an account. ;-)

    • smile67 Avatar

      Ah, ok, didn't know that you can't visit facebook, i think years ago i heared someting like this, but thought the time is over. So programming is just your interest - i think you are better than many (perhaps most;-)) professionals finding solutions and solving problems (which naturally is not all for an IT job)! 40 years, ok, seems to me we have the same 25 year old heart, but i'm 9 years older;-)... Interesting:-)...!

    • smile67 Avatar

      One thing i forgot to ask, how long are you here? You solved more than 1000 katas, so it's interesting to know in which time;-)? Generally it's not important, but i think you were really quick in doing this...

    • myjinxin2015 Avatar

      Look at my username, 2015,My job is drink coffee, read newspaper, so i have lot of time to solve these kata ;-)

    • smile67 Avatar

      2015 was long, started in January;-)... good job, but thought that... government a.s.o.;-)