Posted in LeetCode

LeetCode 136. Count Binary Substrings(统计二进制子字符串)

题目描述 Give a string s, cou…

Continue Reading
Posted in Python

635.Python日期操作

1. 日期输出格式化 所有日期、时间的api都在d…

Continue Reading
Posted in JAVA

847.JavaScript监听oncopy复制事件

以下代码实现当用户复制时追加一段文字。 docum…

Continue Reading
Posted in LeetCode

LeetCode 888. Invert Binary Tree(翻转二叉树)

题目描述 Invert a binary tree…

Continue Reading
Posted in LeetCode

LeetCode 474. Max Area of Island

题目描述 Given a non-empty 2D…

Continue Reading
Posted in LeetCode

LeetCode 888. Employee Importance(员工重要度)

题目描述 You are given a data…

Continue Reading
Posted in LeetCode

LeetCode 254. Binary Number with Alternating Bits

Given a positive integer,…

Continue Reading
Posted in Python

975.用Python获取Google的下拉框自动完成提示文本

直接上代码了。 #!/usr/bin/python…

Continue Reading
Posted in Python

666.用Python在Windows下实现定时关机

直接上代码: ~/Desktop/shutdown…

Continue Reading
Posted in LeetCode

LeetCode 999. Average of Levels in Binary Tree(二叉树每层的平均值)

题目描述 Given a non-empty bi…

Continue Reading
Posted in LeetCode

LeetCode 471. Trim a Binary Search Tree(修剪二叉搜索树)

题目描述 Given a binary searc…

Continue Reading
Posted in JAVA

749.ie9中createElement动态生成iframe兼容性问题解决方法

以下代码在IE8下运行通过,在IE9中出错:doc…

Continue Reading