• immigrantegy 10 years ago + 6 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 3 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.

            • scott_mankowitz 8 years ago + 0 comments

              It's worse than that: the only change I made was changing the function from next_move to nextMove. It seems sloppy on the part of the puzzle designers.

              Also, I agree with the others, this problem is easier than the last, and could be used to provide a foundation for it, instead of vice-versa.

              Add Reply Preview cancel

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

              • martink_kadarman 6 years ago + 1 comment

                I used same code too even it works. i didn't get any point somehow.

                Add Reply Preview cancel

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

                • jonibeknorboev 5 years ago + 0 comments

                  don't worry, if your code didn't behave the same ways as it did for simplified version of the problem then you'd get that point. If your code behave normal in different invironments then probably your model is not bahing abnormal. The point of AI

                  Add Reply Preview cancel

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

                • tyce_brown 4 years ago + 0 comments

                  Same here. I feel like the BotClean Stochastic was useless, as all I did was copy and paste my code from BotClean.

                  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