nil的处理展示出消息机制的优越性,相对于函数调用的空指针处理。 ENTRY objc_msgSend # check whether receiver is nil teq a1, #0 itt eq moveq a2, #0 bxeq lr # save registers and load r ...
分类:
其他好文 时间:
2018-02-06 14:23:29
阅读次数:
194
219. Contains Duplicate IIGiven an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that ... ...
分类:
其他好文 时间:
2018-02-04 22:48:25
阅读次数:
249
You have 4 cards each containing a number from 1 to 9. You need to judge whether they could operated through *, /, +, -, (, )to get the value of 24. E ...
分类:
其他好文 时间:
2018-02-01 00:08:35
阅读次数:
184
In a given integer array nums, there is always exactly one largest element. Find whether the largest element in the array is at least twice as much as ...
分类:
其他好文 时间:
2018-01-31 01:04:52
阅读次数:
128
Palindrome Number 题解 题目来源:https://leetcode.com/problems/palindrome number/description/ Description Determine whether an integer is a palindrome. Do th ...
分类:
其他好文 时间:
2018-01-29 11:27:12
阅读次数:
181
Given three integers A, B and C in [ 263, 263], you are supposed to tell whether A+B C. Input Specification: The first line of the input gives the pos ...
分类:
其他好文 时间:
2018-01-28 12:43:10
阅读次数:
145
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Example 2: Note: ...
分类:
其他好文 时间:
2018-01-28 11:18:06
阅读次数:
131
Symmetric Tree 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/symmetric tree/description/ Description Given a binary tree, check whether it is a mirr ...
分类:
其他好文 时间:
2018-01-26 15:48:07
阅读次数:
112
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. 判断字符串是不是回文,最多可以删除字符串的一个元素来使它成为回文。 解决:从字符 ...
分类:
其他好文 时间:
2018-01-20 22:45:35
阅读次数:
202
Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), write a function to check whether these edges mak ...
分类:
其他好文 时间:
2018-01-20 10:57:58
阅读次数:
134