摘要:
Question Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index. 阅读全文
摘要:
Question There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank an 阅读全文
摘要:
Question Given two strings text1 and text2, return the length of their longest common subsequence. A subsequence of a string is a new string generated 阅读全文
摘要:
Question Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. 即求最长回文子串(注意和最长回文子序列的区别,子串 阅读全文
摘要:
Question Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Example 1: Input: 阅读全文
摘要:
执行python文件的时候有时候会出现这个报错: ImportError: dlopen: cannot load any more object with static TLS 原因有点奇怪,可能是因为import的包太多了 把你报错的那个包放到最前面import,或者多搞几个文件,每个文件少一些 阅读全文