259. 3Sum Smaller
Given an array of n integers nums and a target, find the number of index triplets i, j, k with 0 Input: nums =…
16. 3Sum Closest
Given an array nums of n integers and an integer target , find three integers in nums such that the sum is clo…
186. Reverse Words in a String II
Given an input string , reverse the string word by word. Example: Input: ["t","h","e"," ","s","k","y"," ","i",…
206. Reverse Linked List
Reverse a singly linked list. Example: Input: 1 2 3 4 5 NULL Output: 5 4 3 2 1 NULL Follow up: A linked list c…
53. Maximum Subarray
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the large…
使用Hazel部署Electron更新服务器
Hazel是一款轻量级的Electron 程序更新服务器,可以在Now上免费部署。它会自动从 GitHub Releases 中拉取更新文件,并且利用 GitHub CDN 的强大性能,下载很快。 首先在自己电脑上安装一…
Electron autoUpdater 自动更新
Electron是一款可以使用 JavaScript,HTML 和 CSS构建跨平台桌面应用的框架。但是当用户获取下一个版本的时候,只能下载重新安装一遍下一个版本,十分僵硬,于是我们需要引入一个Electron自动更新的…
如果你在墨西哥旅游又丢了带有美国签证的中国护照你该怎么办
这篇文章转自我室友,发生在他带妹去墨西哥旅游的时候,当时处境十分窘迫。我还没去过墨西哥,但是听他描述墨西哥貌似警匪一家,对外地游客十分不友好,感觉记录一下还是很有必要的,难说我去的时候就用到了(希望用不到,毕竟比他精 以…
Electron中使用Bootstrap和JQuery
一般网页都可以直接使用 bootstrap 和 JQuery 的CDN来请求 bootstrap 和 JQuery 。但是做electron应用的时候希望做成本地的,因为不是每时每刻都可以联网。原以为 npm 安装之后直…
461. Hamming Distance
The Hamming distance between two integers is the number of positions at which the corresponding bits are diffe…