上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 72 下一页
摘要: 1 代码测试 给40分钟 寻找数组中的峰值,时间复杂度小于n 162. Find Peak Element(二分查找 ) 1、LSI怎么做的。 2、关键词提取怎么做的。 3、word2vec的原理 4、word2vec 的损失函数 5、logloss 全称 Log Loss(对数损失)或者Cross 阅读全文
posted @ 2018-04-13 14:30 乐乐章 阅读(506) 评论(0) 推荐(0) 编辑
摘要: A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its inde 阅读全文
posted @ 2018-04-13 14:29 乐乐章 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2018-04-11 22:56 乐乐章 阅读(138) 评论(0) 推荐(1) 编辑
摘要: 198. House Robber You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only cons 阅读全文
posted @ 2018-04-09 17:50 乐乐章 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction 阅读全文
posted @ 2018-04-08 10:48 乐乐章 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the fo 阅读全文
posted @ 2018-04-08 10:15 乐乐章 阅读(255) 评论(0) 推荐(0) 编辑
摘要: A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded messag 阅读全文
posted @ 2018-04-06 09:56 乐乐章 阅读(352) 评论(0) 推荐(0) 编辑
摘要: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [-2,1,-3,4,-1,2, 阅读全文
posted @ 2018-04-05 15:34 乐乐章 阅读(165) 评论(0) 推荐(0) 编辑
摘要: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl 阅读全文
posted @ 2018-04-05 11:45 乐乐章 阅读(228) 评论(0) 推荐(0) 编辑
摘要: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh 阅读全文
posted @ 2018-04-05 11:24 乐乐章 阅读(195) 评论(0) 推荐(0) 编辑
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 72 下一页