原创 Leetcode——22括號生成(遞歸)

22.給出 n 代表生成括號的對數,請你寫出一個函數,使其能夠生成所有可能的並且有效的括號組合。 例如,給出 n = 3,生成結果爲: 示例: [ "((()))", "(()())", "(())()", "()

原创 Leetcode——46全排列、47全排列2(回溯法)

46.給定一個沒有重複數字的序列,返回其所有可能的全排列。 說明:解集不能包含重複的子集。 示例: 輸入: [1,2,3] 輸出: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [

原创 設計模式——單例模式(創建型)

1.什麼是設計模式? 參考鏈接: https://blog.csdn.net/ljh0302/article/details/81562415 https://designpatterns.readthedocs.io/zh_CN

原创 Leetcode——230二叉搜索樹中第k小的元素

給定一個二叉搜索樹,編寫一個函數 kthSmallest 來查找其中第 k 個最小的元素。 說明: 你可以假設 k 總是有效的,1 ≤ k ≤ 二叉搜索樹元素個數。 示例1: 輸入: root = [3,1,4,null,2],

原创 Java面試總結——容器

1.Java Collections框架和Collection接口 (1)Java Collections框架中包含了 大量集合接口以及這些接口的實現類和操作它們的算法。具體而言,主要提供了List、Queue、Set、Stack

原创 Java面試總結——輸入輸出流

1.java中有幾種類型的流? JDK提供的流繼承了四大類:   InputStream(字節輸入流),OutputStream(字節輸出流),Reader(字符輸入流),Writer(字符輸出流)。   (1)根據處理數據的類型

原创 JAVA面試總結

Java web面試寶典(一) 1.頁面請求的流程: 一個web應用程序一般都是由客戶端程序與服務器端程序兩部分組成。其中客戶端主要是指用戶和瀏覽器。用戶通過瀏覽器查找所需資源,而這些資源位於服務器上。 用戶輸入網址。 把用戶請

原创 Leetcode——回溯法 palindrome-partitioning

palindrome-partitioning 題目描述: Given a string s, partition s such that every substring of the partition is a palindr

原创 Leetcode——動態規劃palindrome-partitioning-ii

palindrome-partitioning-ii 題目描述: Given a string s, partition s such that every substring of the partition is a pali

原创 Leetcode——動態規劃candy

Candy 題目描述: There are N children standing in a line. Each child is assigned a rating value. You are giving candies

原创 Leetcode——動態規劃word-break-ii

word-break-ii 題目描述: Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where

原创 Leetcode——貪心算法gas-station

gas-station 題目描述: There are N gas stations along a circular route, where the amount of gas at station i isgas[i]. Y

原创 Leetcode——動態規劃word-break

word-break 題目描述: Given a string s and a dictionary of words dict, determine if s can be segmented into a space-sepa

原创 GAN學習歷程之Semantic Image Synthesis with Spatially-Adaptive Normalizatio論文筆記

Semantic Image Synthesis with Spatially-Adaptive Normalization: 論文地址:https://arxiv.org/pdf/1903.07291.pdf 代碼地址:https:

原创 GAN學習歷程之INSTAGAN論文筆記

INSTAGAN: Instance-aware image-to-image translation 論文地址:https://arxiv.org/pdf/1812.10889.pdf 代碼地址:https://github.com