Leetcode~
文章平均质量分 70
Littlecuter
学生狗一直,希望能在csdn收获一些东西,不断成长!
展开
-
Leetcode: 338.Counting Bits
题目338.Counting BitLanguage:cpp 选上这道题是刚好听到老师在评价别的同学的博客的时候,提到了他用了Pick One随机选题,我觉得很有趣就来尝试了一下。题目难度为Medium。题目中文简述:给定一个输入num,输出一个num长度的vector,vector中每一位数为对应下标的二进制中的1的个数。 题目描述不难,首先先把sourcecode 放出来。#include<原创 2016-09-07 20:23:45 · 357 阅读 · 0 评论 -
Algorithm Chapter8 Exicise
Algorithm Chapter8 Exicise8.3原创 2017-01-15 01:02:44 · 470 阅读 · 0 评论 -
Leetcode题解:198.213.337.House Robber套题
198.213.337.House Robber套题难度:Easy-Medium-Hard原创 2016-12-17 01:23:54 · 459 阅读 · 0 评论 -
Leetcode题解:4. Longest Substring Without Repeating Characters
Leetcode题解:4. Longest Substring Without Repeating Characters难度:Medium原创 2016-11-02 10:07:29 · 485 阅读 · 0 评论 -
Leetcode题解4.Median of Two Sorted Arrays
Leetcode题解4.Median of Two Sorted Arrays-HardAuthor: Zinc 关键词:分治,递归,二分原创 2016-10-17 13:35:32 · 330 阅读 · 0 评论 -
Leetcode题解:419. Battleships in a Board
Leetcode题解:419. Battleships in a Board难度:Medium原创 2016-10-29 17:41:37 · 382 阅读 · 0 评论 -
Leetcode题解:335. Self Crossing
Leetcode题解:335. Self Crossing难度:Hard原创 2016-11-06 00:45:34 · 421 阅读 · 0 评论 -
Leetcode:292. Nim Game
Leetcode题解292.Nim Game-Easy题目原创 2016-09-28 14:14:33 · 411 阅读 · 0 评论 -
Leetcode题解:11. Container With Most Water
Leetcode题解:11. Container With Most Water难度:Medium题目:Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoi原创 2016-11-03 06:15:01 · 354 阅读 · 0 评论 -
Leetcode题解:513. Find Bottom Left Tree Value
难度:Medium 类型:树513. Find Bottom Left Tree Value题目Given a binary tree, find the leftmost value in the last row of the tree.概述给定二叉树,找出其最底层的最左边元素 Input: 1 / \ 2 3 / / \4 5 6 / 7Out原创 2017-02-21 23:13:07 · 425 阅读 · 0 评论