原创 LeetCode 刷題記錄 81. Search in Rotated Sorted Array II
題目: Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,0,1,2,
原创 LeetCode 刷題記錄59. Spiral Matrix II
題目: Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. Example
原创 LeetCode 刷題記錄 89. Gray Code
題目: The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negati
原创 LeetCode 刷題記錄52. N-Queens II
題目: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each
原创 LeetCode 刷題記錄 45. Jump Game II
題目: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each ele
原创 LeetCode 刷題記錄58. Length of Last Word
題目: Given a string s consists of upper/lower-case alphabets and empty space characters ’ ', return the length of la
原创 LeetCode 刷題記錄57. Insert Interval
題目: Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You ma
原创 LeetCode 刷題記錄 46.Permutations
題目: Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1
原创 LeetCode 刷題記錄 55. Jump Game
題目: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each ele
原创 LeetCode 刷題記錄 49. Group Anagrams
題目: Given an array of strings, group anagrams together. Example: Input: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”],
原创 LeetCode 刷題記錄 48. Rotate Image
題目: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You h
原创 深入理解計算機系統 第12章 併發編程
12.1 基於進程的併發編程 12.1.1 基於進程的併發服務器 12.1.2 進程的優劣 12.2 基於I/O多路複用的併發編程 12.2.1 基於I/O 多路複用的併發事件驅動服務器
原创 LeetCode 刷題記錄 47.PermutationsII
題目: Given a collection of numbers that might contain duplicates, return all possible unique permutations. Example:
原创 深入理解計算機系統 第11章網絡編程
11.1 客戶端-服務器編程模型 11.2 網絡 11.3 全球IP互聯網 11.3.1 IP地址 11.3.2 因特網域名 11.3.3 因特網連接 11.4 套接字接
原创 LeetCode 刷題記錄 83. Remove Duplicates from Sorted List
題目: Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Input: 1-