摘要: 阅读全文
posted @ 2020-03-25 21:59 尘归风 阅读(1923) 评论(1) 推荐(0)
摘要: 1 impl Solution { 2 pub fn flood_fill(image: Vec<Vec<i32>>, sr: i32, sc: i32, new_color: i32) -> Vec<Vec<i32>> { 3 let mut image = image; 4 let origin 阅读全文
posted @ 2020-02-26 14:42 尘归风 阅读(319) 评论(0) 推荐(0)
摘要: 1 // Definition for a binary tree node. 2 // #[derive(Debug, PartialEq, Eq)] 3 // pub struct TreeNode { 4 // pub val: i32, 5 // pub left: Option<Rc<Re 阅读全文
posted @ 2020-02-26 00:28 尘归风 阅读(936) 评论(0) 推荐(0)
摘要: warning: LF will be replaced by CRLF in about/index.html.The file will have its original line endings in your working directory 原因是存在符号转义问题;windows的换行 阅读全文
posted @ 2020-02-24 11:37 尘归风 阅读(642) 评论(0) 推荐(0)
摘要: 1 package main 2 3 import ( 4 "log" 5 _ "github.com/go-sql-driver/mysql" 6 "github.com/jmoiron/sqlx" // 驱动 7 ) 8 9 type Class struct { 10 Id int64 11 阅读全文
posted @ 2020-02-05 00:06 尘归风 阅读(382) 评论(0) 推荐(0)
摘要: collect nth函数 let a = [1, 2, 3]; let mut iter = a.iter(); assert_eq!(iter.nth(1), Some(&2)); assert_eq!(iter.nth(1), None); let a = [1, 2, 3]; assert_ 阅读全文
posted @ 2020-01-30 21:21 尘归风 阅读(5934) 评论(0) 推荐(0)
摘要: 煎鱼大佬的教程 app.ini #debug or release RUN_MODE = debug [app] PAGE_SIZE = 10 JWT_SECRET = 23347$040412 [server] HTTP_PORT = 8000 READ_TIMEOUT = 60 WRITE_TI 阅读全文
posted @ 2020-01-27 16:28 尘归风 阅读(513) 评论(0) 推荐(0)
摘要: leetcode 976 给定由一些正数(代表长度)组成的数组 A,返回由其中三个长度组成的、面积不为零的三角形的最大周长。 如果不能形成任何面积不为零的三角形,返回 0。 1 impl Solution { 2 pub fn largest_perimeter(a: Vec<i32>) -> i3 阅读全文
posted @ 2020-01-19 18:35 尘归风 阅读(843) 评论(0) 推荐(0)
摘要: 1 package main 2 3 import ( 4 "net/http" 5 "github.com/gin-gonic/gin" 6 ) 7 8 func main() { 9 r := gin.Default() 10 11 r.GET("/someDataFromReader", fu 阅读全文
posted @ 2020-01-16 21:29 尘归风 阅读(503) 评论(0) 推荐(0)
摘要: 1 package main 2 3 import ( 4 "fmt" 5 "net/http" 6 "path/filepath" 7 8 "github.com/gin-gonic/gin" 9 ) 10 11 func main() { 12 r := gin.Default() 13 // 阅读全文
posted @ 2020-01-16 20:06 尘归风 阅读(1013) 评论(0) 推荐(0)