Saturday, November 11, 2017

Order strings

Nov. 11, 2017


Introduction


It is the first medium algorithm in Morgan Stanley Campus Codeathon 2017. I spent a few hours to work on the code. Now it is 11:54 PM. I am trying to get more points. What should I do to get more points?

The problem statement is here.


I am very patient to read problem statement again and again, try to find the clue what is missing in my problem solving. Look at those test cases:


Follow up after the contest

Nov. 12, 2017 9:43 pm
Julia tried a few submissions. Here are the link to her C# submissions.

First submission, only score 8 out of 40. Here is the C# code of first submission.
Second submission, only score 5 out of 40. Here is the C# code of second submission. Change numeric type from int to long, score from 8 lower to 5.33
Third submission, numeric type, consider the length of string 50, check one char a time. Score goes up from 8 to 23 out of 40. 
Fourth submission, C# code is here

Plan to study all C# submissions.


No comments:

Post a Comment