Pah, because it is so high-level. The challenge lies in those harder languages! (said as he codes in C#...)
As what Chrono said, your code detected a single letter as a word. There are no single letters in the sample, so your method is probably failing in the way it is seperating the words out.
this loop is genius in it's simplicity
Same as previously said, the answers are good when you have the same score than the user and not +1 as in the description of the problem
Not yet fixed
Which language? If the assertion is well written, then your code returned 1 instead of 3.
I don't know what is this error ?
Actual: 1, Expected: 3
String: "Nqad mfxiu ecuq bhw gsou ociqk dam fynd iclm dxz vgtn nplsy chg vok bpbl oxqux gsyz vpx jvll tqahb jqxuk ubkr qjts rjr smndt wwqzs psv gpfq"
?? I don't know why Actual is 1.
What a work of art :)
I enjoyed this one very much!
Python is language for genius solutions.All coders need o use that!👍
Hey guys! While I was trying to figure this problem out, I typed out my code, but it's generating random results. For example, passing in check([66, 101], 66) will come up as 'False', but check([101, 66], 66) is 'True'. Any idea why? Not only am I getting the code wrong but I have confused myself further in the process. Thanks!
def check(seq, elem):
for i in seq:
if i == elem:
n = True
elif i != elem:
n = False
Question is clearly understood with no tricks
Glad you enjoyed
really wave peak to trough but this will do
what does it mean?