06 2020 档案

摘要:https://www.jianshu.com/p/dd0537a40fc6 阅读全文
posted @ 2020-06-30 12:58 EvanMeetTheWorld 阅读(8) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/dd0537a40fc6 阅读全文
posted @ 2020-06-30 12:58 EvanMeetTheWorld 阅读(11) 评论(0) 推荐(0)
摘要:闭包是独立的函数块,可以在代码中传递和使用。Swift中的闭包类似于C和Objective-C中的block以及其他编程语言中的la... 阅读全文
posted @ 2020-06-30 09:19 EvanMeetTheWorld 阅读(22) 评论(0) 推荐(0)
摘要:闭包是独立的函数块,可以在代码中传递和使用。Swift中的闭包类似于C和Objective-C中的block以及其他编程语言中的la... 阅读全文
posted @ 2020-06-30 09:19 EvanMeetTheWorld 阅读(19) 评论(0) 推荐(0)
摘要:问号: 用来声明一个Optional的数据结构 其本质上是个enum, 里面有case None / case Some. 而想要声... 阅读全文
posted @ 2020-06-29 21:50 EvanMeetTheWorld 阅读(103) 评论(0) 推荐(0)
摘要:问号: 用来声明一个Optional的数据结构 其本质上是个enum, 里面有case None / case Some. 而想要声... 阅读全文
posted @ 2020-06-29 21:50 EvanMeetTheWorld 阅读(101) 评论(0) 推荐(0)
摘要:https://zhuanlan.zhihu.com/p/63434991 https://www.ctolib.com/topic... 阅读全文
posted @ 2020-06-28 22:34 EvanMeetTheWorld 阅读(7) 评论(0) 推荐(0)
摘要:https://zhuanlan.zhihu.com/p/63434991 https://www.ctolib.com/topic... 阅读全文
posted @ 2020-06-28 22:34 EvanMeetTheWorld 阅读(15) 评论(0) 推荐(0)
摘要:Cocoa/Cocoa Touch中的许多类都有NS前缀。 这个要从乔帮主历史恩怨说起。当年Steve Jobs 和John Scu... 阅读全文
posted @ 2020-06-27 22:59 EvanMeetTheWorld 阅读(31) 评论(0) 推荐(0)
摘要:Cocoa/Cocoa Touch中的许多类都有NS前缀。 这个要从乔帮主历史恩怨说起。当年Steve Jobs 和John Scu... 阅读全文
posted @ 2020-06-27 22:59 EvanMeetTheWorld 阅读(19) 评论(0) 推荐(0)
摘要:refer: https://swiftcafe.io/post/codable 本文的大体意思: Codable是一个能够快速解析... 阅读全文
posted @ 2020-06-27 21:35 EvanMeetTheWorld 阅读(39) 评论(0) 推荐(0)
摘要:refer: https://swiftcafe.io/post/codable 本文的大体意思: Codable是一个能够快速解析... 阅读全文
posted @ 2020-06-27 21:35 EvanMeetTheWorld 阅读(28) 评论(0) 推荐(0)
摘要:guard语句类似于if语句,是否执行语句也是基于Boolean表达式,使用guard关键字需要条件为true才会让guard后面的... 阅读全文
posted @ 2020-06-27 21:03 EvanMeetTheWorld 阅读(16) 评论(0) 推荐(0)
摘要:guard语句类似于if语句,是否执行语句也是基于Boolean表达式,使用guard关键字需要条件为true才会让guard后面的... 阅读全文
posted @ 2020-06-27 21:03 EvanMeetTheWorld 阅读(20) 评论(0) 推荐(0)
摘要:http://iamyaojie.wang/2017/Swift-try/ 阅读全文
posted @ 2020-06-27 20:56 EvanMeetTheWorld 阅读(17) 评论(0) 推荐(0)
摘要:http://iamyaojie.wang/2017/Swift-try/ 阅读全文
posted @ 2020-06-27 20:56 EvanMeetTheWorld 阅读(21) 评论(0) 推荐(0)
摘要:first, the communication skills, this goes without saying more. Do... 阅读全文
posted @ 2020-06-26 01:23 EvanMeetTheWorld 阅读(18) 评论(0) 推荐(0)
摘要:first, the communication skills, this goes without saying more. Do... 阅读全文
posted @ 2020-06-26 01:23 EvanMeetTheWorld 阅读(19) 评论(0) 推荐(0)
摘要:Construct Binary Tree from Preorder and Inorder Traversal all we n... 阅读全文
posted @ 2020-06-25 10:25 EvanMeetTheWorld 阅读(22) 评论(0) 推荐(0)
摘要:Construct Binary Tree from Preorder and Inorder Traversal all we n... 阅读全文
posted @ 2020-06-25 10:25 EvanMeetTheWorld 阅读(18) 评论(0) 推荐(0)
摘要:IOS应用程序有五种状态: Not running 程序没启动 inactive 程序在前台运行,不过没有接收到事件。在没有事件处理... 阅读全文
posted @ 2020-06-22 11:25 EvanMeetTheWorld 阅读(108) 评论(0) 推荐(0)
摘要:IOS应用程序有五种状态: Not running 程序没启动 inactive 程序在前台运行,不过没有接收到事件。在没有事件处理... 阅读全文
posted @ 2020-06-22 11:25 EvanMeetTheWorld 阅读(24) 评论(0) 推荐(0)
摘要:继承: 就很java的继承一样 在 Swift 中,类可以调用和访问超类的方法,属性和下标脚本,并且可以重写它们。 语法: clas... 阅读全文
posted @ 2020-06-21 11:59 EvanMeetTheWorld 阅读(43) 评论(0) 推荐(0)
摘要:继承: 就很java的继承一样 在 Swift 中,类可以调用和访问超类的方法,属性和下标脚本,并且可以重写它们。 语法: clas... 阅读全文
posted @ 2020-06-21 11:59 EvanMeetTheWorld 阅读(74) 评论(0) 推荐(0)
摘要:Swift 构造函数使用 init() 方法。和Java一样 构造器就像是一个没有返回值的方法 语法: init(){ // ... 阅读全文
posted @ 2020-06-21 11:23 EvanMeetTheWorld 阅读(36) 评论(0) 推荐(0)
摘要:Swift 构造函数使用 init() 方法。和Java一样 构造器就像是一个没有返回值的方法 语法: init(){ // ... 阅读全文
posted @ 2020-06-21 11:23 EvanMeetTheWorld 阅读(23) 评论(0) 推荐(0)
摘要:扩展就是向一个已有的类、结构体或枚举类型添加新功能。 扩展可以对一个类型添加新的功能,但是不能重写已有的功能。 所以这也是一个jav... 阅读全文
posted @ 2020-06-21 10:47 EvanMeetTheWorld 阅读(33) 评论(0) 推荐(0)
摘要:扩展就是向一个已有的类、结构体或枚举类型添加新功能。 扩展可以对一个类型添加新的功能,但是不能重写已有的功能。 所以这也是一个jav... 阅读全文
posted @ 2020-06-21 10:47 EvanMeetTheWorld 阅读(40) 评论(0) 推荐(0)
摘要:通俗易懂的来说,就是因为有下标脚本这种东西的存在,使得我们用下标脚本访问一个数组(Array)实例中的元素可以这样写 someArr... 阅读全文
posted @ 2020-06-21 10:09 EvanMeetTheWorld 阅读(18) 评论(0) 推荐(0)
摘要:通俗易懂的来说,就是因为有下标脚本这种东西的存在,使得我们用下标脚本访问一个数组(Array)实例中的元素可以这样写 someArr... 阅读全文
posted @ 2020-06-21 10:09 EvanMeetTheWorld 阅读(28) 评论(0) 推荐(0)
摘要:闭包(Closures)是自包含的功能代码块(就像是使用轻量级语法实现的函数),可以在代码中使用或者用来作为参数传值。 Swift ... 阅读全文
posted @ 2020-06-21 09:46 EvanMeetTheWorld 阅读(34) 评论(0) 推荐(0)
摘要:闭包(Closures)是自包含的功能代码块(就像是使用轻量级语法实现的函数),可以在代码中使用或者用来作为参数传值。 Swift ... 阅读全文
posted @ 2020-06-21 09:46 EvanMeetTheWorld 阅读(28) 评论(0) 推荐(0)
摘要:定义函数: //不带参数func sitename() -> String { return "菜鸟教程"}print(sit... 阅读全文
posted @ 2020-06-21 09:31 EvanMeetTheWorld 阅读(24) 评论(0) 推荐(0)
摘要:定义函数: //不带参数func sitename() -> String { return "菜鸟教程"}print(sit... 阅读全文
posted @ 2020-06-21 09:31 EvanMeetTheWorld 阅读(23) 评论(0) 推荐(0)
摘要:数组: //初始化var someInts = [Int](repeating: 10, count: 3)var someStrs... 阅读全文
posted @ 2020-06-20 09:58 EvanMeetTheWorld 阅读(50) 评论(0) 推荐(0)
摘要:数组: //初始化var someInts = [Int](repeating: 10, count: 3)var someStrs... 阅读全文
posted @ 2020-06-20 09:58 EvanMeetTheWorld 阅读(41) 评论(0) 推荐(0)
摘要:isEmpty(); hasPerfix(String) hasSuffix(String) Int(String) //强制类型转... 阅读全文
posted @ 2020-06-20 09:17 EvanMeetTheWorld 阅读(27) 评论(0) 推荐(0)
摘要:isEmpty(); hasPerfix(String) hasSuffix(String) Int(String) //强制类型转... 阅读全文
posted @ 2020-06-20 09:17 EvanMeetTheWorld 阅读(35) 评论(0) 推荐(0)
摘要:跟Java没有什么区别 阅读全文
posted @ 2020-06-20 09:01 EvanMeetTheWorld 阅读(8) 评论(0) 推荐(0)
摘要:跟Java没有什么区别 阅读全文
posted @ 2020-06-20 09:01 EvanMeetTheWorld 阅读(6) 评论(0) 推荐(0)
摘要:变量的声明与赋值。可以只声明(var varB:Float)也可以直接赋值。 变量的输出: var name = "菜鸟教程"var... 阅读全文
posted @ 2020-06-20 07:59 EvanMeetTheWorld 阅读(25) 评论(0) 推荐(0)
摘要:变量的声明与赋值。可以只声明(var varB:Float)也可以直接赋值。 变量的输出: var name = "菜鸟教程"var... 阅读全文
posted @ 2020-06-20 07:59 EvanMeetTheWorld 阅读(27) 评论(0) 推荐(0)
摘要:内置数据类型: Int UInt (无符号int) Float Double Bool String Character 定义: 我... 阅读全文
posted @ 2020-06-20 04:49 EvanMeetTheWorld 阅读(15) 评论(0) 推荐(0)
摘要:内置数据类型: Int UInt (无符号int) Float Double Bool String Character 定义: 我... 阅读全文
posted @ 2020-06-20 04:49 EvanMeetTheWorld 阅读(10) 评论(0) 推荐(0)
摘要:import Cocoa //创建的是 OS X playground 需要引入 Cocoa import UIKit //如果我们... 阅读全文
posted @ 2020-06-20 04:41 EvanMeetTheWorld 阅读(34) 评论(0) 推荐(0)
摘要:import Cocoa //创建的是 OS X playground 需要引入 Cocoa import UIKit //如果我们... 阅读全文
posted @ 2020-06-20 04:41 EvanMeetTheWorld 阅读(24) 评论(0) 推荐(0)
摘要:Given a set of distinct positive integers, find the largest subset... 阅读全文
posted @ 2020-06-15 01:46 EvanMeetTheWorld 阅读(14) 评论(0) 推荐(0)
摘要:Given a set of distinct positive integers, find the largest subset... 阅读全文
posted @ 2020-06-15 01:46 EvanMeetTheWorld 阅读(19) 评论(0) 推荐(0)
摘要:Input: intervals = [[1,3],[6,9]], newInterval = [2,5] Output: [[1,... 阅读全文
posted @ 2020-06-14 03:13 EvanMeetTheWorld 阅读(92) 评论(0) 推荐(0)
摘要:Input: intervals = [[1,3],[6,9]], newInterval = [2,5] Output: [[1,... 阅读全文
posted @ 2020-06-14 03:13 EvanMeetTheWorld 阅读(40) 评论(0) 推荐(0)
摘要:this is the follow up of Leetcode380, which allows dupliciate valu... 阅读全文
posted @ 2020-06-13 03:18 EvanMeetTheWorld 阅读(15) 评论(0) 推荐(0)
摘要:this is the follow up of Leetcode380, which allows dupliciate valu... 阅读全文
posted @ 2020-06-13 03:18 EvanMeetTheWorld 阅读(20) 评论(0) 推荐(0)
摘要:implement a data structure that support insert() delete() and getR... 阅读全文
posted @ 2020-06-13 02:54 EvanMeetTheWorld 阅读(30) 评论(0) 推荐(0)
摘要:implement a data structure that support insert() delete() and getR... 阅读全文
posted @ 2020-06-13 02:54 EvanMeetTheWorld 阅读(23) 评论(0) 推荐(0)
摘要:three colors, sort them: Input: [2,0,2,1,1,0] Output: [0,0,1,1,2,2... 阅读全文
posted @ 2020-06-13 01:07 EvanMeetTheWorld 阅读(19) 评论(0) 推荐(0)
摘要:three colors, sort them: Input: [2,0,2,1,1,0] Output: [0,0,1,1,2,2... 阅读全文
posted @ 2020-06-13 01:07 EvanMeetTheWorld 阅读(19) 评论(0) 推荐(0)
摘要:it’s a very easily understanding problem, and you can get it just ... 阅读全文
posted @ 2020-06-12 23:15 EvanMeetTheWorld 阅读(12) 评论(0) 推荐(0)
摘要:it’s a very easily understanding problem, and you can get it just ... 阅读全文
posted @ 2020-06-12 23:15 EvanMeetTheWorld 阅读(20) 评论(0) 推荐(0)
摘要:这一方面之前从来没有学过 因此稍加整理 做一个入门的教程。 1.能谈一谈什么是Spring框架吗? Spring 框架是一个为 Ja... 阅读全文
posted @ 2020-06-12 09:01 EvanMeetTheWorld 阅读(17) 评论(0) 推荐(0)
摘要:这一方面之前从来没有学过 因此稍加整理 做一个入门的教程。 1.能谈一谈什么是Spring框架吗? Spring 框架是一个为 Ja... 阅读全文
posted @ 2020-06-12 09:01 EvanMeetTheWorld 阅读(65) 评论(0) 推荐(0)
摘要:Input: num1 = “123”, num2 = “456” Output: “56088” pay attention: w... 阅读全文
posted @ 2020-06-12 08:02 EvanMeetTheWorld 阅读(19) 评论(0) 推荐(0)
摘要:Input: num1 = “123”, num2 = “456” Output: “56088” pay attention: w... 阅读全文
posted @ 2020-06-12 08:02 EvanMeetTheWorld 阅读(11) 评论(0) 推荐(0)
摘要:input: [1,2,3] output:[1,3,2] the general idea of this problem is:... 阅读全文
posted @ 2020-06-12 06:31 EvanMeetTheWorld 阅读(20) 评论(0) 推荐(0)
摘要:input: [1,2,3] output:[1,3,2] the general idea of this problem is:... 阅读全文
posted @ 2020-06-12 06:31 EvanMeetTheWorld 阅读(16) 评论(0) 推荐(0)
摘要:this is a problem tagged with “easy”, but problem like this, may c... 阅读全文
posted @ 2020-06-12 04:30 EvanMeetTheWorld 阅读(13) 评论(0) 推荐(0)
摘要:this is a problem tagged with “easy”, but problem like this, may c... 阅读全文
posted @ 2020-06-12 04:30 EvanMeetTheWorld 阅读(20) 评论(0) 推荐(0)
摘要:LC33 Search in Rotated Array LC81 Search in ROtated Array2 LC153 F... 阅读全文
posted @ 2020-06-11 22:42 EvanMeetTheWorld 阅读(18) 评论(0) 推荐(0)
摘要:LC33 Search in Rotated Array LC81 Search in ROtated Array2 LC153 F... 阅读全文
posted @ 2020-06-11 22:42 EvanMeetTheWorld 阅读(17) 评论(0) 推荐(0)
摘要:Reverse idea can produce so many problems. like reverse String, re... 阅读全文
posted @ 2020-06-10 04:22 EvanMeetTheWorld 阅读(21) 评论(0) 推荐(0)
摘要:Reverse idea can produce so many problems. like reverse String, re... 阅读全文
posted @ 2020-06-10 04:22 EvanMeetTheWorld 阅读(18) 评论(0) 推荐(0)
摘要:reverse nodes by K as a group first, let’s try to use recursion me... 阅读全文
posted @ 2020-06-10 03:23 EvanMeetTheWorld 阅读(14) 评论(0) 推荐(0)
摘要:reverse nodes by K as a group first, let’s try to use recursion me... 阅读全文
posted @ 2020-06-10 03:23 EvanMeetTheWorld 阅读(17) 评论(0) 推荐(0)
摘要:very simple problem, just be carefully and elegant public class So... 阅读全文
posted @ 2020-06-09 10:48 EvanMeetTheWorld 阅读(15) 评论(0) 推荐(0)
摘要:very simple problem, just be carefully and elegant public class So... 阅读全文
posted @ 2020-06-09 10:48 EvanMeetTheWorld 阅读(12) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/sum-of-subarray-minimums/discuss/178... 阅读全文
posted @ 2020-06-09 09:54 EvanMeetTheWorld 阅读(19) 评论(0) 推荐(0)
摘要:https://leetcode.com/problems/sum-of-subarray-minimums/discuss/178... 阅读全文
posted @ 2020-06-09 09:54 EvanMeetTheWorld 阅读(20) 评论(0) 推荐(0)
摘要:LC316 and LC1081 are essentially the same. Given a string which co... 阅读全文
posted @ 2020-06-09 09:47 EvanMeetTheWorld 阅读(32) 评论(0) 推荐(0)
摘要:LC316 and LC1081 are essentially the same. Given a string which co... 阅读全文
posted @ 2020-06-09 09:47 EvanMeetTheWorld 阅读(22) 评论(0) 推荐(0)
摘要:Given a 2D binary matrix filled with 0’s and 1’s, find the largest... 阅读全文
posted @ 2020-06-08 11:49 EvanMeetTheWorld 阅读(17) 评论(0) 推荐(0)
摘要:Given a 2D binary matrix filled with 0’s and 1’s, find the largest... 阅读全文
posted @ 2020-06-08 11:49 EvanMeetTheWorld 阅读(20) 评论(0) 推荐(0)
摘要:Coin Change2: use limit kind of coins and infinite number of coins... 阅读全文
posted @ 2020-06-08 01:01 EvanMeetTheWorld 阅读(15) 评论(0) 推荐(0)
摘要:Coin Change2: use limit kind of coins and infinite number of coins... 阅读全文
posted @ 2020-06-08 01:01 EvanMeetTheWorld 阅读(26) 评论(0) 推荐(0)
摘要:LC769 Max Chunks To Make Sorted this is kind of odd problem, and I... 阅读全文
posted @ 2020-06-07 13:17 EvanMeetTheWorld 阅读(14) 评论(0) 推荐(0)
摘要:LC769 Max Chunks To Make Sorted this is kind of odd problem, and I... 阅读全文
posted @ 2020-06-07 13:17 EvanMeetTheWorld 阅读(23) 评论(0) 推荐(0)
摘要:now we are given a queue that consist of tuples, say (h, k), h sta... 阅读全文
posted @ 2020-06-07 05:32 EvanMeetTheWorld 阅读(15) 评论(0) 推荐(0)
摘要:now we are given a queue that consist of tuples, say (h, k), h sta... 阅读全文
posted @ 2020-06-07 05:32 EvanMeetTheWorld 阅读(19) 评论(0) 推荐(0)
摘要:the description of this problem is kind of vague. I will rephrase ... 阅读全文
posted @ 2020-06-07 02:38 EvanMeetTheWorld 阅读(15) 评论(0) 推荐(0)
摘要:the description of this problem is kind of vague. I will rephrase ... 阅读全文
posted @ 2020-06-07 02:38 EvanMeetTheWorld 阅读(16) 评论(0) 推荐(0)
摘要:LC239 Sliding window maximum: given a fixed length K of a sliding ... 阅读全文
posted @ 2020-06-05 08:46 EvanMeetTheWorld 阅读(20) 评论(0) 推荐(0)
摘要:LC239 Sliding window maximum: given a fixed length K of a sliding ... 阅读全文
posted @ 2020-06-05 08:46 EvanMeetTheWorld 阅读(24) 评论(0) 推荐(0)