原创 Filter和Listener

## 今日內容     1. Filter:過濾器     2. Listener:監聽器 # Filter:過濾器     1. 概念:         * 生活中的過濾器:淨水器,空氣淨化器,土匪、         * web中的過

原创 算法作業_30(2017.6.13第十七週)

198. House Robber You are a professional robber planning to rob houses along a street. Each house has a certain amount

原创 Response

# 今日內容          1. HTTP協議:響應消息     2. Response對象     3. ServletContext對象 ## HTTP協議:     1. 請求消息:客戶端發送給服務器端的數據         

原创 京東筆試題目

進制均值:儘管是一個CS專業的學生,小B的數學基礎很好並對數值計算有着特別的興趣,喜歡用計算機程序來解決數學問題,現在,她正在玩一個數值變換的遊戲。她發現計算機中經常用不同的進製表示一個數,如十進制數123表達爲16進制時只包含兩位數7、

原创 Leetcode 8. String to Integer (atoi)

8. String to Integer (atoi) Implement atoi to convert a string to an integer. Hint: Carefully consider all possible in

原创 86. Partition List

Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal

原创 基於深度學習的商品檢索技術

摘要 商品檢索是一門綜合了物體檢測、圖像分類以及特徵學習的技術。近期,很多研究者成功地將深度學習方法應用到這個領域。本文對這些方法進行了總結,然後概括地提出了商品特徵學習框架以及垂類數據挖掘方式,最後介紹了商品檢索技術在服裝搭配中的應用。

原创 Kmeans、Kmeans++和KNN算法比較

K-Means介紹        K-means算法是聚類分析中使用最廣泛的算法之一。它把n個對象根據他們的屬性分爲k個聚類以便使得所獲得的聚類滿足:同一聚類中的對象相似度較高;而不同聚類中的對象相似度較小。其聚類過程可以用下圖表示:

原创 18. 4Sum

http://www.cnblogs.com/yrbbest/p/4434188.html 同3Sum。 Time Complexity - O(n3), Space Complexity - O(1) public class Sol

原创 算法作業_42(2017.6.27第十九周)

207. Course Schedule There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have

原创 NP完全問題

8.8 In the EXACT 4 SAT problem, the input is a set of clauses, each of which is a disjunction of exactly four literals,

原创 225. Implement Stack using Queues

225. Implement Stack using Queues Implement the following operations of a stack using queues. push(x) -- Push element

原创 算法作業_33(2017.6.16第十七週)(算法機考模擬題1)

1000. 函數求值 Description 定義超級和函數F如下: F(0, n) = n,對於所有的正整數n.. F(k, n) = F(k – 1, 1) + F(k – 1, 2) + … + F(k – 1, n),對於所有

原创 算法作業_44(2017.6.27第十九周)(算法機考模擬題4)

1004. 無環圖 Description   在圖論中,如果一個有向圖從任意頂點出發無法經過若干條邊回到該點,則這個圖是一個有向無環圖(Directed Acyclic Graph,DAG). 對於一個n個節點的有向圖(節點編號從0

原创 算法作業_43(2017.6.28第十九周)

[LeetCode] Number of Connected Components in an Undirected Graph 無向圖中的連通區域的個數 Given n nodes labeled from 0 to n - 1 an