自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 js 用于计算

由于js中数字类型的限制:所有的数都是用64位浮点型来表示,没有无符号数,所以实现各类算法,比如编码、解码之类的可能都会有问题。 下面列举一些常规的操作: 最大的整数 2^53 - 1Number.MAX_SAFE_INTEGER 所有的位运算都会自动转为32位进行,所以注意溢出的问题 有符号数转无符号数 num >>> 0 有符号右移(算数右移) >&gt...

2019-12-28 15:05:18 95

原创 qt搭建最简单的开发环境

这里可以下载新版本的qthttp://download.qt.io/archive/qt/ 注意在details中选择中国镜像,速度很快。 可以不使用vs版本的库,而选择mingw,这样直接就已经有编译器了,不过5.14版本部署程序无法工作,需要手动部署。 用此法可以快速搭建开环环境,分分钟写出一个不错的本地程序,没有必要安装超大体积的vs。 手动部署也超简单: 除了拷贝常规的dll外...

2019-12-28 14:42:14 109

原创 Node.js搭建最简单的http rest服务

采用koa2搭建,代码如下: "use strict"; const Koa = require('koa2'); const app = new Koa(); const router = require('koa-router')(); const koaBody = require('koa-body'); router.get('/time', ctx => { ctx...

2019-12-28 12:48:58 159

原创 godot引擎

小巧,精干的引擎,支持2D/3D开发,内置GDScript脚本,类python语法。 https://godotengine.org/

2019-12-28 11:19:07 266

原创 LeetCode | Median of Two Sorted Arrays

题目 There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). 解答 解法一 比较容易想到的就是将

2015-06-06 17:33:45 289

原创 LeetCode | Longest Substring Without Repeating Characters

题目 Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3

2015-06-06 10:35:20 285

原创 LeetCode | Add Two Numbers

1题目 You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it

2015-06-06 00:43:36 269

原创 LeetCode | Two Sum

1题目 Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the targ

2015-06-06 00:22:50 184

原创 LATEX初探

这篇文章主要是个人对LATEX的一点看法:包括LATEX如何适应于企业级应用和如何学习LATEX。

2015-01-19 21:40:30 451

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除