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

2017年4月24日

leetcode 220. Contains Duplicate III 求一个数组中有没有要求的元素 ---------- java
摘要: Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and 阅读全文
posted @ 2017-04-24 10:36 xiaoba1203 阅读(267) 评论(0) 推荐(0)
 
 

2017年4月19日

leetcode 219. Contains Duplicate II 求一个数组中有没有重复元素 ---------- java
摘要: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j]and the a 阅读全文
posted @ 2017-04-19 18:50 xiaoba1203 阅读(897) 评论(0) 推荐(0)
 
 

2017年3月31日

leetcode 1 - 5 解题思路
摘要: 1. Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wo 阅读全文
posted @ 2017-03-31 16:14 xiaoba1203 阅读(213) 评论(0) 推荐(0)
 
 

2017年3月30日

leetcode 217. Contains Duplicate 求一个数组中有没有重复元素 ---------- java
摘要: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr 阅读全文
posted @ 2017-03-30 16:59 xiaoba1203 阅读(120) 评论(0) 推荐(0)
 
leetcode 216. Combination Sum III 求和III ---------- java
摘要: Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be 阅读全文
posted @ 2017-03-30 16:40 xiaoba1203 阅读(221) 评论(0) 推荐(0)
 
leetcode 215. Kth Largest Element in an Array 寻找第k个大的数---------- java
摘要: Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For exam 阅读全文
posted @ 2017-03-30 15:52 xiaoba1203 阅读(1560) 评论(0) 推荐(0)
 
leetcode 214. Shortest Palindrome 构造最短回文串---------- java
摘要: Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can f 阅读全文
posted @ 2017-03-30 12:46 xiaoba1203 阅读(209) 评论(0) 推荐(0)
 
 

2017年3月28日

leetcode 213. House Robber II 抢劫房子II---------- java
摘要: Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for his thievery so tha 阅读全文
posted @ 2017-03-28 23:00 xiaoba1203 阅读(359) 评论(0) 推荐(0)
 
leetcode 212. Word Search II Add to List 查找单词---------- java
摘要: Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be constructed from letters of sequentially adja 阅读全文
posted @ 2017-03-28 18:05 xiaoba1203 阅读(246) 评论(0) 推荐(0)
 
leetcode 211. Add and Search Word - Data structure design 设计一个数据结构用来存储word---------- java
摘要: Design a data structure that supports the following two operations: search(word) can search a literal word or a regular expression string containing o 阅读全文
posted @ 2017-03-28 16:15 xiaoba1203 阅读(175) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 ··· 19 下一页

公告


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