摘要:
题目:Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.给出一系列点,求出点的个数最多的那条直线。两点确定一条直线,N个点就有N(N-1)/2条直线,相同直... 阅读全文
摘要:
题目:The Skyline ProblemA city's skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance. No... 阅读全文
摘要:
申明:这是一个渣渣的伪技术博客,并没有什么学习价值。。。题目:Implement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing ... 阅读全文
摘要:
Problem:Given a singly linked list, determine if it is a palindrome.问题分析: 题目很简单,比较字符串是否为回文。思路就是依次比较对称位置上的数对是否相等。数据结构为单链表:1 struct ListNode {2 i... 阅读全文