Message from C, C++ talks

July 2019

— 😆

— In c++,
I have header file in which I have
static classname *obj;

I have cpp file in which I have
classname *object::obj = NULL

What is the meaning of above? Does anyone have encountered like there in a codebase?

Message permanent page

— Hello, I need some help and guidance to solve challenge problem

— This is the problem


I guess it's static class variable. You wonder why there it's divided into two parts? or what exactly bothers you?

— This is my solution, but I receive a TLE

— Is this your homework?

— No, I'm improving my skils on C and I enter to a great website called Kattis.

— Lol

— So this is the assignment

— If I were you, I would check that the while loops are never being executed infinitely. Try them with different inputs

Message permanent page

— Also, there are lots of nested loops, so my guess that it has to high complexity

— If it's not infinity loops case

— Yes, but what I want is not problem solved, I want some guidance to better development strategies.

— Thanks mate!