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



I implemented the solution in Python using Dictionary but I got TLE in the last subtask. Link of my solution.

I have used dynamic programming. I tried mapping the n-dimensional tuple to a value using in-built dictionary.

Please help why I am getting TLE.

Please Help is it due to python or due to dictionary or n-dimensional tuple or some optimization mistake ??

asked 25 Jan '15, 20:32

the65bit's gravatar image

accept rate: 13%

edited 19 Feb '15, 22:03

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: 25 Jan '15, 20:32

question was seen: 1,038 times

last updated: 19 Feb '15, 22:03