- 博客(15)
- 资源 (5)
- 收藏
- 关注
原创 如何查找mysql中不包含中文字符的记录
SELECT *FROM 表名WHERE length( 字段名) = CHARACTER_LENGTH( 字段名 )这里用到两个函数CHAR_LENGTH( ) 和 LENGTH()CHAR_LENGTH(str)返回值为字符串str 的长度,长度的单位为字符。一个多字节字符算作一个单字符。对于一个包含五个二字节字符集, LENGTH(str)返回值为 10,而C
2015-05-12 10:36:50
2251
原创 信息检索系统常用的评价指标(准确率,召回率,F1,MAP,NDCG)
1. 准确率,召回率,F1值首先介绍三种最常用的无序的评价指标,它们适用于一种相对简单的情况:在搜索结果中仅考虑返回的文档是否与查询相关,而不考虑这些返回文档在结果列表中的相对位置和顺序。准确率(Precision)是返回的结果中相关文档所占的比例召回率(Recall)是返回的相关文档占所有相关文档的比例具体可以根据混淆矩阵来理解 相关不
2015-02-11 23:53:04
22908
1
原创 leetcode 172-Factorial Trailing Zeroes
原题:Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.思路:数字结尾每个0相当于一组2与5的乘积,因子只要知道n!中包含多少对质因子2和5,结尾就有多少个0. 由于质因
2015-01-30 10:58:34
484
原创 如何在eclipse中给tomcat增加JVM的heapsize
最近在eclipse中运行tomcat上的应用时,报错提示java.lang.OutOfMemoryError: Java heap space,也就是虚拟机的堆空间不足,下面给出一种解决方法。1.在servers tab 中双击tomcat server,如下图所示2.点击“Open launch configuration”.如下图所示3
2015-01-21 17:14:32
1099
转载 一个简单的基于内容的推荐算法
作者:EXLsunshine 原文链接: http://dataunion.org/?p=7542 最近闲下来又开始继续折腾推荐系统了,声明一下,本文只是介绍一下最基础的基于内容的推荐系统(Content-based recommender system)的工作原理,其实基于内容的推荐系统也分三六九等Orz,这里只是简单的较少一下最原始的、最基本的工作流程。基于内容的推
2015-01-14 09:29:25
843
原创 leetcode 14-Longest Common Prefix
原题:Write a function to find the longest common prefix string amongst an array of strings.即求一组字符串的最长公共前缀思路:暴力法,以字符串数组中第一个字符串为基准,遍历第一个字符串,依次将该字符串中的字符与其他字符串相应位置中的字符进行比较。相同则继续,不同则退出,返回上一次循环的结果。
2014-12-31 09:31:39
419
原创 leetcode 171-Excel Sheet Column Number
原题:Given a column title as appear in an Excel sheet, return its corresponding column number.For example: A -> 1 B -> 2 C -> 3 ... Z -> 26 AA -> 27 AB -> 28 即
2014-12-30 16:16:58
516
原创 leetcode 20-Valid Parentheses
原题:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}" are
2014-12-26 15:03:28
547
原创 leetcode 125-Valid Palindrome
原题:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Panama" is a palindrome."race a car"
2014-12-23 18:17:07
386
原创 leetcode 160-Intersection of Two Linked Lists
原题:Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: a1 → a2 ↘
2014-12-23 10:06:54
383
原创 leetcode 169-Majority Element
原题: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 that the array is non-empty and the majority
2014-12-22 15:19:09
511
原创 leetcode 168-Excel Sheet Column Title
原题:Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB
2014-12-22 10:26:39
476
原创 Logistic Regression(逻辑回归)简介
逻辑回归模型(Logistic Regression)是一个重要的有监督二类分类模型,在计算广告学中有着非常广泛的应用。在求职过程中发现各大互联网公司凡是涉及广告工程师的岗位面试几乎都会问到逻辑回归,因此在这里作一个总结。1.什么是逻辑回归Logistic Regression 是基于Sigmoid函数(又叫“S型函数”)的有监督二类分类模型。Sigmoid函数公式为:
2014-12-16 15:32:46
4074
转载 datepicker——基于jquery UI的日期选择器
因项目需要实现一个日期选择器,网上有很多现成的基于jquery的实现,但是找了半天,发现这一篇说的还比较清楚,故转载收藏,感谢原作者。原文链接:http://ifxoxo.com/jquery-ui-datepicker.html更多关于jquery UI的信息可参考 : http://www.w3cschool.cc/jqueryui/jqueryui-tutorial.html
2014-12-11 18:14:36
1711
原创 leetcode 70-Climbing Stairs
原题: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 climb to the top?思路:1. 第一步有两种情况 (跨一步和跨
2014-12-08 23:36:30
795
c++编程思想(第一部分)
2008-05-16
c++编程思想(第二部分)
2008-05-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