Ad
  • Custom User Avatar

    I disagree with this: high level does not mean you can't try to optimize your algorithms. Efficiency may not be necessary for some purposes but this does not involve you should not try

    And you may write un-optimized code in any language, C included

    However, the answer is interesting because it indicates another way of coding

  • Custom User Avatar

    It works but it is like using a mechanical shovel to plant a seed. So it is slow compared to more optimized solutions

  • Custom User Avatar

    I don't understand your explanation for array {1,2,3,4,5,6} since the {1,100,50,-51,1,1} array has a solution with index 1. What is the difference between these arrays ?