ahmadexe's blog

By ahmadexe, history, 4 days ago, In English

So I am a newbie in DFS and BFS, and was solving this problem. Surprisingly, giving TLE in 3rd testcase. I can't seem to understand where code is inefficient since time complexity is looking fine to me.

I have added some comments, which don't use the ideal terminologies but would hopefully convey what I'm trying to do

https://codeforces.net/contest/1948/submission/267884593

Full text and comments »

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

By ahmadexe, history, 6 days ago, In English

Sublime randomly stops indenting on new line and cursor starts pointing onto first character of the line instead of continuing indent. Since I am using a snippet, when I press tab to reintroduce the indentation, the tab actually moves my cursor to the end. (see video) https://www.youtube.com/watch?v=2jljt4HbwGc (issue on 29 sec) Happens on line 14

This behavior happens randomly. Also with simple declarations and even calling out functions. No idea why it happens. I don’t have much idea with indentation settings, please let me know which configuration is right one for C++ competitive programming

Here is my sublime preferences file

Full text and comments »

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

By ahmadexe, history, 3 months ago, In English

Hi all! My school is starting a CP Club but unfortunately we have no mentor right now. I understand that all the guidance is available on the internet, but our school wants us to host a live session with someone in order to increase engagement. So we need someone to give an introductory session of 20-30 minutes about basic fundamentals of competitive programming, what the journey is like, motivation, maybe share your journey. We can coordinate and host the session, and I can prepare the slides etc... If anyone is willing to be a mentor do DM me or comment below.

Full text and comments »

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