经过之前《认真配眼镜(一)之验光篇》和《认真配眼镜(二)之镜架选购篇》这两篇文章的介绍,拿到靠谱的验光数据和合适的眼镜架后,最后一步就是进行镜片加工,得到最终的近视眼镜。 镜...
经过之前《认真配眼镜(一)之验光篇》和《认真配眼镜(二)之镜架选购篇》这两篇文章的介绍,拿到靠谱的验光数据和合适的眼镜架后,最后一步就是进行镜片加工,得到最终的近视眼镜。 镜...
博主你好,从数组建堆的复杂度应该是O(N)?参考Robert Sedgewick的《Algorithm》第四版
手把手教你写个大顶堆今天我们来实现一个大顶堆,所谓大顶堆,即根节点的值大于等于其孩子节点的值。废话少絮,直接开始。 堆是一个完全二叉树,很适合用顺序结构来实现,这里我们选择数组。用数组实现堆时,...
前言 前一段时间因为某门课的实验报告(代码+英文)强制要求使用LaTex写,所以开始初步接触了LaTex,使用的工具是TexLive 2017 + VSCode(配合LaTe...
简书的 markdown 没有目录,截图一张,让大家看的清楚,找到自己需要的东西。 更新日志:2017年12月3日 增加 windows 配置 开发环境: MAC OS 10...
前言 刚刚开始学习Qt,于是就从官网下载了最新版的Qt 5.9.1,对初学者而言应该首先掌握Qt的官方IDE——Qt Creator,但是非常神奇的是在我的两台电脑上,一模一...
Problem In task scheduling, it is common to use a graph representation with a node for ...
Problem Given a non-negative integer n, count all numbers with unique digits, x, where ...
Problem Suppose you have N integers from 1 to N. We define a beautiful arrangement as a...
Problem A binary watch has 4 LEDs on the top which represent the hours (0-11), and the ...
Problem There are a total of n courses you have to take, labeled from 0 to n - 1.Some c...
Problem There are a total of n courses you have to take, labeled from 0 to n - 1.Some c...
Problem Given two words word1 and word2, find the minimum number of steps required to c...
Problem Given a 2d grid map of '1's (land) and '0's (water), count the number of island...
Problem A sequence of number is called arithmetic if it consists of at least three elem...
Problem Say you have an array for which the ith element is the price of a given stock o...
Problem You are a professional robber planning to rob houses along a street. Each house...
Problem Given an integer array nums, find the sum of the elements between indices i and...
Problem Given a non negative integer number num. For every numbers i in the range 0 ≤ i...
Problem Say you have an array for which the ith element is the price of a given stock o...