随笔分类 - Algorithms
摘要:原题: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their...
阅读全文
摘要:题目: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each inpu...
阅读全文
摘要:白书 例题6-11用四分树来表示一个黑白图像:最大的图为根,然后按照图中的方式编号,从左到右对应4个子结点。如果某子结点对应的区域全黑或者全白,则直接用一个黑结点或者白结点表示;如果既有黑又有白,则用一个灰结点表示,并且为这个区域递归建树。思路用一个buffer表示黑白表格,利用递归建树,每当遇见p...
阅读全文

浙公网安备 33010602011771号