My Submissions Total Accepted: 9572 Total Submissions: 21748 Difficulty: Medium Given a string s and a string …
分类:LeetCode
LeetCode | Pascal's Triangle II
题目: Given an index k, return the kth row of the Pascal’s triangle. For example, given&nbs…
LeetCode | Remove Duplicates from Sorted List II
题目: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct …
[Leetcode] Regular Expression Matching 正则表达式匹配
Regular Expression Matching Implement regular expression matching with support for '.' and'*'. '.' Matches any…
LeetCode | Single Number II(单个数字II)
Given an array of integers, every element appears three times except for one. Find that single one. …
LeetCode 149. Max Points on a Line
题目 Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 给出二维平面上…
求1000000以内的素数
文章作者:Tyan 博客:noahsnail.com | CSDN | 简书 1. 素数 质数(Prime number),又称素数,指在大于1的自然数中,除了1和该数自身…
【LeetCode】- Valid Palindrome(有效回文字符串)
1、题目描述 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring …
88. 合并两个有序数组
88. 合并两个有序数组 问题 给定两个有序整数数组 nums1 和 nums2,将 nums2 合并到 nums1 中,使得 num1 成为一个有序数组。 说明: 初始化 nums1 和 nums2 的元素数量分别为 …
LeetCode LintCode 干货全集 2018
Java Algorithm Problems 序言 从开始这个Github已经有将近三四年时间, 很高兴可以帮到有需要的人. 我一直认为, 知识本身是无价的, 因此每逢闲暇, 我就会来维护, 给刷题的朋友们一些我的想法…
[LeetCode By Go 25]389. Find the Difference
题目 Given two strings s and t which consist of only lowercase letters. String t is generated by random shufflin…
[LeetCode] Serialize and Deserialize Binary Tree 二叉树的序列化和去序列化
Serialization is the process of converting a data structure or object into a sequence of bits so that i…