Wow, that's a lot of people.
Usually it would not be the best practice because of variable leakage, but this kata is made for this xD.
This kinda defeats the purpose, but still the right call nonetheless
This comment is hidden because it contains spoiler information about the solution
Yeah you are right, that's my bad I apologize. Honestly I was just frustrated because I have a class on SQL coming up so I'm trying to learn it, and I go to do one of these challenges, and find the sql function or w/e that seems like it would do the job, and I plug it in using the same syntax I see on w3schools or wherever I found the info, and the interpreter on here will tell me it doesn't recognize the function or something. That's what I had been doing before this challenge. I wish there was a setting that would not allow me to type anything if my blood pressure rises above a certain level, maybe I should look into that. Clearly there is something I am still doing wrong with the SQL, but it is frustrating. Anyway, just wanted to say that since I'm not able to just delete my comment...
Programming is a very wide field. Yes, you can do alot of programming without much math knowledge, but that is only because you are using a lot of libraries that do the math for you. Somebody has to write all these libraries and they need to know all this "useless math crap". So, please don't be ignorant and recognize the actual usefullness of these katas.
If you don't want to dive into this sort of programming just skip those katas.
but i found there is a littel mistake here
it doesn't work for "11+1??=111", it should be 0 but it gives -1
something wrong about the "??" part
Finally, I actually learned something related to programming from doing one of these challenges. The past 10 or 20 have all just been useless math crap I'll never have to know again unless I decide to do more of these challenges. Thanks to creator of this for actually helping me learn something related to Java.
I can finally comment and upvote. What's up with that codewars admin? so far only 8kyu enabled me to do so. Shame!
Please use spoiler flag next time, and it's not better, it's the same with arrow notation.
my brain doesn't work this way :(
it's a wrong solution if a test string contains digits or whitespaces (non-letters).
example: "lowercase 567 UPPERCASEE"
this string contains more uppercase letters, but with your solution it will be converted to lowercase.
then why yourself didn't specify ?