Search:

Type: Posts; User: ss1w

Search: Search took 0.09 seconds.

  1. Re: Creating a data algorithum method that calculates the height difference

    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...
  2. Re: Creating a data algorithum method that calculates the height difference

    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
    ...
  3. Re: Creating a data algorithum method that calculates the height difference

    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...
  4. Re: Creating a data algorithum method that calculates the height difference

    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...
  5. Re: Creating a data algorithum method that calculates the height difference

    Thanks GregBrannon. That is good to get me started.



    Cheers
  6. Re: Creating a data algorithum method that calculates the height difference

    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...
  7. Creating a data algorithum method that calculates the height difference

    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...
Results 1 to 7 of 8