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

浙公网安备 33010602011771号