• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
xiaoba1203
记录leetcode之路
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 ··· 19 下一页

2017年3月28日

leetcode 210. Course Schedule II 课程计划 II ---------- java
摘要: There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you have t 阅读全文
posted @ 2017-03-28 12:32 xiaoba1203 阅读(195) 评论(0) 推荐(0)
 
leetcode 209. Minimum Size Subarray Sum 找出最小的和的长度 ---------- java
摘要: Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't 阅读全文
posted @ 2017-03-28 11:52 xiaoba1203 阅读(232) 评论(0) 推荐(0)
 
leetcode 208. Implement Trie (Prefix Tree) 设计前缀树 ---------- java
摘要: Implement a trie with insert, search, and startsWith methods. Note:You may assume that all inputs are consist of lowercase letters a-z. 设计一个前缀树,包括inse 阅读全文
posted @ 2017-03-28 10:28 xiaoba1203 阅读(129) 评论(0) 推荐(0)
 
 

2017年3月27日

leetcode 207. Course Schedule 课程计划 ---------- java
摘要: There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you have t 阅读全文
posted @ 2017-03-27 19:48 xiaoba1203 阅读(1084) 评论(0) 推荐(0)
 
 

2017年3月25日

leetcode 206. Reverse Linked List 反转链表 ---------- java
摘要: Reverse a singly linked list. 阅读全文
posted @ 2017-03-25 13:33 xiaoba1203 阅读(476) 评论(0) 推荐(0)
 
 

2017年3月24日

leetcode 205. Isomorphic Strings 判断两个字符串能否互相转换 ---------- java
摘要: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc 阅读全文
posted @ 2017-03-24 18:52 xiaoba1203 阅读(227) 评论(0) 推荐(0)
 
leetcode 204. Count Primes 找出素数的个数 ---------- java
摘要: Description: Count the number of prime numbers less than a non-negative number, n. 找出小于n的素数个数。 1、用最淳朴的算法果然超时了。 2、埃拉托斯特尼筛法Sieve of Eratosthenes 我们从2开始遍 阅读全文
posted @ 2017-03-24 18:11 xiaoba1203 阅读(480) 评论(0) 推荐(0)
 
leetcode 203. Remove Linked List Elements 删除链表中的某个值 ---------- java
摘要: Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 2 -- 阅读全文
posted @ 2017-03-24 17:33 xiaoba1203 阅读(146) 评论(0) 推荐(0)
 
leetcode 202. Happy Number 判断一个数是否是“Happy Number” ---------- java
摘要: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive intege 阅读全文
posted @ 2017-03-24 17:16 xiaoba1203 阅读(303) 评论(0) 推荐(0)
 
leetcode 201. Bitwise AND of Numbers Range 求范围中,每一位都是1的数 ---------- java
摘要: Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive. For example, given the range [5, 阅读全文
posted @ 2017-03-24 16:55 xiaoba1203 阅读(126) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 7 ··· 19 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3