- 博客(7)
- 资源 (3)
- 问答 (2)
- 收藏
- 关注
原创 Leetcode 401. Binary Watch
题目链接:https://leetcode.com/problems/binary-watch/ 题目描述: A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59). Each L
2016-10-28 22:03:25 335
原创 typedef和#define
一、typedef的用法 在C/C++语言中,typedef常用来定义一个标识符及关键字的别名,它是语言编译过程的一部分,但它并不实际分配内存空间,实例像: typedef int INT; typedef int ARRAY[10]; typedef (int*) pINT; typedef可以增强程序的可读性,以及标识符的灵活性,但它也有“非直观性”
2016-10-25 21:11:48 131
原创 Leetcode 70. Climbing Stairs
题目链接:https://leetcode.com/problems/climbing-stairs/ 题目描述: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinc
2016-10-12 21:03:47 148
原创 拉丁方阵问题
解析:用循环链表即可,一行构造一个链表,变换开始依次输出 // testlleet.cpp : 定义控制台应用程序的入口点。 #include "stdafx.h" #include using namespace std; struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL
2016-10-12 20:33:40 1001
原创 Leetcode 198. House Robber
题目链接:https://leetcode.com/problems/house-robber/ 题目描述: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint
2016-10-10 20:38:09 180
原创 LeetCode 303. Range Sum Query - Immutable
题目链接:https://leetcode.com/problems/range-sum-query-immutable/ 题目描述: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Given num
2016-10-10 20:25:59 203
数字逻辑电路课程设计自动洗涤系统设计
2014-06-25
win PC 端用C++如何获取连接的网络类型(无线网或者有线网)
2018-10-29
求拓扑保持的level set的代码
2016-11-22
TA创建的收藏夹 TA关注的收藏夹
TA关注的人