原创 字節跳動面試--三面算法題覆盤

題目描述: 查找字符串中給定的連續不重複序列 給定如下不重複序列和一個字符串,請返回不重複序列連續出現在字符串中第一個字母的位置。 例如 給定不重複序列[a,b,c,d] 字符串adcebadcb 則返回4 解題思路: 個人以爲,此題的解

原创 並行化實現基於BP神經網絡的手寫體數字識別

並行化實現基於BP神經網絡的手寫體數字識別 手寫體數字識別可以堪稱是神經網絡學習的“Hello World” ,我今天要說的是如何實現BP神經網絡算法的並行化,我們仍然是以手寫體數字識別爲例,會給出實現原理與不同參數的實例分析。

原创 LeetCode題目之83-Remove Duplicates from Sorted List

題目描述如下: Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Input: 1-

原创 LeetCode題目之100-Same Tree

題目描述如下: Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered

原创 LeetCode題目之67

題目描述如下: Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and con

原创 備戰春招/考研複試--劍指offer--數組中出現次數超過一半的數字

題目描述如下:        數組中有一個數字出現的次數超過數組長度的一半,請找出這個數字。例如輸入一個長度爲9的數組{1,2,3,2,2,2,5,4,2}。由於數字2在數組中出現了5次,超過數組長度的一半,因此輸出2。如果不存在則輸出0

原创 LeetCode題目之66

題目描述如下: Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are

原创 神經網絡與深度學習入門

參考如下教程,很詳細,適合初學者。 教程用最經典的手寫體數字識別作爲例子來做引導,手寫體數字的識別堪稱是機器學習的Hello World,上手也比較容易。 該教程分爲三個部分,每個部分大概都有上萬字,圖文結合,不會顯得枯燥,值得細細斟酌。

原创 字節跳動面試--二面算法題覆盤

題目描述: 股票最大收益問題 給定一段時間的某支股票價格集合,允許買賣各一次,求最大收益是多少? 例如 給定收入序列:[4,5,9,2,5,4,8] 爲了滿足要求,我們在第四天買入,第七天賣出,收益最大爲6   結題思路: 暴力求解法的

原创 LeetCode題目之101-Symmetric Tree

題目描述如下: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, thi