8 kyu

Welcome!

24,224 of 53,044lucymonie
Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • lawfets Avatar

    This comment has been hidden.

  • ejini战神 Avatar

    Java:

    • missing fixed tests
  • benjamin762 Avatar

    The website has a large audience in Scandinavia, yet swedish is wrong and both norwegian written languages are missing. 🙃

  • floppydingus Avatar

    I guess 8kyu for the long way, but right way is definitely at least 7kyu

  • user4174075 Avatar

    This comment has been hidden.

  • ptd3v Avatar

    Good practice for an extremely useful feature, especially if you dig deeper into why.

  • RavennB Avatar

    This comment has been hidden.

  • ericdreamjung Avatar

    Goed dag, flemish is similar to dutch (holland) welcom it is welkom then:) thaks anyway for the exe

  • chiasnavichius Avatar

    Actually for Lithuanian it's "Sveiki atvykę" or just "Sveiki" =)

  • glovastefan Avatar

    key value pairs (language and greeting) could be pre-loaded.

  • TrueDwightShrute Avatar

    This comment has been hidden.

  • igor_mv Avatar

    Thanks! That was an inteesting one.

  • Ivan_Motorov Avatar

    The only thing that confused this type of database list or dict. The author does not give a direct indication of the database typing.

  • ggonzalezm Avatar

    This comment has been hidden.

  • douseful Avatar

    If it's just for practice, I don't think it's necessary to list so many key-value pairs, copying and paste is really annoying

  • SagePtr Avatar
  • SagePtr Avatar
  • rowcased Avatar

    C Fork

    • tester function now applied to and visible within sample tests
    • improved testing error message feedback
    • improved comments for solution set-up
    • rand() not called repeatedly anymore
    • now provides preloaded databases
    • cleaner sample tests formatting
    • NULL pointer test removed
  • kosanswer Avatar

    I can't find in list Russian or Ukrainian language. These are some of the most popular languages in Eastern Europe, with a total over 200 million speakers. What happened? Why they were not included in the list?

  • boybutterfly1.code Avatar

    This comment has been hidden.

  • tolgaersoy Avatar

    This comment has been hidden.

  • Alohaoh Avatar

    Oh, wow, first I didn't get this right so I went to see the solution, it's clean as hell)))

  • StevieBrooks Avatar

    My solution works perfectly fine in my editor but it's not been accepted on here. I used a switch statement.

  • tolgaersoy Avatar

    My code is working on example test. But My code does not completed. It giving error. What's the problem?

    Test Crashed
    
    Caught unexpected signal: SIGSEGV (11). Invalid memory access.
    
  • QuanChiNut Avatar

    This comment has been hidden.

  • CodingCerberus Avatar

    This comment has been hidden.

  • pcordon Avatar

    Great Kata. Suggestion: the description should note that not only are there invalid strings, but also NULL pointers in the test cases. Given the nature of the scenario, being a website and all, it stands to reason that you'd always be passed a valid pointer, even if it's an empty string. I kept getting memory errors in C, which sadly don't show any debugging text you may be producing to aid in your solution. I had to create a global counter, manually count which test was causing the memory problem and hardcode a condition for that test in order to see what the input parameter was. I'm no expert by any means, but that was incredibly frustrating and unnecessary, in my opinion. Otherwise, as I said, great kata!

  • @shay45d Avatar

    Your function should have returned 'Welcome'. its displaying 'Try again' everytime. The expected output is undefined tohat should have been equal to 'Welcome' wth is going on?

  • dplv Avatar

    I suggested an edit for Latvian translation. 'latvian': 'Gaidits' is wrong. 'Welcome' in Latvian is 'Sveicināti'

  • benjaminzwhite Avatar

    "Scandinavia and surrounding countries"

    galaxy_brain_meme.jpg

    • ✔️ Czechia ?
    • ✔️ Italy ???
    • ✔️ Spain ?????
    • ❌ Russia ??????
    • ❌ Norway ????????????
  • KayleighWasTaken Avatar
  • laurelis24 Avatar

    Jesus... This is so easy, but i was so confused. I spent like 20 mins on this.. xD

  • Ssagas Avatar

    This comment has been hidden.

  • tree24 Avatar

    This comment has been hidden.

  • pj777 Avatar

    Watch out for any nulls!

  • SQACraft Avatar

    I think two pairs of countries is pretty enough. There is no need to make students include all those countries to their code just only to pass unit tests.

  • i_Dark_Matter Avatar

    Hi So I am supper new here, this is my first ever Kata. I have a few questions about how these Kata actually work, becuase the solutions do not seem to meet the requirements for the task. How do you know which requirements are actually required? It seems like many people just understood that you did not need to do the following things to pass.

    1. write a 'welcome' function. ( No actual declaration of the function to the word "welcome" was apparently needed, but instead many used greet.)
    2. takes a parameter 'language' (again it looks like the parameter did not need be named 'language')
    3. the defult seems to have been done by everyone...but I can not see where anyone bothered to include the possible invalid inputs.

    default to English if the language is not in the database, or in the event of an invalid input.

    Possible invalid inputs include:

    IP_ADDRESS_INVALID - not a valid ipv4 or ipv6 ip address IP_ADDRESS_NOT_FOUND - ip address not in the database IP_ADDRESS_REQUIRED - no ip address was supplied

    I dont think this should be spoiler content. I think the question should specifiy what is required. So if you read this and now know exactly how to do it and your mad I am sorry!

    Best-i

  • drudolf17 Avatar

    what if the pointer language was never initialized? That is, it contains "garbage". Is there a way to test for this?

  • user9644768 Avatar

    Please use new python test framework.

  • inline_five Avatar

    C | Getting a SIGSEGV (11) fault. Not sure why. Any hints?

    EDIT: Nevermind, got it. Check language == NULL.

  • taifun Avatar

    This comment has been hidden.

  • elijahsimpsonn Avatar

    Description ask you to create a welcome function but the function won't work unless the name of the function is 'greet'. Might want to be something you update. It was easy to figure out after a few fails but since it is 8kyu it would better to make that known from the start.

  • Miranda2753 Avatar

    This comment has been hidden.

  • lytvyn139 Avatar

    created 70 liner switch solution, and now feeling guilty about, but it works, which is fine

  • Dp_dp Avatar

    hey all plz reply to me if you have completed this

  • Arshiya21 Avatar

    This comment has been hidden.

  • 3lement3 Avatar

    This comment has been hidden.

  • Th3Clu3 Avatar

    Sam where are you ?

  • frd07 Avatar

    what's wrong with mine : test Results: Log Welcome Welcome Welkom Welcome Welcome Welcome

    it works in my visual studio, but i still confused why i can't surpass this problem in codewars's console

  • Hydra17 Avatar

    This comment has been hidden.

  • Olha98 Avatar

    Hi, gays. I don't undestant, why my code not valide... In console worked. Kata wrote: Test Passed: Value == 'Welcome' Test Passed: Value == 'Welkom' ?'Your function should have returned 'Welcome'. Try again. - Expected: 'Welcome', instead got: undefined' But first test, returned 'Welcome'. I will be grateful for the help!

  • rousinha Avatar

    I am getting error Test Crashed Caught unexpected signal: SIGSEGV (11). Invalid memory access. while executing it can some one help how to resolve it !!!

  • Noksion Avatar

    Description says it should default to 'English' while tests are expecting default 'Welcome'

  • Mordna Avatar
  • Elay Maharramli Avatar

    This comment has been hidden.

  • mark1nhu Avatar

    This comment has been hidden.

  • ParanoidUser Avatar

    This comment has been hidden.

  • rowcased Avatar

    C translation kumited

    please review carefully

    domo!

  • hlais Avatar

    I think this should be a 7 Kata. I've done 6 kata easier than this. IMO

  • PatrickConboy Avatar

    This comment has been hidden.

  • noneyaBiz Avatar

    I am curious how literally one should take the suggestion/hint in the project details where it says "think of a way to store the languages as a database (eg an object)." Since all C# types inherit from system.object (whether directly or indirectly), is the suggestion supposed to steer people in a specific direction? If so, would it count against the programmer if they used something like a List, Tuple, Array, KeyValuePair, etc. to achieve the same result, even if it wasn't what the designer of the sample had in mind?

  • Alles Avatar

    Latvian should be "Laipni lūdzam!". Cheers!

  • Boda Avatar

    I am struggling with this simple task. I have created the database object but I am stumped by the "write a function that takes a parameter and returns a greeting". I understand that I must use greet(french) to get the bienvenue, is it as simple as a console.log()? I tried in Brackets and of course I didn't get anywhere. I don't seem to have a clue, is it so simple that I am looking past the solution? Thanks.

  • Spike92 Avatar

    I'm keep getting an error from:

    Greeting(SolutionTest)

    expected: <[Welcome]> but was: <[]>

    Which part am I missing?

    By the way, it's java.

  • amarn19 Avatar

    This comment has been hidden.

  • Armendhammer Avatar

    This comment has been hidden.

  • NoahK Avatar

    I answered it too, it worked great on eclipse-java-mars on all languages , but here it gives an error output. I think there is an error with the checking program.

  • intensecomputertraining Avatar

    so i answer it, works perfect in my idle. kata wont have it says entering none doesnt print or return welcome. when it does.

  • Dchyk Avatar

    This comment has been hidden.

  • Javatlacati Avatar

    CoffeeScript translation kumited! Please Accept :smile:

  • SerePate Avatar

    This comment has been hidden.

  • imprecis Avatar

    This comment has been hidden.

  • Kaiyou Avatar

    This comment has been hidden.

  • HerrWert Avatar

    For students just starting to learn about objects, this is quite possibly the best kata to start with!

  • aryan-firouzian Avatar

    C# translation submited. please approve :)

  • datadaveshin Avatar

    This comment has been hidden.

  • sheriffderek Avatar

    It was clear to me that I needed to create an object.

  • GiacomoSorbi Avatar

    Python translation submitted, enjoy!

  • PG1 Avatar

    This comment has been hidden.

  • 10XL Avatar

    Ruby translation submitted. (:

  • smashzen Avatar

    I assume the "database" is an object. If so, we need to know what it's called to complete the kata.