Breadcrumb Generator, CodeWars Kata 자바 솔루션
Breadcrumb Generator, CodeWars Kata Breadcrumb Generator As breadcrumb menùs are quite popular today, I won't digress much on explaining them, leaving the wiki link to do all the dirty work in my place. What might not be so trivial is instead to get a decent breadcrumb from your current url. For this kata, your purpose is to create a function that takes a url, strips the first part (labelling it..
Sum by Factors, CodeWars Kata 자바 솔루션
Sum by Factors, CodeWars Kata Sum by Factors Given an array of positive or negative integers I= [i1,..,in] you have to produce a sorted array P of the form [ [p, sum of all ij of I for which p is a prime factor (p positive) of ij] ...] P will be sorted by increasing order of the prime numbers. The final result has to be given as a string in Java, C#, C, C++ and as an array of arrays in other lan..
Strip Comments, CodeWars Kata 자바 솔루션
Strip Comments, CodeWars Kata Strip Comments Complete the solution so that it strips all text that follows any of a set of comment markers passed in. Any whitespace at the end of the line should also be stripped out. Example: Given an input string of: apples, pears # and bananas grapes bananas !apples The output expected would be: apples, pears grapes bananas The code would be called like so: va..
Weight for weight, CodeWars Kata 자바 솔루션
Weight for weight, CodeWars Kata Weight for weight My friend John and I are members of the "Fat to Fit Club (FFC)". John is worried because each month a list with the weights of members is published and each month he is the last on the list which means he is the heaviest. I am the one who establishes the list so I told him: "Don't worry any more, I will modify the order of the list". It was deci..