HaydarFakhoury's blog

By HaydarFakhoury, history, 5 weeks ago, In English

Recently, I purchased a new Macbook and installed c++ and visual studio code. However, whenever I run my code, I receive a warning message: "warning: range-based for loop is a C++11 extension [-Wc++11-extensions]" even though my code executes without any issues. Despite researching online, I was unable to find any useful tutorials or fixes for this issue. I have also attempted the solutions suggested by ChatGPT, but none of them have resolved the problem. Have you encountered a similar issue, and if so, could you please help?.

Full text and comments »

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

By HaydarFakhoury, history, 4 months ago, In English

How can I effectively think of potential test cases that might break my approach when solving competitive programming problems? I often find it challenging to identify test cases that could potentially challenge the correctness of my solution, even after finding an approach. As a result, I may think that my approach is correct, but there could actually be a test case that my solution does not handle correctly, which I failed to consider. How can I effectively find and consider these test cases?

Not sure If everyone has or had these struggles before but I've never seen anyone point it out. Could just be me, who knows.

Full text and comments »

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

By HaydarFakhoury, history, 4 months ago, In English

As a beginner in competitive programming, I struggle with mathematical problems. Would taking a course in discrete mathematics or any other related course help improve my mathematical knowledge and thinking abilities, considering my limited math background which only extends to high school level? PS I forgot most of the math I took in school anyway.

Full text and comments »

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

By HaydarFakhoury, history, 5 months ago, In English

Is it normal for beginners to take a lot of time to just read the problem and understand what the problem wants you to do? I'm having a hard time understanding the problem's description and I often give up and go directly to the editorial for help, I'm not even passing the first stage of understanding the problem let alone solving it!

Full text and comments »

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