Han1254

走在成为极客的路上。


  • 首页

  • 关于

  • 标签

  • 分类

  • 归档

  • 日程表

NEUQOJ-1016-Roliygu&Yilan

发表于 2019-06-12 | 分类于 NEUQOJ , 1016

Description

Roliygu is famous because he likes to play games. Today he puts a chessboard in the desktop,and plays a game with Yilan. The size of the chessboard is n by n. A stone is placed in a corner square. They play alternatively with Roliygu having the first move. Each time,player is allowed to move the stone to an unvisited neighbor square horizontally or vertically. The one who can’t make a move will lose the game. If both play perfectly, who will win the game?

阅读全文 »

some idea about sign out

发表于 2019-06-04

Android_sharepreference_commit&apply

发表于 2019-06-03 | 分类于 Android , sharedpreference

转载自SharedPreference.Editor的apply和commit方法异同

阅读全文 »

leetcode-26-删除相同元素

发表于 2019-06-02 | 分类于 Leetcode , 删除相同元素

给定一个排序数组,你需要在原地删除重复出现的元素,使得每个元素只出现一次,返回移除后数组的新长度。

不要使用额外的数组空间,你必须在原地修改输入数组并在使用 O(1) 额外空间的条件下完成。

阅读全文 »

Green公式

发表于 2019-05-25

leetcode_合并链表

发表于 2019-05-24 | 分类于 Leetcode , 合并链表

21.将两个有序链表合并为一个新的有序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。
示例:

输入:1->2->4, 1->3->4
输出:1->1->2->3->4->4

(友情链接 —>Java数据结构和算法(七)——链表 )

阅读全文 »

leetcode_最长公共前缀

发表于 2019-05-18 | 分类于 Leetcode , 最长公共前缀

编写一个函数来查找字符串数组中的最长公共前缀。
如果不存在公共前缀,返回空字符串 “”。

示例 1:
输入: [“flower”,”flow”,”flight”]
输出: “fl”

示例 2:
输入: [“dog”,”racecar”,”car”]
输出: “”
解释: 输入不存在公共前缀。

阅读全文 »

leetcode_整数转罗马数字

发表于 2019-05-16 | 分类于 Leetcode , 整数转罗马数字

罗马数字包含以下七种字符: I, V, X, L,C,D 和 M。

1
2
3
4
5
6
7
8
字符          数值
I 1
V 5
X 10
L 50
C 100
D 500
M 1000

阅读全文 »

leetcode_有效括号

发表于 2019-05-16 | 分类于 Leetcode , 有效括号

给定一个只包括 ‘(‘,’)’,’{‘,’}’,’[‘,’]’ 的字符串,判断字符串是否有效。
有效字符串需满足:
左括号必须用相同类型的右括号闭合。
左括号必须以正确的顺序闭合。
注意空字符串可被认为是有效字符串。

阅读全文 »

Android-px_dp

发表于 2019-04-20
123…5
Han1254

Han1254

lalalalala

46 日志
32 分类
25 标签
RSS
© 2020 Han1254
由 Hexo 强力驱动
|
主题 — NexT.Muse v5.1.4