Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Whatever I was saying was not specific only to this kata and its not about solving this kata,May be I am wrong in this case But it was about expressing idea and expressing it more beautifully.
See I have practiced on lot of sites like:-
Codechef
Hacker Earth
Hacker Rank
codeforces
etc
But, truly these are nothing in front of Codewars.What is best about Codewars is it manages people from all background and it gives a good start to beginners or layman.It builds interest which in itself is very difficult.It motivates me and other 1000s like me to code.But if we can follow something good from others it will eventually makes us more better.Thanks for feedback
you should explain examples with cases such as:-
1>XIRSOTEOWTORXNZITUREIEFNWHOES
2>RTNNEEEFOISORENIRHVTUEGEZHE
It is because
When you see test cases and come up with solution there are variety of different ways to look and think at test cases and code but above cases what is happening as one is getting different combinations of result some are exhausting total characters and some or not.
Hope I am not clear at all.
Well leave .Let me be more simpler and straight forward
I am able to solve all the test cases ,but still many random test cases I am failing in. Please make sure that if any one is able to run all the cases given in example as description.Then he should be successfully able to pass the kata. As simple as that My humble request.
As in different coding competition I have participated I have experienced If you are able to run the
cases present in examples(1-7 cases)you are done
its not about solving kata and making the solution work . It is about good methodology .As we all know computer science in it-self is very evolving and dynamic in nature.What I am doing is giving you the other way to express kata in more better way.
Example:-
Suppose I designed a kata:-
Add Numbers
You have to return sum of two numbers.
For Example:-
1+2 = 3 should return 3
3-(-5)=8 should return 8
Now, looking a examples in description I start to code.......
then,
comes Random test cases into picture saying that
Failing for:-
z1= 4+8i;z2 = 7 // should return 11+8i
Then , one knows Oh complex numbers are also there for addition ,Afterwards go and change the code accordingly. Unnecessarily timewaste
So. You should have mention it above only
It is what I have seen in most katas.
what can be done:-
Add Numbers
You have to return sum of two numbers.
For Example:-
1+2 = 3 should return 3
3-(-5)=8 should return 8
z1 = 5+8i; z2 = 6+9i; should return 11+17i
see in his kata I am able to run examples under description Then why my RANDOM TEST CASES is failing
It is failing because it is bit complex So please explain that complex cases in example as it becomes easy and less time waste.It is not about running solutions .But about an better idea to express
PLEASE TAKE IT ONLY IF YOU NEED OTHERWISE LET IT GO.
In description under example:-
s="ONE"
s="EON"
What I am trying to say is I am successfully able to run all test cases for the examples.But, Random test case it is failing everytime As I am trying to work in according to some random test case example.It is failing again.So, I am saying you are just putting some simple examples in description according to which one codes. But it fails in Random test cases and one has no idea of what to code
As i have seen in many other coding competitions when they are giving descriptions like
In example there are 3 catagories under description-
1>Simple test case-----like you did
2>Medium test case-----Missing
3>If exist(difficult test case)------Missing
so by looking all test cases from simple---->difficult.It becomes fairly easy for one to code
But, this not I am saying to you but it is general .In codewars I have seen people explain some examples of test cases in description
and when code accordingly and run then Some RANDOM TEST CASES fails Then you have to look at random test cases and again modify your code
like - in this kata.Many times it becomes a case of heat and trail that you do by seeing at random test cases.which ultimately increases complexity of kata.And it becomes hard to understand what you want one to code exactly
I am succesfully able to run all the examples.But, Random test cases was failing .It was hard time for me to figure out things,Yet it is failing.Please be more precise and to the point while explaining what you exactly want one to do. you should give all types of examples .You are unnecessarily trying to increase the complexity of kata.
In any coding competitions examples are to like they explain everything from simple to difficult test case.You are putting simple cases and leaving hard cases on user to figure out .Not a good approach.Kindly, improve it
Nothing is strinking any hint please
This comment is hidden because it contains spoiler information about the solution
As I am running the code I am getting timeout issue as code is taking longer than 12000ms .Can some suggest me how to optimize the code.Plese be fast
Thanks. I tried it but could you please be more clear
some one please give some hint or guidance
I am not able to unlock new katas in C++ even after my Rank is increasing continously
I am also stuck at same problem.please tell what to do
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution