简单题,如果不转string要牺牲一些时间复杂度: Submission Detail 11509 / 11509 test cases passed. Status: Accepted Runtime: 128 ms Memory Usage: 13.2 MB Submitted: 1 minut ...
分类:
其他好文 时间:
2019-05-04 18:44:01
阅读次数:
133
V - Distpicker 地区选择器环境问题不多说,自己看文档,主要讲一下在实际使用过程中如何将下拉框的值赋值到对象属性上.文档: https://distpicker.pigjian.com/github: https://github.com/jcc/v-distpicker项目运用:1.表 ...
分类:
其他好文 时间:
2019-05-01 01:40:01
阅读次数:
1625
1136 A Delayed Palindrome (20 分) 1136 A Delayed Palindrome (20 分) 1136 A Delayed Palindrome (20 分) Consider a positive integer N written in standard n ...
分类:
其他好文 时间:
2019-04-29 12:49:14
阅读次数:
157
Two Pointers 1. 28. Implement strStr() 用 i 记录haystack偏移量,j 记录 needle 的偏移量。 2. 125. Valid Palindrome 只需要建立两个指针,head 和 tail, 分别从字符的开头和结尾处开始遍历整个字符串,如果遇到非 ...
分类:
其他好文 时间:
2019-04-26 22:39:50
阅读次数:
189
Math Easy 1.7. Reverse Integer 采用验证的方式,如果当前newResult越界,返回错误。 2. 9. Palindrome Number 我们可以利用取整和取余来获得我们想要的数字,比如 1221 这个数字,如果 计算 1221 / 1000, 则可得首位1, 如果 ...
分类:
其他好文 时间:
2019-04-23 19:25:27
阅读次数:
116
判断String是否为palindrome:Two Pointers(left & right) 同时边扫边check 当前两边的char是否相同 code 判断number是否为palindrome:先reverse original number 变为reversed number ,再判断 o ...
分类:
其他好文 时间:
2019-04-20 09:40:26
阅读次数:
128
图片来自:https://www.cnblogs.com/linuxprobe/p/5381538.html ...
分类:
其他好文 时间:
2019-04-17 20:49:32
阅读次数:
208
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 ...
分类:
其他好文 时间:
2019-04-15 19:54:13
阅读次数:
112
Palindrome Number 问题简介:判断输入数字是否是回文,不是返回0,负数返回0 举例: 1: 输入: 121 输出: true 2: 输入: -121 输出: false 解释: 回文为121-,所以负数都不符合 3: 输入: 10 输出: false 解释: 倒序为01,不符合要求 ...
分类:
其他好文 时间:
2019-04-14 16:33:29
阅读次数:
152
一.?nosql(非关系性数据库): mongoDB hbase redis nulch hive pig mahout zookeeper 二:redis 数据类型 1.存储string: 常用命令: 设置/取值: set key value get key getset key value de ...
分类:
其他好文 时间:
2019-04-13 00:52:24
阅读次数:
149