# ubuntu常见操作备注

1.打包文件夹 zip -r directionfilename.zip sourcefilename 2.

# 81. Search in Rotated Sorted Array II

problem: 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 4 ...

# 82. Remove Duplicates from Sorted List II

problem: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For ...

# 80. Remove Duplicates from Sorted Array II

problem： Follow up for "Remove Duplicates": What if duplicates are allowed at most twice? For example, Given sorted array nums = ...

# 79. Word Search

problem： Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent ...

# 78. Subsets

problem： Given a set of distinct integers, nums, return all possible subsets. Note: The solution set must not contain duplicate subsets. F...

# 77. Combinations

problem： Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example, If n = 4 and k = 2, a soluti...

# 76. Minimum Window Substring

problem： Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For exa...

# 75. Sort Colors

problem: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in th...

# 74. Search a 2D Matrixp

problem: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in...

# 73. Set Matrix Zeroes

problem： Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Follow up: Did you use extra space?...

# 72. Edit Distance

problem： Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step...

# 71. Simplify Path

problem: Given an absolute path for a file (Unix-style), simplify it. For example, path = "/home/", => "/home" path ...

个人资料
等级：
访问量： 2万+
积分： 949
排名： 5万+
文章存档
最新评论