设置如何从terminal中启动sublime
第一步:创建bin folder mkdir ~/bin 第二步:创建一个符号链接 ln -s “/Applications/Sublime Text.app/Contents/SharedSuppo…
WordPress 主题NextWP发布
这个原先是typecho上的主题,之前看到不少人在使用,自己也非常喜欢,这周末有空就做了移植。希望大家喜欢。 移植的比较粗,还有很多完善空间。由于自己博客也在使用,所以应该会不定期更新。会在我博客和g…
Amazon LightSail实战体验
这几天在想着降低AWS RDS的Data Transfer费用发愁,由于文件服务器不在AWS,连接RDS会被按照流量收取Data Transfer Fee,费用还特别高。想了几个解决方案: 把文件服务…
653. Two Sum IV – Input is a BST
Given a Binary Search Tree and a target number, return true if there exist two elements in the BST s…
112. Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all…
110. Balanced Binary Tree
Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary …
270. Closest Binary Search Tree Value
Given a non-empty binary search tree and a target value, find the value in the BST that is closest t…
100. Same Tree
Given two binary trees, write a function to check if they are equal or not. Two binary trees are con…
107. Binary Tree Level Order Traversal II
Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, fro…
257. Binary Tree Paths
Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: 1 …