摘要: Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. E 阅读全文
posted @ 2018-03-05 14:17 lhppom 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 以下内容摘自Google开发者网站课程——机器学习速成课程 TensorFlow 的名称源自张量,张量是任意维度的数组。借助 TensorFlow,您可以操控具有大量维度的张量。即便如此,在大多数情况下,您会使用以下一个或多个低维张量: 标量是零维数组(零阶张量)。例如,\'Howdy\' 或 5 阅读全文
posted @ 2018-03-01 17:13 lhppom 阅读(1856) 评论(0) 推荐(0) 编辑
摘要: A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because 128 % 1 == 0, 128 阅读全文
posted @ 2018-02-28 22:02 lhppom 阅读(120) 评论(0) 推荐(0) 编辑
摘要: You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in Sis a type of stone 阅读全文
posted @ 2018-02-26 20:03 lhppom 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of 阅读全文
posted @ 2017-08-17 16:30 lhppom 阅读(214) 评论(0) 推荐(0) 编辑
摘要: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul 阅读全文
posted @ 2017-08-17 15:38 lhppom 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2017-06-27 21:05 lhppom 阅读(161) 评论(0) 推荐(0) 编辑