原创 劍指offer(python版)——2、替換空格
牛客網網址:(https://www.nowcoder.com/ta/coding-interviews) leetcode網址:(https://leetcode-cn.com/problemset/lcof/) 思路 1、暴力
原创 劍指offer(python版)——1、二維數組中的查找
牛客網網址:(https://www.nowcoder.com/ta/coding-interviews) leetcode網址:(https://leetcode-cn.com/problemset/lcof/) 代碼 clas
原创 MeshLab怎麼換背景顏色?
tools->options-> 就可以調meshlab的背景顏色了 簡單但是不知道,爲什麼網上關於meshlab的使用東西這麼少呢,有大佬可以給我留言
原创 ValueError: Variable ### does not exist, or was not created with tf.get_variable().
問題: ValueError: Variable global_graph/conv__1/bn/tower_1/global_graph/conv__1/bn/moments/Squeeze/ExponentialMovingA
原创 latent_3d_points代碼復現:train_single_class_ae.ipynb
1、首先:怎麼看代碼(ipynb格式) 需要使用:jupyter notebook 終端安裝: pip insall jupyter 運行: jupyter notebook 注意:聽說anaconda就可以直接用,我沒有用過
原创 2020.3.26:三維形體的表面積
理解題目: 觀看視頻:B站 代碼出處 觀看視頻:B站 代碼python class Solution(object): def surfaceArea(self, grid): """ :t
原创 2020.3按摩師
思路 遞歸:超時啦 代碼 class Solution(object): def massage(self, nums): """ :type nums: List[int]
原创 leetcode——2020-03月19日:最長迴文串
思路(用到字典) 統計每個字符串的次數,偶次數全部加上,奇數的加上最大的偶數,然後在根據是否需要加一。 代碼 class Solution(object): def longestPalindrome(self, s):
原创 劍指offer(python版)——6、旋轉數組中的最小值
牛客網網址 leetcode網址 思路 二分法最優 代碼 class Solution: def minNumberInRotateArray(self, rotateArray): # write cod
原创 排序算法介紹——歸併排序(代碼不太理解)
歸併排序 ####### 沒太懂,爲什麼每一次遞歸之後返回的left和right的值爲什麼會一直髮生變化呢 # 歸併排序merge #思路:一生二,二生四,四生八,採用遞歸的方式先把整個數組拆分爲一個個元素 def merge_s
原创 latent_3d_points代碼付現:Learning Representations and Generative Models For 3D Point Clouds
第一步:geihub下載代碼 latent_3d_points:https://github.com/optas/latent_3d_points 第二:安裝環境 Ubuntu 16.04 Python 2.7 cudnn 7 (
原创 排序算法介紹——冒泡排序+插入排序+選擇排序
冒泡排序 相鄰元素兩兩進行比較,每次比較結束都得到數組中最大的元素 #冒泡排序 def bubblesort(bubbleList): #外層循環,整個數組的長度 flag = True n = len(
原创 python版比較器——手把手教你學會(含鏈表)
我想說的都在下面的代碼中,學至左神。 # 比較器,重載比較運算符 # 對於任意的比較器,首先需要指定兩個數o1,o2 #對返回值有統一的規範 #返回負數時,認爲o1應該排在o2的前面 #返回正數時,認爲o2應該排在o1的前面 #返
原创 leetcode——2020-03月18日:矩形重疊
出處 1、題目描述 矩形以列表 [x1, y1, x2, y2] 的形式表示,其中 (x1, y1) 爲左下角的座標,(x2, y2) 是右上角的座標。 如果相交的面積爲正,則稱兩矩形重疊。需要明確的是,只在角或邊接觸的兩個矩形不
原创 leetcode——2020-03月:字符串的壓縮
思路 雙指針,一個輔助指針用來計數 代碼 class Solution(object): def compressString(self, S): """ :type S: str