原创 數據庫系統知識點整理

數據庫系統概論 1.1 數據庫系統概述 數據:描述事物的符號記錄稱爲數據。 數據庫:存放數據的倉庫。數據庫是長期儲存在計算機內,有組織的,可共享的大量數據的集合。 數據庫管理系統:是位於用戶與操作系統之間的的一層數據管理軟件。主

原创 五大常用算法:回溯法

1、概念 回溯算法實際上是一個類似枚舉的搜索嘗試過程, 主要是在搜索嘗試過程中尋找問題的解,當發現已不滿足求解條件時,就“回溯”返回,嘗試別的路徑。 回溯法是一種優選搜索法,按選優條件向前搜索,已到達目標。但當搜索到某一步時,發

原创 深入理解計算機系統讀書筆記

第 1 章 計算機系統漫遊 信息就是位 + 上下文 源程序實際上就是一個由值 0 和 1 組成的位(又稱位比特)序列,8 個字節被組織成一組,稱爲字節。每個字節表示程序中的某些文本字符。 系統中所有的信息——包括磁盤文件、內存中

原创 CCF 201709-5 除法 Java

問題描述   小蔥喜歡除法,所以他給了你N個數a1, a2, ⋯, aN,並且希望你執行M次操作,每次操作可能有以下兩種:   給你三個數l, r, v,你需要將al, al+1, ⋯, ar之間所有v的倍數除以v。   

原创 LeetCode 434. Number of Segments in a String

434. Number of Segments in a String Description Count the number of segments in a string, where a segment is defined to

原创 LeetCode 9. Palindrome Number

LeetCode 9. Palindrome Number Description Determine whether an integer is a palindrome. Do this without extra space.

原创 LeetCode 56. Merge Intervals

56. Merge Intervals Description Given a collection of intervals, merge all overlapping intervals. For example, Given [

原创 LeetCode 3. Longest Substring Without Repeating Characters

leetCode 3. Longest Substring Without Repeating Characters Description Given a string, find the length of the longest s

原创 LeetCode 209. Minimum Size Subarray Sum

LeetCode 209. Minimum Size Subarray Sum Description Given an array of n positive integers and a positive integer s, fin

原创 LeetCode 215. Kth Largest Element in an Array

LeetCode 215. Kth Largest Element in an Array Description Find the kth largest element in an unsorted array. Note that

原创 LeetCode 438. Find All Anagrams in a String

LeetCode 438. Find All Anagrams in a String Description Given a string s and a non-empty string p, find all the start i

原创 LeetCode 76. Minimum Window Substring

76. Minimum Window Substring Description Given a string S and a string T, find the minimum window in S which will conta

原创 LeetCode 387. First Unique Character in a String

387. First Unique Character in a String Description Given a string, find the first non-repeating character in it and re

原创 LeetCode 344. Reverse String

LeetCode 344. Reverse String Description Write a function that takes a string as input and returns the string reversed.

原创 LeetCode 345. Reverse Vowels of a String

LeetCode 345. Reverse Vowels of a String Description Write a function that takes a string as input and reverse only the