DCSekhara's blog

By DCSekhara, history, 22 months ago, In English

Suppose we are working in a setting where we only have integers and the operations that we are doing on them are multiply, add, subtract and comparisons between them

In such a scenario is it safe to replace all integers with doubles? (Safe in the sense of precision issues)

Full text and comments »

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

By DCSekhara, history, 4 years ago, In English

Can someone tell what are the compilation flags that you use in Windows-10 and also the compiler which you use. (The main thing I want is how to catch out of arrays accesses and similar stuff and catching exceptions..). You may also share your IDE if you want . Thanks Friends..

Full text and comments »

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

By DCSekhara, history, 4 years ago, In English

I have noticed that in geany(windows-10) '.' && '>' don't work properly.When we press the key once the respective character doesn't get printed on to the screen and we are required to press the key twice. And also '_'(underscores) aren't visible(they exist but are invisible for some reason). Can someone provide a solution to these problems. Any help is appreciated.

Full text and comments »

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

By DCSekhara, history, 4 years ago, In English

Can someone help me with this question Chef and Clothes? I am really missing some observations here in this question. Can someone help me to figure it out?

My Aproach: first of all I feel this is a D.P problem having states as where the bucket is and the number of clothes in the bucket.But I am not able to proceed further.

Full text and comments »

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

By DCSekhara, history, 4 years ago, In English

Recently I came across this blog Efficient and Easy segment trees. After reading this I felt that the normal implementation with 5 arguments is easier to understand and implement(in my opinion). I want to know which of the implementations of segment-tree is better so that if the one written in the blog is better I will try to learn it. (better in the sense that it can be easily be applied in some new question)

Full text and comments »

  • Vote: I like it
  • -19
  • Vote: I do not like it

By DCSekhara, history, 4 years ago, In English

Can someone help me with this question [](https://codeforces.com/contest/344/problem/C) I am able to solve the question but... in the question, it is said to minimize the number of resistors used. whereas I feel that there is only one unique way to build the given resistance. am I wrong?

Full text and comments »

  • Vote: I like it
  • -11
  • Vote: I do not like it