摘要: Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000. 判断字符串中最长的回文子串,子串不一定要连续。 阅读全文
posted @ 2018-04-06 15:47 Zzz...y 阅读(175) 评论(0) 推荐(0) 编辑
摘要: In this problem, a tree is an undirected graph that is connected and has no cycles. The given input is a graph that started as a tree with N nodes (wi 阅读全文
posted @ 2018-04-03 11:32 Zzz...y 阅读(168) 评论(0) 推荐(0) 编辑
摘要: A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com 阅读全文
posted @ 2018-04-03 10:50 Zzz...y 阅读(266) 评论(0) 推荐(0) 编辑
摘要: We are given an array A of positive integers, and two positive integers L and R (L <= R). Return the number of (contiguous, non-empty) subarrays such 阅读全文
posted @ 2018-04-01 15:44 Zzz...y 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. Th 阅读全文
posted @ 2018-03-29 16:27 Zzz...y 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: 寻找两个链表的交叉点。 阅读全文
posted @ 2018-03-27 10:13 Zzz...y 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements 阅读全文
posted @ 2018-03-23 19:23 Zzz...y 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-03-20 20:21 Zzz...y 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32-bit 阅读全文
posted @ 2018-03-16 19:00 Zzz...y 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 一、什么是进程:进程是并发程序的一次执行过程,是并发程序在一个数据集合上的执行过程,是系统进行资源分配和调度的一个独立单位。 二、进程的特征: 1、动态性:进程的实质是程序的一次执行过程,因此,动态性是进程最重要的特性。进程由操作系统建立与撤消,具有一定的生命周期。它由“创建”而产生,由“调度”而执 阅读全文
posted @ 2018-03-16 14:42 Zzz...y 阅读(192) 评论(0) 推荐(0) 编辑