Posted in LeetCode

LeetCode 321. Merge Two Binary Trees

题目描述 Given two binary tre…

Continue Reading
Posted in LeetCode

LeetCode 124. Judge Route Circle

题目描述 Initially, there is …

Continue Reading
Posted in JAVA

JavaScript保留两位小数的函数

对于一些小数点后有多位的浮点数,我们可能只需要保留…

Continue Reading
Posted in JAVA

用js检验mac地址

现在提供两种方法判断。 方法一: var temp…

Continue Reading
Posted in LeetCode

LeetCode 987. Maximum Depth of Binary Tree

题目描述 Given a binary tree,…

Continue Reading
Posted in LeetCode

LeetCode 678. Detect Capital

题目描述 Given a word, you ne…

Continue Reading
Posted in JAVA

微信下分享到朋友圈/微博、发送给朋友等的JS代码

// 发送给好友; WeixinJSBridge….

Continue Reading
Posted in JAVA

Javascript 697 获取字符串任意位置一个字符

我们可以使用charAt() 就可以获取字符串中某…

Continue Reading
Posted in LeetCode

LeetCode 666. Longest Uncommon Subsequence I

题目描述 Given a group of two…

Continue Reading
Posted in LeetCode

LeetCode 987. Single Number

题目描述 Given an array of in…

Continue Reading
Posted in C++

C++用TinyXML做XML解析

TinyXML是一个开源的解析XML的解析库,能够…

Continue Reading
Posted in C++

编译错误解决方法 fatal error LNK1103: debugging information corrupt; recompile module

把Tool -> Options ->…

Continue Reading