原创 經典博客轉載

快排java實現: https://blog.csdn.net/shujuelin/article/details/82423852 hashmap原理: https://blog.csdn.net/mbshqqb/article/det

原创 flask_restful reqparse接受動態的json值

parser = reqparse.RequestParser() parser.add_argument('new_address', type=str, required=True) parser.add_argument('mast

原创 【TensorFlow】訓練首個神經網絡

按照TensorFlow官網進行首個神經網絡的訓練代碼 import tensorflow as tf from tensorflow import keras # Helper libraries import numpy as n

原创 TensorFlow從本地加載MNIST以及FashionMNIST數據

https://www.cnblogs.com/ypzhai/p/9997856.html

原创 java單向鏈表問題

定義一個單向鏈表 public class Node{ int index; Node next; public Node(int index, Node next) { this.index

原创 Hive 幾個概念的理解

Hive中主要抱哈四類數據模型:表(Table),外部表(External Table),分區(Partition)和桶(Bucket) 創建表的操作:         表創建和數據加載兩個步驟(可在一個語句中完成),在數據加載過程中,實

原创 大數據學習線路圖-java轉大數據

大數據學習線路 https://blog.csdn.net/gitchat/article/details/78341484 hdfs博客: https://blog.csdn.net/kezhong_wxl/article/detail

原创 java高級面試題總結

目錄1、java基礎1.1、hashmap原理?擴容1.2、arraylist原理?擴容1.3、jdk1.8新特性?1.4、completablefuture1.5、Integer用==進行值比較,什麼時候相等,什麼時候不等?1.

原创 LeetCode-36 有效的數獨

LeetCode題目鏈接:https://leetcode-cn.com/problems/valid-sudoku/ 此題目在面試便利蜂的時候筆試時遇到了,當時沒有完全做出來,現在整理如下。 題目: 判斷一個 9x9 的數獨是否有效。只

原创 java多線程synchronized和reentrantlock區別

synchronized是非公平鎖,reentrantlock可以指定爲公平鎖。 synchronized修飾非靜態的方法時,所對象爲當前類的class單例對象。 ReentrantLock可以替代synchronized,使用synch

原创 多線程理解(java)

start()方法的執行步驟 通過jvm告訴操作系統創建thread。 操作系統開闢內存並調用本地函數創建Thread線程對象。 操作系統對Thread對象進行調度,以確定執行時機。 Thread在操作系統中被成功執行。 因爲start(

原创 Spring源碼閱讀

閱讀Spring源碼,我們可通過在github上下載源碼,再通過編譯的方式進行,也可以通過Idea構建maven工程,閱讀maven反編譯後的源碼,源碼編譯的方式會有編譯錯誤,操作複雜,本文通過maven反編譯的方式閱讀spring源碼。

原创 LeetCode-198 打家劫舍

LeetCode題目鏈接:https://leetcode-cn.com/problems/house-robber/ 題目: 你是一個專業的小偷,計劃偷竊沿街的房屋。每間房內都藏有一定的現金,影響你偷竊的唯一制約因素就是相鄰的房屋裝有相

原创 ThreadLocal源碼分析

set過程 1、ThreadLocal.set(T value)方法 /** * Sets the current thread's copy of this thread-local variable * to

原创 java數組模擬實現隊列

數組模擬隊列的簡單實現方式代碼如下: public class ArrayQueue { private int maxSize; private int front; private int tail;