摘要:
Question: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Analysis: 给出一个m * n的矩阵,如果一个元素为0,则它整行整列都设为0. An 阅读全文
摘要:
Question: Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't o 阅读全文
摘要:
Question: Reverse a linked list from position m to n. Do it in-place and in one-pass. For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1 阅读全文
摘要:
已知数据x,希望得到未知label y,即得到映射x-->y: 几个概念: 1)p(x): data distribution 数据分布 2)p(y): prior distribution 先验分布 a priori: Knowable without appeal to particular 阅读全文