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.
https://www.postgresql.org/docs/13/functions-matching.html#POSIX-MATCHING-RULES
This comment is hidden because it contains spoiler information about the solution
Good articles, thank you, one of them pointed me in the right direction. This one helped me along them as well: https://www.essentialsql.com/recursive-ctes-explained/
After dealing mostly with ORMs and programmatic solutions of complex DB queries, this kata seemed confusing, but once solved, it's quite fascinating.
These articles helped me to resolve this kata:
https://www.citusdata.com/blog/2018/05/15/fun-with-sql-recursive-ctes/
http://blog.timothyandrew.net/blog/2013/06/24/recursive-postgres-queries/
Quotation of var $1 is mandatory. In the other case this script fails when file name contains spaces.
The -e switch is correct since directories and devices are files.
If so the insturutions should be updated to "regular file". I went with -e as well.
This comment is hidden because it contains spoiler information about the solution
distingiush -> should be distinguish
I also have the same problem in this kata and another few... Could someone explain what does error say? Why solution is incorrect when all rows are the same as in expected table?
Because the object is not just to have the number in the left wing be larger than the equivalent number in the right wing, but also to be as close as possible. So in your example
[79, 54, 35, 19, 25, 35]
is incorrect because79 - 35
is larger than79 - 54
, or to put it another way, the largest number in the array should always be on the left outermost, and the second largest should always be on the right outermost, and so on and so forth until you get to the minimum in the middle.:D :D :D Very good!
You did well: those functions are for wimps: real coder use
Math.pow()
even to check RegExes ;)C#-Translation kumited!
https://www.codewars.com/kumite/57db99ff2e4ec4fa0400006d
Please check and approve it! ;-)
The way you phrased the task gives away the solution.
To those unsure about the task, basically you are supposed to create a function that receives a number as its only argument and determines if that number is a cube number (e.g.
125
is a cube number because5 ** 3 == 125
).Loading more items...