5 kyu
Building a Sequence Cocatenating Digits with a Given Order.
130 of 193raulbc777
Loading description...
Fundamentals
Data Structures
Algorithms
Mathematics
Logic
Strings
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
I'm lost on how to go about this. How do I go about it
python new test framework is required. updated in this fork
Approved
can any one explain proc_seq(22, 22, 22, 22)) result: [1, 2222]
how does this work?
The sequence of numbers will have numbers of n digits only. Numbers formed by leading zeroes will be discarded.
-Auther has already explained in description
I need a bit of a headstart here? I can't just use itertools.permutations, but neither can I write a self prolonging nested for loop.
Does anyone have a bit of advice for me?
This kata claims to be compatible with Python 3, and it almost is, but the kata test cases don't quite work. Placing parentheses around the arguments to
print
will permit Python 3 submissions to work..
i like it! Thanx =)
Thanks for your time solving it! :)
Great kata. Challenging in Python for me. ;-)
Why is it only possible to solve with Python 2?
Glad you liked it!. I'll modify it soon to have it in both Py2 and Py3.
My python code passes the example tests but fails on the main tests with
File "", line 55 print "Result = " + str(result) ^ SyntaxError: invalid syntax
Any ideas?
Try with Python 2
Worked without modification on Python 2. Thanks for the quick reply. Another enjoyable Kata, I went for brute force which works as the there are not a great deal of number combinations.
Good solution! Clever(+1)