自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

一面之媛

自命清高的女程序媛

原创 LeeCode127:单词接龙

https://leetcode.com/problems/word-ladder/ 问题描述 Given two words (beginWord and endWord), and a dictionary's word list, find the length of shor...

2020-05-25 18:32:33 31 0

原创 LeetCode125:有效的回文串

https://leetcode.com/problems/valid-palindrome/ 问题描述 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ...

2020-05-19 18:26:43 20 0

原创 LeetCode124: 二叉树中的最大路径和

https://leetcode.com/problems/binary-tree-maximum-path-sum/ 问题描述 Given a non-empty binary tree, find the maximum path sum. For this problem, a pat...

2020-05-07 12:05:59 19 0

原创 GDB debug with parameters

gdb --args executablename arg1 arg2 arg3

2020-03-20 11:11:36 27 0

原创 Vim查找全匹配字符串

/\<string_to_exact_match\>

2020-02-27 13:52:21 274 0

原创 LeetCode122:买卖股票的最佳时机 II

https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/ 问题描述 Say you have an array for which the ith element is the price of a given stoc...

2020-02-22 17:16:25 35 0

原创 Docker cp 命令拷贝文件和文件夹

SRC_PATH does not end with /. the source directory is copied into this directory SRC_PATH does end with /. the content of the source directory i...

2020-02-12 20:25:30 1050 0

转载 MAC安装Chrome之后,无法正常运行(闪退);MAC无法打开Chrome

https://blog.csdn.net/u010113247/article/details/79290633

2020-02-12 20:19:47 170 0

原创 LeetCode121:买卖股票的最佳时机

https://leetcode.com/problems/best-time-to-buy-and-sell-stock 问题描述 Say you have an array for which the ith element is the price of a given stock on...

2020-02-09 19:44:13 31 0

原创 LeetCode118:杨辉三角

https://leetcode.com/problems/pascals-triangle/ 问题描述 Given a non-negative integernumRows, generate the first numRows of Pascal's triangle. I...

2020-02-09 17:32:34 19 0

原创 LeetCode116:填充每个节点的下一个右侧节点指针

https://leetcode.com/problems/populating-next-right-pointers-in-each-node/ 问题描述 You are given a perfect binary treewhereall leaves are on the same ...

2020-02-06 12:35:09 44 0

原创 LeetCode108:把有序数组转换成二叉搜索树

https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/ 问题描述 Given an array where elements are sorted in ascending order, convert...

2020-02-06 10:59:14 19 0

原创 LeetCode105:由先序和中序构建二叉树

https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/ 问题描述 Given preorder and inorder traversal of a tree, const...

2020-02-05 18:38:52 24 0

原创 LeetCode104:二叉树的深度

https://leetcode.com/problems/maximum-depth-of-binary-tree/ 问题描述 Given a binary tree, find its maximum depth. The maximum depth is the number of n...

2020-02-05 11:03:53 16 0

原创 LeetCode103:二叉树的锯齿形遍历

https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/ 问题描述 Given a binary tree, return the zigzag level order traversal of its no...

2020-02-02 17:17:11 25 0

原创 LeetCode101:对称二叉树

https://leetcode.com/problems/symmetric-tree/ 问题描述 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). ...

2020-02-02 15:59:06 40 0

原创 LeetCode98:验证二叉搜索树

https://leetcode.com/problems/validate-binary-search-tree/ 问题描述 Given a binary tree, determine if it is a valid binary search tree (BST). Assume a...

2020-02-01 16:20:07 15 0

原创 LeetCode94:二叉树的中序遍历

https://leetcode.com/problems/binary-tree-inorder-traversal/submissions/ 问题描述 Given a binary tree, return the inorder traversal of its nodes' ...

2020-02-01 15:22:19 18 0

原创 LeetCode91:解码方式计数

https://leetcode.com/problems/decode-ways/ 问题描述 A message containing letters from A-Z is being encoded to numbers using the following mapping: &#...

2020-01-31 17:09:45 40 0

原创 LeetCode88:合并两个有序数组

https://leetcode.com/problems/merge-sorted-array/ 问题描述 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array....

2020-01-30 18:12:23 27 0

转载 Java XML File read/write

