题目描述: Given a binary search tree with non-negative values, find the minimum absolute difference between values…
算法题——Course Schedule(C++)有向图求解BFS
题目描述: There are a total of n courses you have to take, labeled from 0 to n – 1. Some courses may have pr…
算法题——Maximum Gap(JAVA)基数排序
题目描述: Given an unsorted array, find the maximum difference between the successive elements in its sorted form.…
算法题——Ones and Zeroes(JAVA)动态规划
题目描述: In the computer world, use restricted resource you have to generate maximum benefit is what we always wa…
算法题——Unique Paths(C++)动态规划
题目描述: A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below). The rob…
算法题——Minimum Depth of Binary Tree(JAVA)
题目描述: Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest…
算法概论 第八章课后题8.3
8.3 STINGY SAT is the following problem: given a set of clauses (each a disjunction of literals) and an intege…
【正完成】Java基于Jsoup的网络爬虫工具实现
Java基于Jsoup的网络爬虫工具实现 一、工具介绍: 首先,先介绍一个好的网页分析工具 Jsoup 工具下载地址:http://jsoup.org/download 中文说明文档:http://www.o…
算法题——Linked List Cycle II(C++)链表中的环
题目描述: Given a linked list, return the node where the cycle begins. If there is no cycle, return null. 读题: 找出链表…
算法题——Best Time to Buy and Sell Stock II(JAVA)Greedy
题目描述: Say you have an array for which the ith element is the price of a given stock on day i. Design an algori…
算法题——Merge k Sorted Lists(JAVA)合并链表
题目描述: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 读题: 合…
算法题——Longest Substring Without Repeating Characters(C++)hash思想
题目描述: Given a string, find the length of the longest substring without repeating characters. Examples: Given “…