Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinctnumbers from the original list. Example 1: Example 2: ...
分类:
其他好文 时间:
2019-05-01 13:21:13
阅读次数:
123
PTA 7-60 删除重复字符 分析: 1、注意字符串长度,original用了gets()接收,可以通过strlen()得到长度,但target不行,要单独定义变量记录长度 2、另一种思路是先排序再输出不重复的字符 ...
分类:
其他好文 时间:
2019-04-30 16:58:01
阅读次数:
617
For sale online Truck Adblue Emulator For SCANIA See the price Where to buy? Truck Adblue Emulator For SCANIA is the best selling product in the marke ...
分类:
数据库 时间:
2019-04-26 00:10:35
阅读次数:
190
在开始了解Netty是什么之前,我们先来回顾一下,如果我们需要实现一个客户端与服务端通信的程序,使用传统的IO编程,应该如何来实现? IO编程 我们简化下场景:客户端每隔两秒发送一个带有时间戳的"hello world"给服务端,服务端收到之后打印。 为了方便演示,下面例子中,服务端和客户端各一个类 ...
分类:
Web程序 时间:
2019-04-23 17:29:30
阅读次数:
213
Starting with a positive integer , we reorder the digits in any order (including the original order) such that the leading digit is not zero. Return i ...
分类:
编程语言 时间:
2019-04-22 00:38:31
阅读次数:
213
图片懒加载技术 图片懒加载是一种网页优化技术。图片作为一种网络资源,在被请求时也与普通静态资源一样,将占用网络资源,而一次性将整个页面的所有图片加载完,将大大增加页面的首屏加载时间。为了解决这种问题,通过前后端配合,使图片仅在浏览器当前视窗内出现时才加载该图片,达到减少首屏图片请求数的技术就被称为“ ...
分类:
编程语言 时间:
2019-04-21 12:44:20
阅读次数:
156
默认字体 Android SDK自带了四种字体:"normal"“monospace",“sans”, “serif”,如下: 字体 看这四兄弟长的还是蛮像,我是看不出多大差别。。。 设置方式 1.通过XML文件设置 <TextView android:layout_width="wrap_cont ...
分类:
移动开发 时间:
2019-04-20 10:04:51
阅读次数:
230
判断String是否为palindrome:Two Pointers(left & right) 同时边扫边check 当前两边的char是否相同 code 判断number是否为palindrome:先reverse original number 变为reversed number ,再判断 o ...
分类:
其他好文 时间:
2019-04-20 09:40:26
阅读次数:
128
Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ 1 3 6 9 Output: 4 / \ 7 2 / \ / \ 9 6 3 1 Trivia: This problem was inspired by this original t ...
分类:
其他好文 时间:
2019-04-18 13:31:54
阅读次数:
117
Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of al... ...
分类:
其他好文 时间:
2019-04-15 20:13:07
阅读次数:
111