自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 资源 (1)
  • 收藏
  • 关注

原创 Tensorflow timeline 详解

tensorflow计算图研究纪要:   网上关于Tensorflow timeline 的资料很少,最近在做一些TF调优的事情,将这个图的分析总结如下,不对的地方欢迎指正: 1:代表的是 MEMCPYHtoD operation操作  H代表Host,我理解为cpu或者本机内存,D代表Device,这里表示GPU2:GPU:0/stream  代表的是 cuda执...

2018-10-31 18:25:56 5503 2

原创 NCNN ncnn autotest 编译

最好是在有root权限的机器上安装注意将platform.h拷贝到相关目录下将build/install/lib下的libncnn.a 拷贝至autotest文件夹下修改test_开头的文件的语法格式,存在命名问题的在src/layer下添加相应变量autotest目录下添加  LINK_DIRECTORIES(/Users/tmp/Documents/ncnn/autotest)...

2018-07-07 15:23:31 447

转载 Python 轻量级Web框架

迫不及待要开始了吗?本页提供了一个很好的 Flask 介绍,并假定你已经安装好了 Flask。如果没有,请跳转到 安装 章节。一个最小的应用一个最小的 Flask 应用看起来会是这样:from flask import Flaskapp = Flask(__name__)@app.route('/')def hello_world(): return

2017-05-22 15:02:23 679

转载 N-gram模型表示文本

什么是N-Gram模型?在自然语言里有一个模型叫做n-gram,表示文字或语言中的n个连续的单词组成序列。在进行自然语言分析时,使用n-gram或者寻找常用词组,可以很容易的把一句话分解成若干个文字片段。摘自Python网络数据采集[RyanMitchell著]简单来说,就是找到核心主题词,那怎么算核心主题词呢,一般而言,重复率也就是提及次数最多的也就是最需要表达的就是核心

2017-05-18 23:11:46 3046

转载 自然语言处理中的N-Gram模型详解

登录 | 注册

2017-05-18 20:56:33 4877

原创 寻找二叉搜索树的第K小的节点

题目要求:230. Kth Smallest Element in a BST QuestionEditorial Solution My SubmissionsTotal Accepted: 58991Total Submissions: 148753Difficulty: MediumGiven a bin

2016-08-13 11:46:21 483

原创 树的最低公共祖先

import java.util.LinkedList;import java.util.List;/** * Created by dikongfeixing on 16/8/10. */public class LowestCommonAncestorofaBinaryTree_236 { public TreeNode lowestCommonAncestor(TreeN

2016-08-10 22:23:46 335

原创 判断树是否对称 101. Symmetric Tree

题目要求:101. Symmetric Tree QuestionEditorial Solution My SubmissionsTotal Accepted: 121475Total Submissions: 346144Difficulty: EasyGiven a binary tree, check

2016-08-10 17:50:00 263

原创 是否是平衡二叉树 110. Balanced Binary Tree

110. Balanced Binary Tree QuestionEditorial Solution My SubmissionsTotal Accepted: 124873Total Submissions: 357479Difficulty: EasyGiven a binary tree, determine if

2016-08-10 16:43:53 293

原创 Longest Palindromic Substring(最长回文子串)

5. Longest Palindromic Substring QuestionEditorial Solution My SubmissionsTotal Accepted: 121867Total Submissions: 515479Difficulty: Medium题目描述:Given a string S, fi

2016-08-04 15:05:51 883

原创 Spiral Matrix 螺旋数组

题目要求如下:Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7,

2016-07-16 11:52:09 227

原创 二分搜索 34. Search for a Range

题目要求:Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the order of O(log n).If the target is

2016-07-14 16:57:24 323

原创 Reverse Vowels of a String 交换元音字母

题目要求:Write a function that takes a string as input and reverse only the vowels of a string.Example 1:Given s = "hello", return "holle".Example 2:Given s = "leetcode", return "leotced

2016-07-12 11:29:44 342

原创 在旋转数组中找最小的值

原题如下所示:153. Find Minimum in Rotated Sorted Array My SubmissionsQuestionEditorial SolutionTotal Accepted: 96116 Total Submissions: 261936 Difficulty: MediumSuppose a s

2016-06-16 14:59:27 311

原创 用二分法找到数组山峰值

public int findPeakElement(int[] nums) { int N = nums.length; if (N == 1) { return 0; } int left = 0, right = N - 1; while (right - left > 1) { int mid = left + (ri

2016-06-13 19:53:48 2584

原创 一道简单的题被做的很难

209. Minimum Size Subarray Sum My SubmissionsQuestionEditorial SolutionTotal Accepted: 40966 Total Submissions: 150450 Difficulty: MediumGiven an array of n positive integers and a positive integer s,

2016-06-05 11:23:53 493

原创 Summary Ranges 228

题目要求:228. Summary RangesMy SubmissionsQuestionEditorial SolutionTotal Accepted: 47215 Total Submissions:191166 Difficulty: MediumGiven a sorted integer array without duplicates, retu

2016-06-04 20:02:54 320

原创 Boyer–Moore majority vote algorithm 博耶-穆尔多数投票算法 leetcode第229题

import java.util.ArrayList;import java.util.List;public class MajorElements229 { public List majorityElement1(int[] nums) //算法的精妙之处在于,如果不存在多于三分之一的元素的值,则次多元素是错误的,所有还要在最后做一次遍历和统计。 { List mylist=n

2016-06-04 10:54:47 1170

原创 118. Pascal's Triangle 简单数组问题

118. Pascal's Triangle My SubmissionsQuestionEditorial SolutionTotal Accepted: 85485 Total Submissions: 253159 Difficulty: EasyGiven numRows, generate the first numRows of Pascal's triangle.For exampl

2016-05-30 16:53:52 367

原创 189Rotate Array 实现数组循环右移的代码

Rotate an array of n elements to the right by k steps.For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4].Note:Try to come up as many solutions as yo

2016-05-26 16:42:03 392

原创 309. Best Time to Buy and Sell Stock with Cooldown

题目要求如下:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complete as many transactions as you like

2016-05-25 17:00:18 281

原创 关于322. Coin Change的解法与总结

You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up that amount. If that amount of money

2016-05-24 16:46:23 601

基于C++语言开发的网络即时聊天软件

这是个基于CS模式的开发程序,有客户端及服务器端两个程序,图形化的操作界面,可设置要连接的IP地址及端口号。

2012-05-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除