【ACM】大数阶乘 - Java BigInteger实现
大数阶乘 时间限制: 3000 ms | 内存限制:65535 KB 难度: 3 ...
Two Strings Are Anagrams
Write a method anagram(s,t) to decide if two strings are anagrams or not. Example Given s="abcd", t="dcab", re...
Compare Strings
题解 题 Two Strings Are Anagrams | Data Structure and Algorithm 的变形题。题目意思是问B中的所有字符是否都在A中,而不是单个字符。比如B="AABC"包含...
Anagrams
Given an array of strings, return all groups of strings that are anagrams. Example Given ["lint", "intl", "inl...
Reverse Words in a String
Question Given an input string, reverse the string word by word. For example, Given s = "the sky is blue",...
最大数
给定一个整数,从整数当中去掉k个数字,要求剩下数字形成的新整数尽可能小。 什么意思呢?让我们举几个栗子: 给定整数1593212,删去3个数字,新整数的最小情况是1212 给定整数30200,删去1个数字,新整数的最小情况是...
Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases....
Longest Palindromic Substring
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 100...