原创 ubuntu下使用的pdf閱讀軟件—okular

1、安裝okular sudo apt-get install okular 2、強大的註釋功能(可以對pdf添加note,或者高亮顯示文本highlight 按 F6 打開註釋功能。   

原创 C++ 多線程thread和pthread

本週記錄部分

原创 C++ cmake使用方法

mark,本週完成。

原创 leetcode 1283. Find the Smallest Divisor Given a Threshold

Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the a

原创 python property()函數

描述 property() 函數的作用是在新式類中返回屬性值。大概意思就是讓方法變成一個屬性 語法 以下是 property() 方法的語法: class property([fget[, fset[, fdel[, doc]]]]) 參數

原创 python staticmethod()函數

staticmethod()是python內置函數, 該方法不強制要求傳遞參數,如下聲明一個靜態方法: class C(object): @staticmethod def f(arg1, arg2, ...):

原创 python classmethod修飾符

描述 classmethod 修飾符對應的函數不需要實例化,不需要 self 參數,但第一個參數需要是表示自身類的 cls 參數,可以來調用類的屬性,類的方法,實例化對象等。 語法 classmethod 語法: classmethod 參

原创 leetcode 1510. Stone Game IV

Alice and Bob take turns playing a game, with Alice starting first. Initially, there are n stones in a pile.  On each pl

原创 解決ubuntu16.04無法上網問題——無法解析域名

問題背景   最近在忙gitlab服務器及自動化編譯jenkins平臺的搭建,其中也配置了郵箱提醒服務,成功之後讓IT部門給我固定服務器ip,然後便出現了一系列的問題(其他公司內部主機經常訪問不上gitlab服務器,經常斷開。gitlab無

原创 #1572 小Hi與花盆

Time Limit:10000ms Case Time Limit:1000ms Memory Limit:256MB Description 小Hi家的陽臺上擺着一排N個空花盆,編號1~N。從第一天開始,小Hi每天會選擇其中一個還

原创 Whitening and Coloring transformations for multivariate gaussian data

1、介紹     這篇博客主要介紹如何白化(Whiten)符合正態分佈的數據。在許多數據處理技術(如主成分分析、獨立成分分析)之前,必須進行數據白化。     我們將一個d維均值爲$\mu$,協方差矩陣爲$\Sigma$的高斯隨機變量$X$

原创 LaTex中的希臘字母

LaTex中希臘字母用法   LaTex中的希臘字母要當成公式來寫,要在$$裏面寫。   希臘字母表  

原创 leetcode 1315. Sum of Nodes with Even-Valued Grandparent

Given a binary tree, return the sum of values of nodes with even-valued grandparent.  (A grandparent of a node is the pa

原创 leetcode 1314. Matrix Block Sum

Given a m * n matrix mat and an integer K, return a matrix answer where each answer[i][j] is the sum of all elements mat

原创 leetcode 525. Contiguous Array

Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: Input: [