- 博客(15)
- 收藏
- 关注
原创 LeetCode44:模式匹配
https://leetcode.com/problems/wildcard-matching/问题描述44. Wildcard MatchingHardGiven an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*'.'?...
2019-09-30 21:19:58 204
原创 LeetCode42:接雨水
https://leetcode.com/problems/trapping-rain-water/问题描述Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after ...
2019-09-29 08:51:35 85
原创 LeetCode41:缺失的第一个正整数
https://leetcode.com/problems/first-missing-positive/问题描述Given an unsorted integer array, find the smallest missingpositive integer.Example 1:Input: [1,2,0]Output: 3Example 2:Input: [...
2019-09-25 13:57:53 79
原创 Windows DOS 窗口查看历史命令的方法
使用↑↓箭头上下翻看执行过的命令,此方式适宜执行命令较少的情况 使用快捷键: F7快捷键查看所有执行过的命令 F3:调出上一条执行过的命令,调出后直接回车即可执行; F8:搜索命令历史记录,和↑向上箭头类似。 F9:按编号选择命令,来调出执行过的命令: ...
2019-09-24 11:35:24 1809
原创 Windows中如何让环境变量设置后不重启而立即生效
常用的使得环境变量生效的方式是:在“我的电脑”->“属性”->“高级”->“环境变量”中增加或修改环境变量后,需重启系统才能使之生效。 下面介绍一种方法是不需要重启机器:以修改环境变量“PATH”为例,修改完成后,进入DOS命令提示符,输入:set PATH=C: ,关闭DOS窗口。再次打开DOS窗口,输入:echo %PATH% ,可以发现“我的电脑”->“属性”-&g...
2019-09-23 16:33:28 6454 1
原创 Oracle Number
有一篇比较好的文章介绍OracleNumber, 有两个重要的概念,一个是precision,一个是scale。其中precision的类型是uint, 代表有效数字位数,而scale的类型是int,也就是说可以是负数。参考链接:https://www.oracletutorial.com/oracle-basics/oracle-number-data-type/...
2019-09-17 17:28:16 1372
原创 LeetCode36:有效的数独
https://leetcode.com/problems/valid-sudoku/问题描述Determine if a9x9 Sudoku boardis valid.Only the filled cells need to be validatedaccording to the following rules:Each rowmust contain thedig...
2019-09-15 15:35:37 102
原创 LeetCode34:在排序数组中查找第一个和最后一个元素
https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/submissions/问题描述Given an array of integers nums sorted in ascending order, find the starting and ending positi...
2019-09-14 15:35:13 236
原创 LeetCode33:旋转数组查找
https://leetcode.com/problems/search-in-rotated-sorted-array/问题描述Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., [0,1,2,4,5,6,7] might become...
2019-09-11 09:44:54 103
原创 LeetCode29:两整数相除
https://leetcode.com/problems/divide-two-integers/问题描述:MediumGiven two integers dividend and divisor, divide two integers without using multiplication, division and mod operator.Return the quo...
2019-09-09 20:27:32 201
原创 LeetCode28: 实现strStr()
https://leetcode.com/problems/implement-strstr/问题描述Implement strStr().Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Example 1:Input...
2019-09-04 18:20:33 85
原创 LeetCode22:括号生成
https://leetcode.com/problems/generate-parentheses/问题描述Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution...
2019-09-04 15:51:31 53
原创 LeetCode21:合并两个序列表
https://leetcode.com/problems/merge-two-sorted-lists/问题描述Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two list...
2019-09-03 15:28:17 78
原创 LeetCode20:有效的括号
https://leetcode.com/problems/valid-parentheses/问题描述Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.An input string is valid...
2019-09-02 15:58:14 61
原创 LeetCode19:删除链表中的倒数第n个结点
https://leetcode.com/problems/remove-nth-node-from-end-of-list/问题描述Given a linked list, remove the n-th node from the end of list and return its head.Example:Given linked list: 1->2->3-...
2019-09-02 12:09:14 53
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人