二维Gibbs Sampling算法 Gibbs Sampling是高维概率分布的MCMC采样方法。二维场景下,状态(x, y)转移到(x’, y’),可以分为三种场景 (1)平行于y轴转移,如上图中从状态A转移到状态B。 (2)平行于x轴转移,如上图中从状态A转移到状态C。 (3)其他情况转移,如 ...
分类:
其他好文 时间:
2018-10-05 10:42:20
阅读次数:
135
Given a list of non negative integers, arrange them such that they form the largest number. Example 1: Input: [10,2] Output: "210" Example 2: Input: [ ...
分类:
其他好文 时间:
2018-10-04 09:27:23
阅读次数:
114
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. ...
分类:
其他好文 时间:
2018-10-02 20:08:56
阅读次数:
167
题目 Given a non empty array of digits representing a non negative integer, plus one to the integer. The digits are stored such that the most significan ...
分类:
其他好文 时间:
2018-10-01 11:56:00
阅读次数:
238
Min Cost Climbing Stairs https://leetcode.com/problems/min-cost-climbing-stairs/ On a staircase, the i-th step has some non-negative cost cost[i] assi ...
分类:
其他好文 时间:
2018-10-01 01:12:08
阅读次数:
182
Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. Example: 原题地址: Pascal's Triangle 难度: Easy 题意: 杨辉三角 时间复杂度: O(n) ...
分类:
编程语言 时间:
2018-09-30 20:09:16
阅读次数:
188
On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two steps. Y ...
分类:
编程语言 时间:
2018-09-30 19:57:30
阅读次数:
213
You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose o ...
分类:
其他好文 时间:
2018-09-29 14:27:08
阅读次数:
469
204. Count Primes 204. Count Primes 204. Count Primes 204. Count Primes Count the number of prime numbers less than a non-negative number, n. Example: ...
分类:
其他好文 时间:
2018-09-26 00:12:10
阅读次数:
158
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:
其他好文 时间:
2018-09-25 16:11:22
阅读次数:
163