Блог пользователя chinesecoder

Автор chinesecoder, история, 5 лет назад, По-английски

Wowoowowoowowowoowowww.. someone please tell EnumerativeCombinatorics that I am his fan. feeling amazed to get a mentioned by him..... toooooooooooooo sweeett : ) ) )) ) ))

here he mentioned me : _ _ _ )) ) )

Полный текст и комментарии »

  • Проголосовать: нравится
  • -35
  • Проголосовать: не нравится

Автор chinesecoder, история, 5 лет назад, По-английски

Hello , does anyone know any good tutorials on tries and persistent tries ? can you please give me the source from where you study these two algorithms !

Thanks !

Полный текст и комментарии »

  • Проголосовать: нравится
  • -10
  • Проголосовать: не нравится

Автор chinesecoder, история, 5 лет назад, По-английски

The problem , 814c , my approach was , for each segment [l, r ] , check whether its possible to color it with at most m colors or not.

since there can be 26*n queries and n^2 segments , the solution will work in 26*n^3 which will give TLE .

The editorial mentions some prefix based approach but i couldn't understand the 2nd part , how its optimizing the solution .

How to reduce 26 * n ^3 to 26*n ^2 .

is there any dp solution possible to it . ?

Полный текст и комментарии »

  • Проголосовать: нравится
  • -14
  • Проголосовать: не нравится

Автор chinesecoder, история, 5 лет назад, По-английски

in problem d , jongmah , the editorial is dealing with types of at most 2 consecutive elements like i , i+1 , i+2 .

but where are the triplets which are in the form of i , i , i . how to deal with them . since we are not dealing with same triplets how it will give to correct answer , i couldn't understood the author's approach , can anyone elaborate it .

The author said "So we can assume that there are at most 2 triples of type [x,x+1,x+2] for each x." where triplets of x ,x ,x are gone ?

Полный текст и комментарии »

  • Проголосовать: нравится
  • -10
  • Проголосовать: не нравится

Автор chinesecoder, история, 5 лет назад, По-английски

Hello . Right now three platforms are best for competitive programming .

Codeforces **** Topcoder **** AtCoder

I will not ask about codeforces as its my personal favoirite . __ which is best among Topcoder and Atcoder with respect to you . Which is good for the practicing for ACM ICPC , Code Jam etc .

Your suggestions . or should i use both ? **** if anyone doesn't want to reply here he can DM me .

Полный текст и комментарии »

  • Проголосовать: нравится
  • -28
  • Проголосовать: не нравится

Автор chinesecoder, история, 5 лет назад, По-английски

why solving max flow problems which algorithm should i use ? dicnic or EK?

i heard dicnic is easier to code

Полный текст и комментарии »

  • Проголосовать: нравится
  • -26
  • Проголосовать: не нравится

Автор chinesecoder, история, 5 лет назад, По-английски

Please tell me how to install and use sublime for c++ . i use codeblocks but it crashes manytimes .

Полный текст и комментарии »

  • Проголосовать: нравится
  • -3
  • Проголосовать: не нравится

Автор chinesecoder, история, 5 лет назад, По-английски

suppose we are doing dfs on tree .

Your code here...

dfs(int current ,  int parent)
{
     for(auto child : v[current]
    {
        if(child == parent) continue ;
        dfs(child , current);
         code...
       what happens when we write something here. 
        
}
code .... 
And what happens when we write something here ... 

}

what are the difference between two above .

Please tell , i have difficulty in distinguishing between two

Полный текст и комментарии »

  • Проголосовать: нравится
  • -4
  • Проголосовать: не нравится

Автор chinesecoder, история, 5 лет назад, По-английски

where can i get the live stream of topcoder open 2018 ? does anyone know or share the link %

Полный текст и комментарии »

  • Проголосовать: нравится
  • +2
  • Проголосовать: не нравится

Автор chinesecoder, история, 5 лет назад, По-английски

Can anyone please help me in understanding what the problem is saying ... and also its approach

49E

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор chinesecoder, история, 6 лет назад, По-английски

Can a question which can be solved with dfs can also be solved with bfs if we use the right modifications and ideas¿

Полный текст и комментарии »

  • Проголосовать: нравится
  • -2
  • Проголосовать: не нравится

Автор chinesecoder, история, 6 лет назад, По-английски

Please provide some good editorials and link on segment trees..

Полный текст и комментарии »

  • Проголосовать: нравится
  • +11
  • Проголосовать: не нравится