DescriptionGiven a C++ program, remove comments from it. The program source is an array where s
DescriptionGiven a string, determine if it is a palindrome, considering only alphanumeric charr...
DescriptionGiven a sorted array nums, remove the duplicates in-place such that duplicat, you must do ...
Given an arbitrary ransom note string and another string containing letters from all the magaz
DescriptionDetermine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated acco
DescriptionGiven the coordinates of four points in 2D space, return whether the four points
DescriptionWrite a function to check whether an input string is a valid IPv4 address or IPv6 addr
DescriptionGiven a binary tree, determine if it is a valid binary search tree (BST).Assume a BST i
DescriptionOne way to serialize a binary tree is to use pre-order traversal. When we encoun
DescriptionYou are given two jugs with capacities x and y litres. There is an infinite amount of water
DescriptionGiven an input string (s) and a pattern §, implement wildcard pattern matching wi
DescriptionA sequence of numbers is called a wiggle sequence if the differences between succe
DescriptionGiven an unsorted array nums, reorder it such that nums < nums > nums < nu
DescriptionGiven a 2D board and a list of words from the dictionary, find all words in the board.Ea
DescriptionGiven a non-empty string s and a dictionary wordDict containing a list of non-empty
DescriptionGiven a non-empty string s and a dictionary wordDict containing a list of non-emp
DescriptionGiven two words (beginWord and endWord), and a dictionary’s word list, find all shortean be changed at...
DescriptionGiven n non-negative integers representing an elevation map where the width of ea
DescriptionGiven a matrix A, return the transpose of A.The transpose of a matrix is the matrix flippe
DescriptionGiven an array of integers, return indices of the two numbers such that they add up to a specif
DescriptionGiven an integer n, generate all structurally unique BST’s (binary search trees) that store
DescriptionInternational Morse Code defines a standard encoding where each letter is mapped to a series of do
DescriptionGiven n, how many structurally unique BST’s (binary search trees) that store values 1 … n?Example:Input:3Output:5Explanation:Given n = 3, there are a total of 5 unique BST's: ...
DescriptionA robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagr
DescriptionA robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram belo
DescriptionA character in UTF8 can be from 1 to 4 bytes long, subjected to the following rules:For 1.
DescriptionGiven two strings s and t , write a function to determine if t is an anagram of s.Example 1:Inpu
DescriptionConsider the string s to be the infinite wraparound string of “abcdefghijklmnopqrstuvwxyw we ...
DescriptionValidate if a given string can be interpreted as a decimal number.Some examples:"0" =
Copyright © 2005-2023 51CTO.COM