原创 spring-data-jpa 是如何渲染查詢的

spring-data-jpa 是如何渲染查詢的 1、 spring-data-jpa是什麼, 它和jpa有什麼關係? jpa: Java Persistence API, 是一種規範, 定義了一系列的接口, 用於將對象映射到表上

原创 Linux入門筆記3. shell語法入門

Linux入門筆記3. shell語法入門 1、通配符 通配符有點像正則表達式中的通配符,感覺大同小異。常用的通配符有:*、?、[]等 (1)*表示匹配任意一個或多個字符 列出所有以.db爲結尾的文件 ls *.db (2)?

原创 bootstrap 輪播效果

先來看一下效果: 廢話不多說,上代碼 :homepage.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or

原创 Linux入門筆記4. 菜鳥的常用命令

Linux入門筆記4. 菜鳥的常用命令 1、系統維護命令 (1)ls:ls命令有點像windows下的dir命令,用於顯示目錄下的內容,後面可以加不同的選項,比如: 選項 作用 -a –all 顯示所有的文件 -l

原创 Linux入門筆記2. 文件系統概覽

Linux入門筆記2. 文件系統概覽 linux文件系統採用一種“樹”型結構,如下圖所示: (圖片來自百度百科) 整個文件系統有一個根節點,也就是’/’ 。root下包含多個目錄,常見的有var、home、tmp、etc、bin

原创 Linux入門筆記1. 查看硬件資源的命令

Linux入門筆記1. 查看硬件資源的命令 1、查看cpu信息: more /proc/cpuinfo vendor_id:處理器類型,GenuineIntel表示英特爾處理器 slibings和cpu cores相等,表示系

原创 Linux入門筆記5. 多用戶多任務

Linux入門筆記5. 多用戶多任務 1、用戶與組 Linux是一個多用戶多任務的操作系統,可以允許多個用戶同在系統上執行不同的任務。 Linux的用戶一般分爲超級用戶、普通用戶,還有虛擬用戶。 用戶與組: 把具有相同權限的用戶統

原创 897. Increasing Order Search Tree

897. Increasing Order Search Tree Given a tree, rearrange the tree in in-order so that the leftmost node in the tree

原创 942. DI String Match

942. DI String Match 下班到家後,刷了刷leetcode,發現了一道很有意思的小題,題目如下: Given a string S that only contains “I” (increase) or “D”

原创 LeetCode刷題筆記目錄

LeetCode 刷題筆記目錄 學習工作之餘,抽時間寫了幾道算法小題,不僅有助於轉移思路,緩解工作壓力,而且還能夠擴展思路,畢竟腦袋是越用越靈活的 【笑】。 由於水平有限,只刷了部分easy和medium的題。現在將刷題目錄記錄於此,

原创 692. Top K Frequent Words:HashMap排序

因爲平時工作中較少能接觸到HashMap的排序,因此週末藉由一道leetcode上的小題,再寫一寫HashMap的排序代碼,特此記錄。 原題如下: Top K Frequent Words Given a non-empty li

原创 Leetcode 215. Kth Largest Element in an Array

Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not t

原创 Leetcode 946. Validate Stack Sequences

Given two sequences pushed and popped with distinct values, return true if and only if this could have been the resu

原创 338. Counting Bits

Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in

原创 Leetcode 703.Kth Largest Element in a Stream

Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted ord