7 kyu
Strange mathematics
739 of 2,048LarisaOvchinnikova
Loading description...
Sorting
Arrays
Fundamentals
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.
This should not be 7kyu. It should be more like 5.
I made a Rust translation, please take a look!
Java translation :)
Approved.
This is the first 7 kyu problem I'm attempting. This seems like a huge jump in difficulty to me. Would you say this kata is normal for 7 kyu, or especially hard? If the first, I will need to go work on some more 8 kyus until I try this kata/other 7 kyus again. Thanks.
It's harder than most 7kyus. Katas that have been approved recently tend to be harder. Try sorting 7Kyu katas by a criteria other than "Newest" and see how difficult you find those.
Average Assessed Rank of this kata was 7 kyu, it ranked by users rating.
I'm not understanding how 'k' is supposed to work, like, why it should return 4 or 11??what is it that i'm not seeing it? I have translated to my native language and I still cannot understand it. pls someone show how easy this is!!
In array N find index K
if n = 11, the array of numbers is [1,2,3,4,5,6,7,8,9,10,11]. After ordering lexicographically, it will be [1, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9], and number 2 will be on forth position in this sequence, because numbering starts with 1.
You are looking for the position, not the index. The index in this case would be 3.