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個數(shù)組方法,大多數(shù)方法都有一個大致的特征,他們的第一參數(shù)是一個函數(shù),并且對數(shù)組中的每個元素都執(zhí)行該函數(shù) (但不包括未初始化或者被刪除的元素??!) 。第二...
JavaScript中預先定義了許多數(shù)組方法,這些方法都被定義在了Array.prototype中,任何數(shù)組都可以使用這些方法。 下面將介紹一些比較常用的方法 加入和刪除 從...
在JavaScript語言中,數(shù)組是一種特殊的對象。 可以這么理解,數(shù)組就是屬性名是整數(shù)的對象,當然其中是有一些不同的:比如數(shù)組元素的訪問比常規(guī)的對象屬性要快的多,再比如每個...
Implement regular expression matching with support for '.' and '*'. 題目大意實現(xiàn)一個判斷正則匹配的函數(shù)is...
Determine whether an integer is a palindrome. Do this without extra space. 題目大意判斷一個整數(shù)是否...
Implement atoi to convert a string to an integer. 題目大意題目描述非常簡單,就是實現(xiàn)c語言中的atoi 函數(shù)。這個函數(shù)是將一...
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...