hahaa. i see the confusing. Sorry i didnt explain it properly. What i meant by "Both planks cannot be overlapping each other." is that planks at the same level cannot be in the same start - end...
Type: Posts; User: ss1w
hahaa. i see the confusing. Sorry i didnt explain it properly. What i meant by "Both planks cannot be overlapping each other." is that planks at the same level cannot be in the same start - end...
Actually there is. There is an top/bottom region between (2, 5, 4),(4, 7, 3)
*assuming that the numbers are the actual planks
----2,3,4,5
--------4,5,6,7
---12,3
----2,3,4
...
the plank data is read from a junit test file which is in such format
public class HeightCalculatorTest {
@Test
public void basicTest() {
List<Position> plank = new...
Hi @GregBrannon, i notice that your constructor is set as(this.start = start). I am thinking you are assuming that my values will be literally <start,end,height>. However my input might be just...
Thanks GregBrannon. That is good to get me started.
Cheers
Hi @GregBrannon , just wondering how would the plank class look like ? what is confusing me is how can i extract a single value from the <start,end,height> list to compare and return the whole list...
I am working on a new project known as "construction building". I am pretty weak in java coding thus i am sincerely asking all of you to hold my hand and guide me step by step with the...