摘要:
Understand limitations of floating point representations.Never check for equality with ==. Instead, check if the difference is less than an epsilon va... 阅读全文
摘要:
Question:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity s... 阅读全文
摘要:
Question:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, ... 阅读全文