You are given an m x n binary matrix mat of 1's (representing soldiers) and 0's (representing civili...
Given a string s consisting only of letters 'a' and 'b'. In a single step you can remove one palindr...
Given an array of integers arr, replace each element with its rank. The rank represents how large th...
Given a positive integer num consisting only of digits 6 and 9. Return the maximum number you can ge...
Given an integer n. No-Zero integer is a positive integer which doesn't contain any 0 in its decimal...
We are given a list nums of integers representing a list compressed with run-length encoding. Consid...
Given a string s formed by digits ('0' - '9') and '#' . We want to map s to English lowercase charac...
Given an integer n, return any array containing n unique integers such that they add up to 0. Exampl...
Given an array arr, replace every element in that array with the greatest element among the elements...
Given an array nums of integers, return how many of them contain an even number of digits. Example 1...