摘要: 记录研发路上遇到的Linux shell命令 操作远程主机Docker 登陆远程主机 dssh/ssh ip地址 保存images 使用命令 docker save imagesname route/filename.tar 导入image文件tar格式 cat imagename.tar | do 阅读全文
posted @ 2018-06-29 10:41 bloomingFlower 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 本文章是转载来自https://blog.csdn.net/wonengxing/article/details/6044576 编译模式是指如何在内存中放置程序代码及数据,如何分配堆栈,并确认占用的内存大小及如何存取它们,当指定内存模式(编译模式)以后,语言编译程序将按事先选择好的内存模式编译组织 阅读全文
posted @ 2018-05-20 02:05 bloomingFlower 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 产品经理(PM)有很多好的idea,而这些idea需要程序员实现。现在有N个PM,在某个时间会想出一个 idea,每个 idea 有提出时间、所需时间和优先等级。对于一个PM来说,最想实现的idea首先考虑优先等级高的,相同的情况下优先所需时间最小的,还相同的情况下选择最早想出的,没有 PM 会在同 阅读全文
posted @ 2018-04-05 13:00 bloomingFlower 阅读(450) 评论(1) 推荐(1) 编辑
摘要: class Solution { //数学模幂运算公式 a * b % k = (a % k) * (b % k) % k;public: int base = 1337; int superPow(int a, vector<int>& b) { if(b.empty()) return 1; i 阅读全文
posted @ 2018-01-21 19:06 bloomingFlower 阅读(127) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: int maxProfit(vector<int>& prices) { int maxCur = 0, maxAll = 0; if(prices.size() <= 1) return 0; auto i = prices.begin(); ++i 阅读全文
posted @ 2017-11-12 16:21 bloomingFlower 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 题目12 bool has_path_core(char *matrix, int rows, int cols, int row, int col, string a, int &pathlen, bool *visited){ if(pathlen == a.length() - 1) retu 阅读全文
posted @ 2017-11-08 15:35 bloomingFlower 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/questionTerminal/728fcf136ca1488b8043c82fd2b181da来源:牛客网现在有n位工程师和6项工作(编号为0至5),现在给出每个人能够胜任的工作序号表(用一个字符串表示,比如:045,表示某位工程师能够胜任 阅读全文
posted @ 2017-11-07 22:59 bloomingFlower 阅读(160) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: void reorderList(ListNode* head) { ListNode *head1 = head, *head2 = NULL; int len = 0, count = 1; while(head) { //遍历链表 head = 阅读全文
posted @ 2017-10-26 21:34 bloomingFlower 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 简单解法 时间复杂度为find的复杂度O(m * n) Space = O(n) class Solution {public: int repeatedStringMatch(string A, string B) { int res = 1; string C(A); while(C.lengt 阅读全文
posted @ 2017-10-23 14:15 bloomingFlower 阅读(170) 评论(0) 推荐(0) 编辑
摘要: //一次复习了三道 循序渐进 class Solution {public: int nthSuperUglyNumber(int n, vector<int>& primes) { vector<int> ivec(n, 0); int primes_size = primes.size(); v 阅读全文
posted @ 2017-10-15 22:21 bloomingFlower 阅读(127) 评论(0) 推荐(0) 编辑