Sort by

recency

|

4 Discussions

|

  • + 0 comments

    I hope you will get the solution from experts and we able to learn as well. I admire your valuable uk-dissertation.com review blog sharing and keep posting related information as well. The experts who want the programming help can avail online.

  • + 0 comments

    Rust solution completed.

    Okay, this is strange. I'm used to being the 10^3+ person to post to a discussion thread on HR. Is there really this few people who've done this challenge? Anyway, I just got a solution working - the array manipulation wasn't difficult. To get the minimal circle, I applied Welzl's Algorithm.

    In case anyone wants to take a look at my solution, it's here.

  • + 1 comment

    2 id l1 r1 l2 r2: Swap two consecutive fragments of the idth array, the first is from the lth1 number to the rth1, the second is from the lth2 number to the rth2;

    please explain with an example if possible

    • + 1 comment

      IMO, given array a[1..10] (also represented as a[1..1] + a[2..3] + a[4..5] + a[6..9]) and l1 = 2, r1 = 3, l2 = 6, r2 = 9, then after swapping array will be:

      a[1..1] + a[6..9] + a[4..5] + a[2..3]

      • + 1 comment

        I have one more question all the co-ordinates should be strictly inside?? as in they can be on circumference or not?? and if they can be. then in test case provided, the 1st 4 6 9 has co-ordinates as (6,6)(7,7)(8,8)(9,9) then the largest circle with minimal radius can be drawn with the centre as (15/2,15/2) and hence the radius is: 1.47 approx. how come that it is given as 2.12 and in the other case also this radius will be marginally greater.

        • + 0 comments

          for complete solution in python java c++ and c programming search for programs.programmingoneonone.com on google

  • + 1 comment

    In query of type 2, should we swap all elements of id'th array from l1 to r1 with elements from l2 to r2? Is r1-l1 == r2-l2 then?

    • + 0 comments

      Nope. Only constraint which it follows is:

      In the query of the type 2, 1 ≤ l1 ≤ r1 < l2 ≤ r2 ≤ N. 
      

      Consider it as remove these two segments from respective location and insert it at other's location.

No more comments