Ad
  • Custom User Avatar

    It would be nice to be able to defer execution of the Kata search filter method to a new filter button on the page. When I search for Kata I almost always search by 3 conditions: specific language, progress, and the difficulty. The default behavior of the filter is to immediately execute when one of the filtering options are selected. This can be quite annoying because I have to wait for the page to reload before I can select additional options. Because I regularly filter by 3 conditions it can take 9-12 seconds before I can began looking through the filter results. You could either remove the ability of the controls to trigger the filter method (preferred) and instead defer that control to a filter button or if you are dead set against changing the current filter behavior you could alternatively create another widget below that provides that functionality. Another alternative would be to allow users to save their preferred filter configuration which you could persist in your database and then use it to set default control values when the page is loaded.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Okay so after I saw you other solution below without linq I was able to figure out what was going on but I still can't fathom how you can naturally come up with a solution like this. Is it one of those things where you were able to recognize this specific problem with converting binary to numbers or does it come from just practicing with bitwise operators?

  • Custom User Avatar

    probably going to get trolled for asking but can you explain how this works? I'm having trouble understanding how the bitwise operators are being evaluated within this linq expression.

  • Custom User Avatar

    well done... well done.

  • Custom User Avatar

    I haven't been doing python long enough to know whether or not this is best pratice but I did appreciate your solution because it forced me to learn about generators.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    wow how was I the first to vote this solution. Amazing work.

  • Custom User Avatar

    FArekkusu I think the fact that the solution meets the criteria is incredibly important. Given that we cannot see the input values of most test cases until submitting our solutions we only have the criteria to form our solutions. Of course I can see that the multiplication of the integers resulted in overflow after the fact but no one wants to have to completely reconstruct a whole new solution especially when the original solution meets the stated criteria and conditions. To your point about raising an issue I actually attempted to do so but the option to raise an issue was no longer available after my initial comment. I'm not sure if that is by design or not but it is something that I actually tried to do.

    @MrZizoScream thank you for understanding and thank you for spending the time to create this kata. It was certainly frustrating but in the process I learned a few things about the 'checked' and 'unchecked' keywords in C#. Keep them coming.

  • Custom User Avatar

    Thank you for the late response and my apologies for going to the top shelf with the word "terrible". I was incredibly frustrated as my solution had met the criteria and still would not pass the random overflow test. I'm not seeing any prior mention of the c# translator but would like to take a peak at it. I ended up using someone else's solution because I wasn't sure anyone would respond.

  • Custom User Avatar
  • Custom User Avatar

    Thanks for posting this link. It really helped me in understanding what was going on.

  • Custom User Avatar

    Thanks! I'll definitely check it out.

  • Custom User Avatar

    bravo. My first though on this problem was whether or not I could solve it with a regular expression but I didn't have the experience to be able to construct one that could do so. Glad to see that it is achievable.

  • Custom User Avatar

    Thanks for the linq solution. Do you know of any good linq sandbox sites or resources I can check out to learn how to use it in my own problem solving?

  • Loading more items...