Consecutively Descending Integers
Given a string s containing digits, return whether it contains consecutively descending integers.
Given a string s containing digits, return whether it contains consecutively descending integers.
You are given a list of integers nums which contains at least one 1. Return whether all the 1s appear consecutively.
Given a string s, consisting of "X" and "Y"s, delete the minimum number of characters such that there’s no consecutive "X" and no consecutive "Y".
Given a string lowercase alphabet s, eliminate consecutive duplicate characters from the string and return it.
Given a binary tree root, return whether it’s a complete binary tree.
You are given a list of integers nums that used to be an arithmetic sequence. Given that a number was removed, and that the number was not the first or the l...
Given two strings s0 and s1, each representing a sentence, return the number of unique words that are shared between the two sentences.
Given a two-dimensional integer matrix, sort each of the columns in ascending order.
You are given a two-dimensional integer matrix where each cell represents number of coins in that cell. Assuming we start at matrix[0][0], and can only move ...
Given a positive integer n, find the length of its Collatz sequence. The Collatz sequence is generated sequentially where
Given a string s and a character c, return a new list of integers of the same length as s where for each index i its value is set the closest distance of s[i...
Given a clock time with hour and integer minutes, determine the smaller angle between the hour and the minute hands and floor it to the nearest integer.