@rscharfer Don't modify the passed argument inp
its kata can be solved O(N)
Draw the line with 'x' which connects the given points.
If the points are diagonal, a rectangle instead of diagonal line should be drawn
Regarding the points being diagonal, how can we verify this for a rectangle?
For a square, i.e. if the points are diagonal, we can verify with this formula:
this wouldn't apply for a rectangle
There is no point to return a double with less precision.
Confirm that the description is OK now.
In the example has solve("v") = True but not tested in Java Test Cases.
solve("v") = True
XD I guess writing normal solution is no fun
noob here. Math really confused me. However when I saw your solution, it really made sense in my brain. I guess it was how the equations were written in detail that got me afraid. Im guessing you didnt even put the third equation, recovered since it was not in the test??
This comment is hidden because it contains spoiler information about the solution
Also why The Wall blocks your way has no full stop but You do not have a ship to cross this sea.
The Wall blocks your way
You do not have a ship to cross this sea.
Ooh, that's a nice one! :]
Without that rule, I agree this is not a duplicate of that.
replace method never call regex engine this always replace substrings or chars...
#replaceAll and #replaceFirst methods in String class will call regex engine under hood.