摘要:
Question A robot is located at the top left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right 阅读全文
摘要:
方法一 方法三 C++ include include include using namespace std; int main(int argc, char argv) { std::ifstream t("file.txt"); std::stringstream buffer; buffer 阅读全文
摘要:
问题所在 我们可以发现这个错误跟protobuf的版本有关,因此我们可以执行script/diagnose_protobuf.py 我们可以看到,pip install protobuf 和 brew install protobuf 的版本不一样导致的 解决办法 1. 更新brew的版本 brew 阅读全文
摘要:
Question Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representat 阅读全文
摘要:
Question Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end inde 阅读全文
摘要:
Question Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the ma 阅读全文
摘要:
Question A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive element 阅读全文
摘要:
Question Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Given nums = [ 2, 0, 3, 5, 2, 阅读全文
摘要:
python中的dict是不能排序的,只有对dict的representation进行排序,例如list或者tuple 排序肯定会用到sorted函数,那么我们就来讲一下sorted函数。 sorted sorted(iterable,key,reverse) iterable:表示可迭代的对象,例 阅读全文
摘要:
两派 1. 新的卷机计算方法 这种是直接提出新的卷机计算方式,从而减少参数,达到压缩模型的效果,例如SqueezedNet,mobileNet 1. SqueezeNet: AlexNet level accuracy with 50x fewer parameters and 修改网络结构,类似于 阅读全文