Ad
  • Custom User Avatar

    I dont believe that this code is how you solve it initialy.
    How your mind really solved this task:

    1. Transform input
    2. Transform input
    ...
    N. Input transformation match solution
    

    Initial sequential process was understandable for your mind. As a result, any general programmer can follow it too and understand your code.
    However, your refactor phase is not good practise. You basicaly encrypted your solution into oneliner to look more cool.
    Your solution is not even efficiency > readability. It is unreadable oneliner >> universum.
    Please, dont use this approach in production code. Be kind to your collegues :)