杨帆博客

你想开发游戏还是改变世界?


  • 首页

  • 标签

  • 归档

  • 搜索

Employee-Free-Time

发表于 2018-01-19 | 更新于: 2018-08-22

题目地址

LeetCode#759 Employee Free Time

题目描述

We are given a list schedule of employees, which represents the working time for each employee.

Each employee has a list of non-overlapping Intervals, and these intervals are in sorted order.

Return the list of finite intervals representing common, positive-length free time for all employees, also in sorted order.

阅读全文 »

Prime-Number-of-Set-Bits-in-Binary-Representation

发表于 2018-01-18 | 更新于: 2018-08-22

题目地址

LeetCode#762 Prime Number of Set Bits in Binary Representation

题目描述

  Given two integers L and R, find the count of numbers in the range [L, R] (inclusive) having a prime number of set bits in their binary representation.

(Recall that the number of set bits an integer has is the number of 1s present when written in binary. For example, 21 written in binary is 10101 which has 3 set bits. Also, 1 is not a prime.)

阅读全文 »

Partition-Labels

发表于 2018-01-17 | 更新于: 2018-08-22

题目地址

LeetCode#763 Partition Labels

题目描述

  A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one part, and return a list of integers representing the size of these parts.

阅读全文 »

Find-Smallest-Letter-Greater-Than-Target

发表于 2018-01-12 | 更新于: 2018-08-22

题目地址

LeetCode#744 Find Smallest Letter Greater Than Target

题目描述

  Given a list of sorted characters letters containing only lowercase letters, and given a target letter target, find the smallest element in the list that is larger than the given target.

  Letters also wrap around. For example, if the target is target = 'z' and letters = ['a', 'b'], the answer is 'a'.

阅读全文 »

UML图学习链接

发表于 2018-01-11 | 更新于: 2018-08-22
类图

UML类图关系(泛化 、继承、实现、依赖、关联、聚合、组合)

包图

包图(命名空间)

阅读全文 »
1…373839…46
KsGin

KsGin

游戏程序员/计算机图形学/Unity/西山居搬砖

226 日志
16 标签
GitHub E-Mail Google Twitter
© 2018 KsGin @ 2018
0%