Dai Yue
Dai Yue
I had run into the same problem, and I used [the author's fix](https://github.com/dzenbot/DZNEmptyDataSet/commit/f5e7aee5db085b8c56247cea6d69babfd4938769) and solved the problem. Thanks dzenbot!
感谢反馈~ 我有空更新下:)
非主线程的 bug 已在 commit b8134cb 修复,非常感谢建议:) “log太长的时候会崩溃” 的问题我这边没有重现(HAMLogOutputWindow/demo/UnitTests/UnitTests.m 里的 case `testLongText`),可否提供一个能重现的 case?
哈哈,我猜 `var array = Int` 是 `var array : [Int] = []` 的意思吧?~ 不过用上面的代码会导致重复 >< 比如`[3,-2,4], 1`这个 case 得出来结果是 `[1, 0, 0, 1]`,正确应该是 `[1, 0]` 或者 `[0, 1]` 这样。其实 break...
如果是 `var array:[[Int]] = []` 的话,`array.append(contentsOf: [index,offset])` 这句就编不过了。改成了 `array.append([index,offset])`。 另外还有点小问题,比如这个 case :`[3,2,4], 6` 得出结果包括 `[0,0]` 实际应该只有 `[1,2]`,一个数是不能用两次的。加上 `if index != offset` 可以解决。 不过放在 leetcode 上测的时候,第 15 个 case 会超时,可以去 https://leetcode.com/problems/two-sum/...