摘要: tf.nn.conv2d 这个函数的功能是:给定4维的input和filter,计算出一个2维的卷积结果。函数的定义为: 前几个参数分别是input, filter, strides, padding, use_cudnn_on_gpu, …下面来一一解释 input:待卷积的数据。格式要求为一个张 阅读全文
posted @ 2018-06-10 05:51 liu_ty10 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1. How tensorflow works In order to run Tensorflow, we need two steps: First, construct a Graph Second, compute along the Graph in a Session. For the 阅读全文
posted @ 2018-06-10 05:15 liu_ty10 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Problem: Reverse a singly linked list. recursion: 阅读全文
posted @ 2016-06-06 10:05 liu_ty10 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Problem: Given two arrays, write a function to compute their intersection. Example: Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2]. Note: E 阅读全文
posted @ 2016-06-03 00:44 liu_ty10 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Problem: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice i 阅读全文
posted @ 2016-06-01 19:18 liu_ty10 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Problem: 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 阅读全文
posted @ 2016-06-01 18:51 liu_ty10 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Problem: Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For ex 阅读全文
posted @ 2016-05-30 21:03 liu_ty10 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Problem: Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = " 阅读全文
posted @ 2016-05-29 20:45 liu_ty10 阅读(95) 评论(0) 推荐(0) 编辑
摘要: Problem: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally id 阅读全文
posted @ 2016-05-29 20:21 liu_ty10 阅读(84) 评论(0) 推荐(0) 编辑
摘要: Problem: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 阅读全文
posted @ 2016-05-28 00:10 liu_ty10 阅读(106) 评论(0) 推荐(0) 编辑