Ad
  • Custom User Avatar

    From my point of view, unless you have a prodigious mind, you need to use several times a function to remember it... and there is a lot oof objects an functions out there. So the best approach is to think if an object could have a function related to it that could be handy and search for it.
    However, sometimes if best try to think out of the box and try your best shoot and then see if there is that function out there.

  • Custom User Avatar

    As I can understand you can just find those methods in the installed Java editors like IJ IDEA. They come handy when you need to find the specific methods of classes. Just typing, for instance, "str." it will show you every single method that class "str" has. Actually, in my opinion, it is the best way to practice. However, not all editors may provide the methods of classes. Sublime, of course is one of them. The only reason to use Sublime and such editors is that they are super fast.

  • Custom User Avatar

    You should always try to find methods, with out withour Google. Is the way to learn!

  • Custom User Avatar

    Nice one.
    It took me 3 days to solve this one and i came up with 78 lines of code and then i get here and see it solved in 3 lines :))
    Still feeling proud to have solved it :)

  • Custom User Avatar

    very nice. makes total sense. the top solution is just a shorter/better/more compact version of my solution. while this one is obviously faster.

  • Custom User Avatar

    The solution seems simpler and i was wondering why it isn't voted as a best practice. Your comment made light. Thank you.
    Sorting increases execution time. Even for a 7 element array.

  • Custom User Avatar

    This is beautiful. Although @brunomueller has a point. However most solutions use the harcoded 26

  • Custom User Avatar

    Hey guys!

    Just wondering, this solution comes from experience, right? Or did you just search the available methods until you found the right ones?

    When attempting to solve a challenge should i always try and find methods(without google) that seem to do what i need and try them out or to use what i already know?

    Thank you.