Sort 25 Discussions, By:

Sorry, you do not have a permission to answer to this question.

  • rajan_kr 9 years ago + 1 comment

    There is something wrong with Laderborad of this contest. It is considering submission time also in ranking. Not just the total sum of scores.

    Add Reply Preview cancel

    Sorry, you do not have a permission to answer to this question.

    • PRASHANTB1984 9 years ago + 2 comments

      Don't worry about the timing, this is more of a learning session.

      Add Reply Preview cancel

      Sorry, you do not have a permission to answer to this question.

      • Geoff_Fitz 9 years ago + 1 comment

        how is timing calculated since mine states that its 9743 but just started yesterday?

        Add Reply Preview cancel

        Sorry, you do not have a permission to answer to this question.

        • rajan_kr 9 years ago + 0 comments

          Same here Man. I am still unable to figure out why my rank is automatically getting lower. I have already submitted solutions but i am being overtaken by others who are submitting solutions after me. Can anyone tell me how timing is calculated?

          Add Reply Preview cancel

          Sorry, you do not have a permission to answer to this question.

        • Velvet 9 years ago + 1 comment

          Will you explain to me the process of ranking ? When I correctly submitted(all testcases of every problem passed) the last solution of the problems till now, my rank showed 728. Now, after a few hours I have logged in, and I find my rank at 1360. How is that possible when I have already completed all the challenges given here so far correctly ?

          Add Reply Preview cancel

          Sorry, you do not have a permission to answer to this question.

          • rajan_kr 9 years ago + 0 comments

            Same is happening with me too. I have no idea how they are ranking.

            Add Reply Preview cancel

            Sorry, you do not have a permission to answer to this question.

      • trendsetter37 9 years ago + 3 comments

        Wow, Date objects using 0 based month indices really got me on this one. Hint, hint.

        Add Reply Preview cancel

        Sorry, you do not have a permission to answer to this question.

        • Mercury888 9 years ago + 0 comments

          Thanks, that's what I needed to solve this one.

          Add Reply Preview cancel

          Sorry, you do not have a permission to answer to this question.

          • ray10mathew 9 years ago + 0 comments

            If not for this comment I would never have solved it - I would've assumed that something was wrong with my code. Thanks

            Add Reply Preview cancel

            Sorry, you do not have a permission to answer to this question.

            • markhaur 3 years ago + 0 comments

              This thing got me for almost an hour... until i printed the dates after a lot of search...

              Add Reply Preview cancel

              Sorry, you do not have a permission to answer to this question.

            • [deleted] 9 years ago + 2 comments

              I started a GIT branch for those who need a little help let me know if you need explanations added as well https://github.com/giannioudis/7-Days-of-JavaScript

              Add Reply Preview cancel

              Sorry, you do not have a permission to answer to this question.

              • PRASHANTB1984 9 years ago + 0 comments

                That is really great! Thank you for sharing.

                Add Reply Preview cancel

                Sorry, you do not have a permission to answer to this question.

                • c071143 9 years ago + 1 comment

                  That's a really decent code !

                  Add Reply Preview cancel

                  Sorry, you do not have a permission to answer to this question.

                  • [deleted] 9 years ago + 0 comments

                    thanks! I try to micic my Java and C# code. Less is more i find.

                    Add Reply Preview cancel

                    Sorry, you do not have a permission to answer to this question.

                • vinayprajapati31 3 years ago + 0 comments

                  //This code passed all test

                  var d = new Date(myDate); var dayNames =["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]; console.log(dayNames[d.getDay()]);

                  Add Reply Preview cancel

                  Sorry, you do not have a permission to answer to this question.

                  • ameyb2018 6 years ago + 0 comments

                    Here is my code for the same - function findDay(myDate) { // Return day for date myDate(MM/DD/YYYY) // Note that myDate contains the date in string format var d = new Date(myDate); //var stringDay = myDate[3]+myDate[4]; // var day = parseInt(stringDay); d = d.getDay();

                    var weekdays = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
                    if(d!=-1)
                        {
                            console.log(weekdays[d]);
                        }
                    

                    }

                    // tail starts here process.stdin.resume(); process.stdin.setEncoding("ascii"); _input = ""; process.stdin.on("data", function (input) { _input += input; });

                    process.stdin.on("end", function () { var dates = _input.split('\n');

                    for (var i = 0; i < dates.length - 1; i++) {
                        findDay(dates[i]);
                    }
                    

                    });

                    Add Reply Preview cancel

                    Sorry, you do not have a permission to answer to this question.

                    1. Challenge Walkthrough
                      Let's walk through this sample challenge and explore the features of the code editor.1 of 6
                    2. Review the problem statement
                      Each challenge has a problem statement that includes sample inputs and outputs. Some challenges include additional information to help you out.2 of 6
                    3. Choose a language
                      Select the language you wish to use to solve this challenge.3 of 6
                    4. Enter your code
                      Code your solution in our custom editor or code in your own environment and upload your solution as a file.4 of 6
                    5. Test your code
                      You can compile your code and test it for errors and accuracy before submitting.5 of 6
                    6. Submit to see results
                      When you're ready, submit your solution! Remember, you can go back and refine your code anytime.6 of 6
                    1. Check your score