• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






星星眨眼睛

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
1 2 下一页

2019年3月27日

96. Unique Binary Search Trees
摘要: 题目描述 Given n, how many structurally unique BST's (binary search trees) that store values 1 ... n? Example: 解题思路: 在给定的序列[1,n]下,我们来构造二叉搜索树,首先对于序列中的每个数我们 阅读全文
posted @ 2019-03-27 20:16 星星眨眼睛 阅读(90) 评论(0) 推荐(0)
 
1013. Pairs of Songs With Total Durations Divisible by 60
摘要: 题目描述: In a list of songs, the i-th song has a duration of time[i] seconds. Return the number of pairs of songs for which their total duration in secon 阅读全文
posted @ 2019-03-27 19:35 星星眨眼睛 阅读(110) 评论(0) 推荐(0)
 

2019年2月24日

leetcode_2 Sort Array By Parity II(sort)
摘要: 题目描述: Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even. Sort the array so that whenever 阅读全文
posted @ 2019-02-24 21:52 星星眨眼睛 阅读(112) 评论(0) 推荐(0)
 

2019年2月22日

leetcode_1 Valid Anagram(sort)
摘要: 题目描述: Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input:s = "anagram", t = "nagaram" Output: true Ex 阅读全文
posted @ 2019-02-22 20:46 星星眨眼睛 阅读(96) 评论(0) 推荐(0)
 

2018年11月24日

LeetCode_16. 3Sum Closest
摘要: 一、题目描述 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 阅读全文
posted @ 2018-11-24 10:14 星星眨眼睛 阅读(126) 评论(0) 推荐(0)
 

2018年11月19日

894. All Possible Full Binary Trees
摘要: 一、题目描述 A full binary tree is a binary tree where each node has exactly 0 or 2 children. Return a list of all possible full binary trees with N nodes. 阅读全文
posted @ 2018-11-19 20:38 星星眨眼睛 阅读(327) 评论(0) 推荐(0)
 

2018年11月16日

[LeetCode]_63 Unique Paths II
摘要: 一、题目描述 A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right a 阅读全文
posted @ 2018-11-16 18:30 星星眨眼睛 阅读(165) 评论(0) 推荐(0)
 

2018年11月14日

leetCode_Reverse Integer
摘要: 一、 题目描述: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note:Assume we are dealing with an environment 阅读全文
posted @ 2018-11-14 19:13 星星眨眼睛 阅读(110) 评论(0) 推荐(0)
 

2018年11月6日

最大连续数列和
摘要: 一、题目描述 对于一个有正有负的整数数组,请找出总和最大的连续数列。 给定一个int数组A和数组大小n,请返回最大的连续数列的和。保证n的大小小于等于3000。 测试样例: int getMaxSum(vector<int> A, int n) { // write code here //maxs 阅读全文
posted @ 2018-11-06 19:44 星星眨眼睛 阅读(159) 评论(0) 推荐(0)
 

2018年10月30日

[Leetcode] 794. Valid Tic-Tac-Toe State 解题报告
摘要: 一、题目描述: 大致意思是:判定棋盘的状态是否符合规则 A Tic-Tac-Toe board is given as a string array board. Return True if and only if it is possible to reach this board positi 阅读全文
posted @ 2018-10-30 21:14 星星眨眼睛 阅读(356) 评论(0) 推荐(0)
 
1 2 下一页