6 kyu
Shortest code: Bug in Apple
473myjinxin2015
Description:
shortest code: Bug in Apple
(Code length limit: 80 chars)
This is the challenge version of coding 3min series. If you feel difficult, please complete the simple version
Task
Find out "B"(Bug) in a lot of "A"(Apple).
There will always be one bug in apple, not need to consider the situation that without bug or more than one bugs.
input: string Array apple
output: Location of "B", [x,y]
Code length calculation
In javascript, we can't get the user's real code, we can only get the system compiled code. Code length calculation is based the compiled code.
For example:
If you typed sc=x=>x+1
after compile, it will be:sc=function(x){return x+1;}
Series
- Bug in Apple
- Father and Son
- Jumping Dutch act
- Planting Trees
- Reading a Book
- Eat watermelon
- Special factor
- Symmetric Sort
- Are they symmetrical?
- Guess the Hat
- Find the murderer
- Give me the equation
- Balance Attraction
- Max Value
- Regular expression compression
- Remove screws I
- Remove screws II
- Collatz Array(Split or merge)
- Trypophobia
- Virus in Apple
- Waiting for a Bus
- Tidy up the room
Puzzles
Games
Restricted
Similar Kata:
Stats:
Created | Mar 28, 2016 |
Published | Mar 28, 2016 |
Warriors Trained | 991 |
Total Skips | 16 |
Total Code Submissions | 6920 |
Total Times Completed | 473 |
JavaScript Completions | 473 |
Total Stars | 18 |
% of votes with a positive feedback rating | 94% of 122 |
Total "Very Satisfied" Votes | 110 |
Total "Somewhat Satisfied" Votes | 9 |
Total "Not Satisfied" Votes | 3 |