Fluid
  • Home
  • Archives
  • Categories
  • Tags
  • About

LC-hash

242. 有效的字母异位词1234567891011121314151617fun isAnagram(s: String, t: String): Boolean { val record = IntArray(26) // 存整数,就用整形数 s.toCharArray().forEachIndexed { _, char -> record
2022-05-21
DataStructure
#LEETCODE

fastjson

https://zonghaishang.gitbooks.io/fastjson-source-code-analysis/content/ FastJson为什么快https://tobebetterjavaer.com/gongju/fastjson.html#_05%E3%80%81%E6%88%91%E4%B8%BA%E4%BB%80%E4%B9%88%E5%BF%AB 为什么要进行序
2022-05-13

JVM-VALUE-DELIVER

再做leetcode时也遇到了,java时引用传递还是值传递的问题,这方面 指针就很清楚, https://segmentfault.com/a/1190000016773324 这里讲解很清楚 1. 基本数据类型的存储: A. 基本数据类型的局部变量 B. 基本数据类型的成员变量 C. 基本数据类型的静态变量 2. 引用数据类型的存储 A.基本数据类型的局部变量 定义基本数据类型的局
2022-05-05
JAVA
#JVM

LC-LinkedList

https://leetcode.cn/circle/discuss/jq9Zke/ 203. 移除链表元素迭代法12345678910111213fun removeElements(head: ListNode?, target: Int): ListNode? { val dummyHead = ListNode() dummyHead.next = head v
2022-05-04
#LEETCODE

LC-array

Array结构数组为什么从0开始. 123int foo[5] = {1,2,3,4,5};foo[0] *(foo + 0) // 因为c语言指针偏移量从0开始 12a[3][4]a[0][0], a[0][1] , a[0][2] , a[0][3] https://developer.51cto.com/article/649423.html LEETCODE 26
2022-05-02
DataStructure
#LEETCODE

Animation-Lottie

anim in RecycleView https://www.jianshu.com/p/af6df7e55834 https://developer.android.com/topic/libraries/architecture/lifecycle
2022-04-27
#anim

coroutie_channel6

channelThere are four types of channels Unlimited channel , Buffered channel , Rendezvous channel , Conflated channel Rendezvous channelBy default, a “Rendezvous” channel is created. 12345678910111213
2022-04-23
#coroutie

coroutie_operator4

先看小结 转换操作符 transform 限长操作符 take(2) 末端操作符 Collect tolist toset first single reduce fold 组合操作符 zip 展平流 flatmapconcat 连接模式 Flatmapmerge 合并模式 faltMapLatest 最新展平模式 流的异常处理 Try/ catch块 catch函数
2022-04-23
#coroutie

coroutie-flow5

如何表示多个值 挂起函数可以异步的返回单个值,但是该如何异步的返回多个计算好的值呢? 异步返回多个值的方案 集合 序列。挂起函数。Flow Flow 异步流 56异步返回多个值 集合 序列 挂起函数集合 , 序列 , 挂起函数 ,Flow 1234567891011121314151617181920212223242526 fun simpleList(): List<Int>
2022-03-20
Kotlin
#coroutie

Corouties_context

协程的上下文 P38 协程的上下文 P39 123456@Testfun `test CoroutineContext `() = runBlocking<Unit> { launch (Dispatchers.Default + CoroutineName("test")){ println("you are gr
2022-03-20
Kotlin
#coroutie
1…7891011…25

Search

Hexo Fluid