摘要:
一、问题描述Description:Given two strings s and t, determine if they are isomorphic (同构).Two strings are isomorphic if the characters in s can be r... 阅读全文
摘要:
一、问题描述Description:Count the number of prime numbers less than a non-negative number, nHint: The number n could be in the order of 100,000 to ... 阅读全文
摘要:
一、题目描述描述:输入n个整数,输出其中最小的k个。输入:输入 n 和 k 输入一个整数数组输出:输出一个整数数组样例输入:5 21 3 5 7 2样例输出:1 2二、Top K问题对于 Top K 问题有很多种解法。解法一:排序相信很多人会首先想到这种方法,先把数组按升序/降序进... 阅读全文