随笔分类 -  Leetcode

上一页 1 ··· 19 20 21 22 23
摘要:Given a linked list, remove the n-th node from the end of list and return its head. Example: Note: Given n will always be valid. Follow up: Could you 阅读全文
posted @ 2018-10-03 22:08 Veritas_des_Liberty 阅读(147) 评论(0) 推荐(0) 编辑
摘要:Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to le 阅读全文
posted @ 2018-10-03 21:11 Veritas_des_Liberty 阅读(214) 评论(0) 推荐(0) 编辑
摘要:Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique q 阅读全文
posted @ 2018-10-02 22:41 Veritas_des_Liberty 阅读(143) 评论(0) 推荐(0) 编辑
摘要:Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the thr 阅读全文
posted @ 2018-10-02 22:02 Veritas_des_Liberty 阅读(149) 评论(0) 推荐(0) 编辑
摘要:Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the s 阅读全文
posted @ 2018-09-30 22:00 Veritas_des_Liberty 阅读(117) 评论(0) 推荐(0) 编辑
摘要:Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, just two one's 阅读全文
posted @ 2018-09-30 20:48 Veritas_des_Liberty 阅读(170) 评论(0) 推荐(0) 编辑
摘要:Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. The matching should cover the entire  阅读全文
posted @ 2018-09-30 08:33 Veritas_des_Liberty 阅读(154) 评论(0) 推荐(0) 编辑
摘要:Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2: Example 3: 阅读全文
posted @ 2018-09-28 21:17 Veritas_des_Liberty 阅读(185) 评论(0) 推荐(0) 编辑
摘要:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font 阅读全文
posted @ 2018-09-28 17:47 Veritas_des_Liberty 阅读(172) 评论(0) 推荐(0) 编辑
摘要:Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: AC code: std 阅读全文
posted @ 2018-09-27 22:29 Veritas_des_Liberty 阅读(158) 评论(0) 推荐(0) 编辑
摘要:There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh 阅读全文
posted @ 2018-09-27 17:18 Veritas_des_Liberty 阅读(146) 评论(0) 推荐(0) 编辑
摘要:Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer 阅读全文
posted @ 2018-09-27 16:50 Veritas_des_Liberty 阅读(144) 评论(0) 推荐(0) 编辑
摘要:You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai 阅读全文
posted @ 2018-09-27 16:35 Veritas_des_Liberty 阅读(153) 评论(0) 推荐(0) 编辑

上一页 1 ··· 19 20 21 22 23