摘要:
题目: Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. 给定两个排序的整数数组nums1和nums2,将nums2合并为nums1作为一个排序的数组。 Note: 阅读全文
摘要:
题目: A quadtree is a tree data in which each internal node has exactly four children: topLeft, topRight, bottomLeft and bottomRight. Quad trees are oft 阅读全文
摘要:
题目: Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search target in nums. If target exis 阅读全文
摘要:
题目: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and 阅读全文
摘要:
题目: Given a pattern and a string str, find if str follows the same pattern. 给定一个模式和一个字符串str,找到str是否遵循相同的模式。 Here follow means a full match, such that 阅读全文