- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 区块链Solidity教程之文件结构(一)
版本声明 pragma solidity ^0.4.0; 表示低于这个对应版本的编译器才可以编译。 引用文件 与python引用文件一样,通过import引用文件 全局引入 import “filename”; 自定义命名空间引入 import * as symbolName from “filename” 引用同目录的使用 import “./x” as x 注释 用//或者/**/来进行...
2018-10-30 22:42:48 192
原创 算法设计与分析(九)--动态规划
Burst Balloons 题目 Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloons. If the you burst balloon i yo...
2018-10-30 22:14:53 285
原创 算法设计与分析--动态规划(八)
Longest Increasing Path in a Matrix 题目 Given an integer matrix, find the length of the longest increasing path. From each cell, you can either move to four directions: left, right, up or down. You may...
2018-10-27 11:37:18 259
原创 算法设计与分析(七)
贪心算法 题目 这次我们选择两题贪心算法作为练习,这两道题目是有关系的,一个是比较基础的贪心,另一个是难一点的贪心。 Jump Game Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array re...
2018-10-18 23:46:51 190
原创 LeetCode--Keys and Rooms
Keys and Rooms 题目 There are N rooms and you start in room 0. Each room has a distinct number in 0, 1, 2, …, N-1, and each room may have some keys to access the next room. Formally, each room i has a ...
2018-10-14 22:20:26 167
原创 算法设计与分析(六
Merge k Sorted Lists 题目 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1->4->5, 1->3->4, 2->6 ] Output: 1->1-&gt
2018-10-11 19:30:11 159
原创 算法设计与分析(五)
Is Graph Bipartite? 1. 题目 Given an undirected graph, return true if and only if it is bipartite. Recall that a graph is bipartite if we can split it’s set of nodes into two independent subsets A and B...
2018-10-04 10:04:31 221
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人