![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
文章平均质量分 58
bigbigtree911
这个作者很懒,什么都没留下…
展开
-
N-Queens leetcode
class Solution {public: vector > re; //测试在第row行,第row列放置皇后是否有效 int isValid(int *a, int n, int row, int col) { int tmpcol=0; for(int tmprow=0;tmprow<row;tmprow++) {原创 2014-08-04 10:37:52 · 864 阅读 · 0 评论 -
Triangle leetcode
解题思路:使用动态guihuaclass Solution {public: int minimumTotal(vector > &triangle) { int s = triangle.size(); if(s != (triangle[s-1].size())) return -1; if(s==1)原创 2014-08-04 14:43:45 · 659 阅读 · 0 评论 -
word break II
解题思路:和word breakleis原创 2014-08-17 10:25:10 · 1044 阅读 · 0 评论