摘要:
import os import tensorflow as tf from functools import lru_cache from tensorflow.python.framework import importer from tensorflow.python.framework.co 阅读全文
摘要:
31.从1到n的整数中1出现的个数比如,1-13中,1出现6次,分别是1,10,11,12,13。class Solution: def NumberOf1Between1AndN_Solution(self, n): count = 0 for i in range(1,n+1): j = i w 阅读全文
摘要:
数组:【1,2,2,2,3,4,5,6】 二分查找市返回2的位置, 左侧边界和右侧边界的写法: int binary_search(int[] nums, int target) { int left = 0, right = nums.length - 1; while(left <= right 阅读全文