Leetcode problem 82 - Lexicographically Smallest Palindrome
You are given a string s consisting of lowercase English letters, and you are allowed to perform operations on it. In one operation, you can replace a charac...
You are given a string s consisting of lowercase English letters, and you are allowed to perform operations on it. In one operation, you can replace a charac...
You are given a 0-indexed integer array nums and an integer k. Your task is to perform the following operation exactly k times in order to maximize your scor...
You are given a positive integer num consisting only of digits 6 and 9.
Balanced strings are those that have an equal quantity of ‘L’ and ‘R’ characters.
You are given a positive integer num consisting of exactly four digits. Split num into two new integers new1 and new2 by using the digits found in num. Leadi...