关闭

TheaterVisit

/*Problem StatementYou want to buy two neighboring tickets in the first row of the theater so that one of the tickets is as far from the aisles as possible.You will be given a String describing the fi...
阅读(104) 评论(0)

SkipStones

/*Problem StatementWhen a stone is thrown across water, sometimes it will land on the water and bounce rather than falling in right away. Suppose that a stone is thrown a distance of n. On each succes...
阅读(178) 评论(0)

BlockStructure

/*Problem StatementA group of vertical blocks are placed densely one after another on the ground. The blocks each have a width of 1, but their heights may vary. For example, if the heights of the vert...
阅读(78) 评论(0)

HardDuplicateRemover

/*Problem StatementWe have a sequence of integers, and we would like to remove all duplicate elements from this sequence. There may be multiple ways to perform this task. For example, given the sequen...
阅读(129) 评论(0)

RecurringNumbers

/*Problem Statement         A rational number is defined as a/b, where a and b are integers, and b is greater than 0. Furthermore, a rational number can be written as a decimal that has a group of dig...
阅读(128) 评论(0)

FactorialSystem

 /*Problem Statement         In the factorial number system the value of the first digit (from the right) is 1!, the value of the second digit is 2!, ..., and the value of the n-th digit is n!. This m...
阅读(99) 评论(0)

SalesRouting

package salesRouting;/*Problem Statement    You want to send a group of salespeople from location 0 to location 1, but no two of them can travel through the same location (other than 0 and 1).        ...
阅读(180) 评论(0)

CraneWork

/*Problem Statement         There are three stacks of crates - two of them outside of the warehouse, and one inside the warehouse.          We have a crane that can move one crate at a time, and we wo...
阅读(122) 评论(0)

palindrome

package palindrome;/*Problem Statement    A palindrome is a string that reads the same forward and backward. A palindrome substring is a contiguous sequence of characters taken from a string that form...
阅读(241) 评论(0)

什么是最小二乘拟合

对于一个数据点(x1, y1), ... (xn, yn)的集合, 我们常常试图画一条线,它最能接近于这些数据代表的趋势, 使用最小二乘拟合,我们寻找一条形如y=mx+b的线,使得下面这个误差度量最小:(mxi + b - yi)2  叠加符号,打不出来.......
阅读(899) 评论(0)

Just a test

just a test 以后在此安家,研究下技术。...
阅读(188) 评论(0)
    个人资料
    • 访问:4838次
    • 积分:143
    • 等级:
    • 排名:千里之外
    • 原创:11篇
    • 转载:0篇
    • 译文:0篇
    • 评论:0条
    文章存档