摘要: 问题描述:给定两个序列,判断是否为对应合法的入栈出栈序列? * 若序列元素没有重复 我想到大概三种方式【为简化思路,假设需判定的数组仅仅只有序列是否合法问题,其他的不考虑】 假设给定入栈元素: 1,3,4,7,2,8 对应序列: 0,1,2,3,4,5 那么出栈元素的组合可以是: 1,3,4,7,2 阅读全文
posted @ 2018-03-03 12:29 白常福 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 简单的学习了git,将相关命令记录备查: git init 建立版本库git add 上传(提交到暂存区)git commit -0m "版本描述" 提交(提交到mater分支区) git log 提交日志git reset --hard [版本号][HEAD^^] 恢复到指定版本 可以用版本号也可 阅读全文
posted @ 2017-10-16 18:21 白常福 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 一、项目说明: 本次通过实现一个小的功能模块对Python GUI进行实践学习。项目来源于软件制造工程的作业。记录在这里以复习下思路和总结编码过程。所有的源代码和文件放在这里: 链接: https://pan.baidu.com/s/1qXGVRB2 密码: 4a4r 内置四个文件,分别是ora.s 阅读全文
posted @ 2017-10-07 09:42 白常福 阅读(36462) 评论(6) 推荐(3) 编辑
摘要: 问题描述: 比如修改了数据的自定义显示格式(日期显示 yyyy"年"m"月",手机号分段000-0000-0000),应用后发现只有部分生效,或者都不生效,再检查发现格式确实已经设置好了。 解决方案: 这其实是Excel的格式显示问题,一般双击单元格后格式就会自动修正。对于大量数据,可以选择数据—— 阅读全文
posted @ 2017-09-10 08:58 白常福 阅读(10044) 评论(0) 推荐(0) 编辑
摘要: Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at 阅读全文
posted @ 2017-09-09 08:25 白常福 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target. E 阅读全文
posted @ 2017-09-07 07:34 白常福 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 阅读全文
posted @ 2017-09-06 07:24 白常福 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example:Given a = 1 and b = 2, return 3. 分析:不通过四则运算符号完 阅读全文
posted @ 2017-09-06 07:02 白常福 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, n] 阅读全文
posted @ 2017-09-05 07:33 白常福 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Invert a binary tree. to Trivia:This problem was inspired by this original tweet by Max Howell: 分析:翻转二叉树 思路1: 使用递归的方式,时间复杂度为o(n),空间复杂度为o(n) JAVA CODE 阅读全文
posted @ 2017-09-05 07:02 白常福 阅读(251) 评论(0) 推荐(0) 编辑