摘要: Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Example 1 阅读全文
posted @ 2020-05-21 06:12 闲云潭影 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Implement pow(x, n), which calculates x raised to the power n (xn). Example 1: Input: 2.00000, 10 Output: 1024.00000 Example 2: Input: 2.10000, 3 Outp 阅读全文
posted @ 2020-05-21 05:02 闲云潭影 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 记下来以后以便于查询,以后还会更新更多的命令 -c 编译或者汇编源文件但是不作为连接,编译器输出对英语原文件的目标文件。 -S 编译后停止不进行汇编,对于每个属于的非汇编语言文件,输出文件时汇编语言。 -E 只是进行预编译 -o file 指定输出文件file 该选项不在乎GCC产生什么输出。 -i 阅读全文
posted @ 2020-05-18 10:52 闲云潭影 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 是时候应该检讨自己的一些问题了。 1. 懒惰: 自己在自己的舒适圈中不愿意移动自己的脚步。很多的时候不愿意学习,玩儿的时候不能尽心尽力的去玩 学习的时候不能尽心尽力的去学习。心思散漫 不能集中精力 2.笔记做的少。 只是当时记住了很多的东西但是过了一阵子就会忘记自己没有一套完整的学习记录的系统 3. 阅读全文
posted @ 2020-05-14 17:06 闲云潭影 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 二叉树的最近公共祖先 Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: 阅读全文
posted @ 2020-04-29 06:15 闲云潭影 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree struct Node { int val; Node *left; Node *right; Node *next; } Populate each next pointer to point to its next right node. If there 阅读全文
posted @ 2020-04-29 05:23 闲云潭影 阅读(125) 评论(0) 推荐(0) 编辑
摘要: You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following defin 阅读全文
posted @ 2020-04-28 13:21 闲云潭影 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For example, 阅读全文
posted @ 2020-04-27 07:48 闲云潭影 阅读(254) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. N 阅读全文
posted @ 2020-04-22 07:21 闲云潭影 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet 阅读全文
posted @ 2020-04-22 06:45 闲云潭影 阅读(148) 评论(0) 推荐(0) 编辑