https://coderanch.com/t/531756/languages/DOM-put-inserting-indents https://www.journaldev.com/901/modify-xml-file-in-java-dom-parser

2020-01-15 16:16:27 22 0

原创 用Sed命令查找匹配的内容,并在查找到的行之前/之后插入新内容

#匹配行前加 sed -i '/searchtext/iNew Line' file.txt #匹配行前后 sed -i '/searchtext/aNew Line' file.txt

2020-01-08 08:58:40 341 0

原创 LeetCode84:求柱状图中最大的矩形

https://leetcode.com/problems/largest-rectangle-in-histogram/ 问题描述 Given n non-negative integers representing the histogram's bar height where...

2020-01-06 16:27:15 19 0

原创 LeetCode79:单词匹配

https://leetcode.com/problems/word-search/ 问题描述 Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from...

2020-01-03 15:50:35 16 0

转载 Vim Search and Replace

https://vim.fandom.com/wiki/Search_and_replace Search range: :s/foo/bar/g Change each 'foo' to 'bar' in the current line. ...

2019-12-30 11:40:43 32 0

原创 How to generate a New SSH Key

https://www.ssh.com/ssh/keygen

2019-12-23 15:17:51 25 0

转载 GDB - Debugging stripped binaries

https://felix.abecassis.me/2012/08/gdb-debugging-stripped-binaries/

2019-12-19 16:31:54 16 0

原创 Epoch Unix Timestamp 计算方法

https://www.unixtimestamp.com/ https://www.epochconverter.com/ https://currentmillis.com Epoch, also known as Unix timestamps, is the number of se...

2019-12-19 11:04:10 90 0

原创 LeetCode78:子集

https://leetcode.com/problems/subsets/ 问题描述 Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solutio...

2019-12-11 13:53:46 14 0

原创 LeetCode76:最小覆盖子串

https://leetcode.com/problems/minimum-window-substring/ 问题描述 Given a string S and a string T, find the minimum window in S which will contain all t...

2019-12-10 10:19:00 16 0

原创 LeetCode73:矩阵置0

https://leetcode.com/problems/set-matrix-zeroes/ 问题描述 Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place....

2019-12-10 08:46:23 13 0

原创 LeetCode70:爬楼梯

https://leetcode.com/problems/climbing-stairs/ 问题描述 You are climbing a stair case. It takes n steps to reach to the top. Each time you can either ...

2019-11-27 09:07:38 11 0

原创 保存 gdb配置信息到 ~/.gdbinit 文件

如果有一些对gdb的默认配置,可以考虑保存到~/.gdbinit文件中 vim ~/.gdbinit

2019-11-25 16:11:00 225 0

原创 如何让GDB在debug的时候打印长字符串?

set print elements 0

2019-11-22 14:55:48 22 0

原创 Shell命令把命令执行的输出绑到变量值上

有两种方式 var=`cmd` var=$(cmd)

2019-11-21 11:46:21 23 0

原创 Shell 命令查看变量值是否为空

Using below code to check whether the var value is empty or not: if [ -z "$var" ] then echo "\$var is empty" else e...

2019-11-21 11:43:23 25 0

原创 LeetCode69:开根号

https://leetcode.com/problems/sqrtx/ 问题描述 Implement int sqrt(int x). Compute and return the square root of x, wherexis guaranteed to be a non-nega...

2019-11-18 18:19:51 65 0

原创 LeetCode66:加一

https://leetcode.com/problems/plus-one/ 问题描述 Given a non-empty array of digitsrepresenting a non-negative integer, plus one to the integer. The di...

2019-11-18 17:43:28 16 0

原创 LeetCode58:不同路径

https://leetcode.com/problems/unique-paths/ 问题描述 A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram...

2019-11-15 10:48:53 17 0

转载 SQL中的Join机制

在关系型数据库中,JOIN本质上是基于涉及的两个或者多个表进行结合重构的过程点。其创造的结果可以被保存为一个表(table)或者是作为一个表来使用。这个结合的过程的基础,或者说联系点,是存在于两个表之间的共通的列。一般来说,ANSI标准的SQL定义了如下这些JOIN操作类型: INNER LE...

2019-11-14 08:40:33 21 0

提示
确定要删除当前文章?
取消 删除