摘要:
##1 题目描述 ###1.1 英文描述 Given the root of a binary tree, check whether it is a mirror of itself (i.e., symmetric around its center). Example 1: Input: ro 阅读全文
摘要:
##1 题目描述 ###1.1 英文描述 Given a string s, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Example 1: Input: 阅读全文
摘要:
##1 题目描述 ###1.1 英文描述 Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target 阅读全文
摘要:
####实例代码 在数组array中查询元素x的下标。 // 在数组array中查询元素x的下标。n表示数组array的长度 int find(int[] array, int n, int x) { int i = 0; int pos = -1; for (; i < n; ++i) { if 阅读全文