2019年4月18日

LEETCODE 198. House Robber

摘要: ```c++ class Solution { public: int rob(vector& nums) { int len = nums.size(); if(!len) return 0; if(len == 1) return nums[0]; std::vector mem(len,0); 阅读全文

posted @ 2019-04-18 14:52 庭中核桃树 阅读(103) 评论(0) 推荐(0) 编辑

leetcode 174

摘要: ```c++ / @lc app=leetcode id=174 lang=cpp [174] Dungeon Game https://leetcode.com/problems/dungeon game/description/ algorithms Hard (26.59%) Total Ac 阅读全文

posted @ 2019-04-18 13:28 庭中核桃树 阅读(203) 评论(0) 推荐(0) 编辑

导航