摘要:
Rotate ArrayRotate an array ofnelements to the right byksteps.For example, withn= 7 andk= 3, the array[1,2,3,4,5,6,7]is rotated to[5,6,7,1,2,3,4].Note... 阅读全文
摘要:
Reverse BitsReverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as000000101001010000011110100111... 阅读全文
摘要:
Number of 1 BitsWrite a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For exampl... 阅读全文
摘要:
#include // std::cout#include // std::vectorusing namespace std;int main () { vector > theta; theta.resize(1, vector(2, 1)); thet... 阅读全文
摘要:
Dungeon GameThe demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms l... 阅读全文
摘要:
Largest NumberGiven a list of non negative integers, arrange them such that they form the largest number.For example, given[3, 30, 34, 5, 9], the larg... 阅读全文
摘要:
Exercise:Convolution and Pooling习题链接:Exercise:Convolution and PoolingcnnExercise.m%% CS294A/CS294W Convolutional Neural Networks Exercise% Instructio... 阅读全文
摘要:
Exercise:Learning color features with Sparse Autoencoders习题链接:Exercise:Learning color features with Sparse AutoencoderssparseAutoencoderLinearCost.mfu... 阅读全文
摘要:
Exercise: Implement deep networks for digit classification习题链接:Exercise: Implement deep networks for digit classificationstackedAEPredict.mfunction [p... 阅读全文
摘要:
Exercise:Self-Taught Learning习题链接:Exercise:Self-Taught LearningfeedForwardAutoencoder.mfunction [activation] = feedForwardAutoencoder(theta, hiddenSiz... 阅读全文