Sort 121 Discussions, By:

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

  • immigrantegy 10 years ago + 3 comments

    I used the same code for botclean and botcleanr. It's practically the same, except regular one allows for a higher score if more accurate, still I felt it kind of pointless that I did not need a single change.

    Add Reply Preview cancel

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

    • dheeraj Challenge Author 10 years ago + 2 comments

      These are learning based challenges so, the changes needed for subsequent challenges are minimal. That's the whole point of the exercise.

      These challenges teaches you about different environments in which a rational agent of AI is put into and how it should behave.

      Add Reply Preview cancel

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

      • yashdeora98294 3 years ago + 0 comments

        here is problem solution in java python and c++ programming. https://www.gyangav.com/2022/03/hackerrank-botclean-stochastic-problem-solution.html

        Add Reply Preview cancel

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

        • mohammed_abdali1 2 years ago + 0 comments

          But what was I supposed to have had learned? The original one I programmed as "Check to see if standing on dirty floor. If so, clean it and quit. Otherwise start looking at the top left corner and read the grid like you would a book (the normal method of reading a matrix, that is). As soon as you encounter a dirty floor, make note of it and stop reading the grid. If your robot is too low or too high, move one step up or down as needed, and then exit. However, if you're already at the right level, then move either left or right as needed, and exit."

          This exact logic works for "what if I generate a new dirty floor after you clean the first one?" I guess the only technicality is that I have 200 steps instead of infinity (I think I had infinite in the first challenge), but considering I got full points, it looks like that constraint doesn't matter...

          Unless there was an easier (less complex) solution that was expected for the first challenge. But I mean... what's less complex than the brute force method of "try to find the lowest index of a 1d array that has dirt, and then try to move towards it"?

          Add Reply Preview cancel

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

        • alan_davies 9 years ago + 1 comment

          I submitted the same code too; it's just a simplification of botclean.

          Add Reply Preview cancel

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

          • facundoq 9 years ago + 1 comment

            Same here. I also feel these exercises should be reversed. The first one is much harder, as the optimum involves calculating the shortest path through the grid that passes through all the dirt positions.

            Add Reply Preview cancel

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

            • omkarbhale001 4 years ago + 0 comments

              No, even if you(and I) did the previous challange in optimised way, I think the sequence did not matter for previous challenge.

              Add Reply Preview cancel

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

          • simonesturniolo 8 years ago + 1 comment

            Same here. The only real difference is in efficiency. The stochastic one could be made to run faster in terms of execution time, but not in less moves. If time was considered too in the scoring then it'd be a bit more interesting.

            Add Reply Preview cancel

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

            • ayusmittal 8 years ago + 0 comments

              You have a very good point about time execution. The system should also generate the execution time and then compare and give ranking to results. It would be a great way to judge.

              Add Reply Preview cancel

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

          • dgodfrey 8 years ago + 3 comments

            Huh? I just submitted my solution from the previous Bot Clean problem and it got full points. What was supposed to be different about this problem?

            Add Reply Preview cancel

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

            • OverLord_YOLO 8 years ago + 0 comments

              Same here..

              Add Reply Preview cancel

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

              • [deleted] 8 years ago + 0 comments

                Pretty sure it's because you could have a fixed "sweep every cell" approach that would work in the previous problem (while being inefficient and relying on checking the whole grid instead of detecting where the next item to clean is), but if you used Manhattan-style heuristics, you would have a solution that outperforms what was expected in the first one and that would do fine here.

                Add Reply Preview cancel

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

                • [deleted] 2 years ago + 1 comment

                  For learning purposes, you can try a different approach and not just copy and paste just because it works.

                  Add Reply Preview cancel

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

                  • freepromomin 2 years ago + 0 comments

                    Picasso App is the best Android application that enables you to watch IPL Live Cricket Match, IPL LiveTV shows and movies on your Android mobile device.

                    Add Reply Preview cancel

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

                • aniket15 8 years ago + 0 comments

                  I don't know why but my solution seems very easy n has an naive approach and it worked with success. Just couldn't believe that i solved an AI problem with the solution that seldom works in normal algo challenges. :P

                  Add Reply Preview cancel

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

                  • crampyman 8 years ago + 1 comment

                    In C#, At round trip #107, I've always this exception :

                    System.ExecutionEngineException: Couldn't create thread

                    Doesn anyone have an idea about what could have caused this exception ?

                    Add Reply Preview cancel

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

                    • mohammed_abdali1 2 years ago + 0 comments

                      I'd venture it was caused by not being able to create a thread.

                      Add Reply Preview cancel

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

                    • pacfish 8 years ago + 0 comments

                      I thought this would have been completely based on luck but after watching a game unfold I realized that it was always 5 spaces away. GG

                      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