摘要:
你已经学习了如何定义神经网络,计算损失和执行网络权重的更新。 现在你或许在思考。 What about data? 通常当你需要处理图像,文本,音频,视频数据,你能够使用标准的python包将数据加载进numpy数组。之后你能够转换这些数组到torch.*Tensor。 对于图片,类似于Pillow 阅读全文
摘要:
Given an integer n, return the number of trailing zeroes in n!. Example 1: Input: 3Output: 0Explanation: 3! = 6, no trailing zero. Example 2: Input: 5 阅读全文
摘要:
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the 阅读全文
摘要:
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 阅读全文
摘要:
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文