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.
Tests do not require a final dot.
Expected values
2nd level sorting order is to be the rental date, so I think this should better be sorted be the actual dates, not the strings, otherwise Nov 11th will be shown as "later" than Dec 12th.
Average and total values are the same in this dataset, as every job has only 1 person. Sorting should be done descending by highest average salary.
But the cashier is expected to be the last/ the one with the least salary of 14386.49, even though the astronomer is only receiving a measly salary of 10266.25.
My solution is passing without accounting for leap years, and I think that is ok for a beginner level kata.
If so, maybe you could change this date for the last sample test entry to 367?
--> host_software.insert(host: 'backup_server_1', software_title: 'Title1', install_date: Date.today - 366)
You could add to the description that "percentage of orders" only refers to the count of processed orders here, not to the combined total orders.
So the intention is to produce no row for a single vowel, and one empty row for each successive consecutive vowel?
Trying to make sense of what is expected in terms of sorting. This is what is expected (only showing two dates here):
If I repeat the above "attempt" to log the data for Ryu until I get a dataset that has Ryu in the expected top 6, the expected result for Ryu is: 42 wins, 11 losses, and his fight records are:
--> Here, there are 17 records with lost= 0, but only 11 are actually expected. So now we would need to exclude 6 fight records with lost= 0.
However, of those 17, 7 have won= 1, and 10 have won= 2, which does not leave any way to proceed other than assuming lost= 1 would possibly mark a LOSS (which the description has ruled out).
#########################
I would consider this an ISSUE, but I cannot edit the label here...
Logging the countable results of one fighter in an "Attempt" with:
SELECT * FROM fighters WHERE name='Ryu' AND move_id> 3 ORDER BY lost;
results in:
The expected result for Ryu in this attempt is: Ryu wins: 43, Ryu lost: 14.
From this we can assume that all lost= 0 recordings mark a LOSS, and that won= 2 is not a DRAW, but a WIN with special points that have to be accounted for in the query. But if so, how would we arrive at 43?
As won= 1 has been declared as a regular win and lost= 0 seems to be counted as 1, it seems fair to think those five results with won= 1 should be counted as 1 each. That would mean the 9 won= 2 records had to be multiplied with some factor, but 43- 5= 38, and 38/ 9= 4,2222, which would be a bit odd. Are the data just broken here?
Understood, thank you!
even an empty function will result in no output. this is because
console.assert()
is disabled in the preloaded section (which is invisible to you until you solve the kata). many things are disabled or otherwise hijacked in this kata, i am not sure about why this method is disabled in particular.Dunno why this is a spoiler...
This comment is hidden because it contains spoiler information about the solution
I did it in 628. Then I realized there were free letters from the get-go. DandDangDang!
So calling two separate where-filters is a logical AND, while combining two where-filters in one where-call is an OR?
// SELECT studentName, teacherName FROM teachers, students WHERE teachers.teacherId = students.tutor AND tutor = 1
query().select(student).from(teachers, students).where(teacherJoin).where(tutor1).execute(); //[{"studentName":"Michael","teacherName":"Peter"}] <- AND filter
// SELECT * FROM number WHERE number < 3 OR number > 4
query().select().from(numbers).where(lessThan3, greaterThan4).execute(); //[1, 2, 5, 7] <- OR filter
Loading more items...