273. Integer to English Words
Convert a non-negative integer num to its English words representation. Example 1: Input: num = 123 Output: “One Hundred Twenty Three” Example […]
Convert a non-negative integer num to its English words representation. Example 1: Input: num = 123 Output: “One Hundred Twenty Three” Example […]
You are given a string word containing lowercase English letters. Telephone keypads have keys mapped with distinct collections of lowercase English letters, which can
A distinct string is a string that is present only once in an array. Given an array of strings arr, and an integer k, return the kth distinct string present
You are given the array nums consisting of n positive integers. You computed the sum of all non-empty continuous subarrays from the array and
You are given two integer arrays of equal length target and arr. In one step, you can select any non-empty subarray of arr and reverse it. You
A swap is defined as taking two distinct positions in an array and swapping the values in them. A circular array is defined as an array
You are given a 0-indexed array of strings details. Each element of details provides information about a given passenger compressed into a string of length 15.
You are given an array books where books[i] = [thicknessi, heighti] indicates the thickness and height of the ith book. You are also given an integer shelfWidth.
You are given a string s consisting only of characters ‘a’ and ‘b’. You can delete any number of characters in s to make s balanced. s is balanced if there is no
There are n soldiers standing in a line. Each soldier is assigned a unique rating value. You have to form a team of 3 soldiers
A city is represented as a bi-directional connected graph with n vertices where each vertex is labeled from 1 to n (inclusive). The edges in the graph are
You are given two 0-indexed strings source and target, both of length n and consisting of lowercase English letters. You are also given two 0-indexed character arrays original and changed, and an integer array cost,