摘要: Description City X consists of n vertical and n horizontal infinite roads, forming n × n intersections. Roads (both vertical and horizontal) are numbe 阅读全文
posted @ 2018-04-03 23:07 王陸 阅读(447) 评论(0) 推荐(0) 编辑
摘要: Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The wa 阅读全文
posted @ 2018-04-03 21:15 王陸 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 1.1、算法的时间复杂度分析 1)函数渐近增长 概念: 给定两个函数f(n)和g(n),如果存在一个整数N,使得对于所有的n>N,f(n)总是比g(n)大,那么我们说f(n)的增长渐近快 于g(n) 规则 算法函数中的 常数 可以忽略 算法函数中 最高次幂的常数因子 可以忽略 算法函数中 最高次幂越 阅读全文
posted @ 2018-04-03 19:06 王陸 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Description The cows have purchased a yogurt factory that makes world-famous Yucky Yogurt. Over the next N (1 <= N <= 10,000) weeks, the price of milk 阅读全文
posted @ 2018-04-03 18:45 王陸 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 一、数据结构和算法概述 1.1、什么是数据结构? 官方解释 数据结构是一门研究非数值计算的程序设计问题中的操作对象, 以及他们之间的关系和操作等相关问题的学科 大白话 数据结构就是把数据元素按照一定的关系组织起来的集合, 用来组织和存储数据 1.2、数据结构分类 传统上,我们可以把数据结构分为 逻辑 阅读全文
posted @ 2018-04-03 16:53 王陸 阅读(226) 评论(0) 推荐(0) 编辑