HOMIARA_RUBY's blog

By HOMIARA_RUBY, history, 3 hours ago, In English

How to solve this problem efficiently? Thanks in advance.

A complete weighted graph has N nodes. Source and End node is same (predefined). You can travel any node any times but not the source node. That means you can leave the source node just once. You want to maximise the sum of edge-weight. The sum of weight must not exceeds the pre given value M.

Determine the maximum sum and write the nodes sequentially.

Can you refer some similar problems so that i can examine the code/ algorithm.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By HOMIARA_RUBY, history, 8 years ago, In English

I'm learning OOP using Java. So you may find my question 'like dumb'. I have followed Java coders code like this not this. why? I thought Java has garbage collection system(not like destructor in C++) which is called randomly(As far I know). So creating lot of objects will result MLE(if no garbage collection is called during execution time and if an object take N space and we create M objects then it should take N*M space which may result MLE). So in Codeforces 'custom invocation' I tried to do experiment and see what happens. I did the same experiment in 'Ideone'. I found almost no difference (i thought M times larger for M objects) in terms of memory. Why?

I have asked the question here because Codeforces community is more responsive.

Full text and comments »

  • Vote: I like it
  • +2
  • Vote: I do not like it

By HOMIARA_RUBY, history, 9 years ago, In English

http://ideone.com/0MRF6u

how to solve this problem? I want to solve it but couldn't find any approach? no tutorial or source code is available. I spent enough time for it.

Full text and comments »

  • Vote: I like it
  • +4
  • Vote: I do not like it

By HOMIARA_RUBY, history, 9 years ago, In English

ACM ICPC DHAKA SITE REGIONAL CONTEST 2016 is going on.. for live standing https://algo.codemarshal.org/contests/ICPCDH2016/standings predict who will be the winner..

Full text and comments »

  • Vote: I like it
  • +12
  • Vote: I do not like it