Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
这么深的评论你也能找到,人才!
卧槽...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
然而我就是一个缺乏常识的新手啊= =
輸入範圍決定複雜度,這是常識吧 ;-)
如果是求任意一項排列的話也不需要暴力,可以O(n)解決
首页惊现中文评论。
讲真,我花了挺久的时间看全排列的算法,头都大了。要不是后来看了之前的讨论说有O(1)解法我还真想不到怎么处理……
你以为打拼音我就不认识了?
你说的是:居然是找规律,哼!Am I right? ;-)
ju ran shi zhao gui lv heng!
Scary.
Well,I'm learning some other solutions and I will solve it soon,maybe.
The suggestion I can only give you is: Don't try to create an array of full permutation ;-)
Find a solvable way to solve it.
Error:heap of memory;
While the string is "abcdefghijkl",my JS solution causes error because the amount(12!=479001600) is too big.
How to solve it?