AMR-KELEG's blog

By AMR-KELEG, history, 7 years ago, In English

Could you please tell me how to solve problem B (Breaking Biscuits) in the gym contest http://codeforces.net/gym/101606 ?

Thanks

Full text and comments »

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

By AMR-KELEG, history, 7 years ago, In English

I can't solve this problem: http://www.spoj.com/HSPL09/problems/HS09NLG/

Can the problem somehow be reduced to NIM game?

Full text and comments »

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

By AMR-KELEG, history, 7 years ago, In English

I have lately learned how to use the LCA algorithm.

I am now wondering whether HLD can be used to solve problems that LCA can't solve or not?

What are your thoughts?

Thanks

Full text and comments »

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

By AMR-KELEG, history, 7 years ago, In English

(a % b) % c == (a%c) %b Is this statement true?

Full text and comments »

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

By AMR-KELEG, history, 7 years ago, In English

Hi all,

Does anyone have recommendations on how to add a link to my account on Codeforces to my Linkedin profile?

How can I mention my experience on Codeforces in an elegant way?

Thanks

Full text and comments »

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

By AMR-KELEG, history, 8 years ago, In English

Hi all,

Can you tell me how can i generate Random Prime Numbers in polygon using generators?

Thanks

Full text and comments »

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

By AMR-KELEG, history, 8 years ago, In English

Hi all,

I would like to know if there is a mathematical way to choose the appropriate value of epsilon given the maximum/minimum value of the x and y coordinates?

And will choosing a very small value of epsilon cause any sort of problems?

Full text and comments »

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

By AMR-KELEG, history, 8 years ago, In English

Hi guys,

I have always used the top-down approach of dynamic programming until i found that some questions require using the bottom-up (table method) to optimize memory and(or) time usage.

Could you please tell me what are these optimizations or provide a link to a blog post/website that explains it?

Thanks

Full text and comments »

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

By AMR-KELEG, history, 9 years ago, In English

I would like to know if implementing the trie using a Node struct(class) is considered a good way of implementing it in competitive programming.

I saw that some programmers use a multidimensional array to implement it which seems a bit confusing.

Thanks

Full text and comments »

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