Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determin...
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determin...
Given a linked list, remove the nth node from the end of list and return its head.Note:...
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b ...
Given a digit string, return all possible letter combinations that the number could rep...
Given an array S of n integers, find three integers in S such that the sum is closest t...
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0...
Write a function to find the longest common prefix string amongst an array of strings. ...
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the ra...
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the ra...
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordin...
在es5中,新增了9个数组方法,大多数方法都有一个大致的特征,他们的第一参数是一个函数,并且对数组中的每个元素都执行该函数 (但不包括未初始化或者被删除的元素!!) 。第二...
JavaScript中预先定义了许多数组方法,这些方法都被定义在了Array.prototype中,任何数组都可以使用这些方法。 下面将介绍一些比较常用的方法 加入和删除 从...
在JavaScript语言中,数组是一种特殊的对象。 可以这么理解,数组就是属性名是整数的对象,当然其中是有一些不同的:比如数组元素的访问比常规的对象属性要快的多,再比如每个...
Implement regular expression matching with support for '.' and '*'. 题目大意实现一个判断正则匹配的函数is...
Determine whether an integer is a palindrome. Do this without extra space. 题目大意判断一个整数是否...
Implement atoi to convert a string to an integer. 题目大意题目描述非常简单,就是实现c语言中的atoi 函数。这个函数是将一...
Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -3...
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows li...
Given a string s, find the longest palindromic substring in s. You may assume that the ...
There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the media...