JAVA | 100% fast | Short solution
If you found the solution helpful, kindly upvote. :)\n\n\nclass Solution {\n    public int getWinner(int[] arr, int k) {\n        int winner= arr[0];\n        i
If you found the solution helpful, kindly upvote. :)\n\n```\nclass Solution {\n    public int getWinner(int[] arr, int k) {\n        int winner= arr[0];\n        int count=0;\n        for(int i=1; i<arr.length; i++)\n        {\n            if(winner>arr[i])\n                count++;\n            else \n            {\n                winner= arr[i];\n                count=1;\n            }    \n            if(count==k)\n                return winner;\n        }\n        return winner;\n    }\n}\n```
[]