You are not logged in. Please login at to post your questions!


Help with Puchi and Luggage

I am trying to understand this problem: Puchi and luggage. I understand that it is using Inversion Count of merge sort. But here, in author's solution, I don't understand why the Frequency array is updated twice where as it should be updated only once during merging..

asked 09 Jan, 22:09

montycs's gravatar image

accept rate: 0%

edited 10 Jan, 22:00

Its better if you copy paste authors solution here. People who didnt solve the problem dont have access to it. Pasting it here will make it available to anyone willing to help.

(11 Jan, 00:41) vijju123 ♦♦5★
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 09 Jan, 22:09

question was seen: 331 times

last updated: 11 Jan, 00:41