0

What should I name the function when solving a coding challenge?

It’s my first time trying to solve challenges on Sololearn, and idk what to name the function and all the test cases show no output

26th Dec 2021, 9:48 PM
Michael Mulugeta Sebsbe
Michael Mulugeta Sebsbe - avatar
7 odpowiedzi
+ 1
Use this instead let encodedText = readLine()! //"d89%l++5r19o7W *o=l645le9H"
26th Dec 2021, 11:32 PM
SoloProg
SoloProg - avatar
+ 3
The name doesn't matter. If you need help with the code, please link it here, explain the task and taghe relevant programming language
26th Dec 2021, 9:50 PM
Lisa
Lisa - avatar
26th Dec 2021, 9:55 PM
Michael Mulugeta Sebsbe
Michael Mulugeta Sebsbe - avatar
+ 1
Sorry, I don't know any swift... If it's not your code, it might be a problem in the app: sometimes sololearn is a little buggy and if I just re-run the exact same code a little later, it suddenly gets accepted
26th Dec 2021, 10:04 PM
Lisa
Lisa - avatar
+ 1
SoloProg thank you! Makes sense
26th Dec 2021, 11:34 PM
Michael Mulugeta Sebsbe
Michael Mulugeta Sebsbe - avatar
+ 1
You could name it as x or any one letter to define it easy
28th Dec 2021, 11:54 AM
Vishal Adithya
Vishal Adithya - avatar
0
My code works properly i just cant get the testcase to even run my code?
26th Dec 2021, 9:56 PM
Michael Mulugeta Sebsbe
Michael Mulugeta Sebsbe - avatar