Pitfall and overthinking of DEV

TeeTracker
2 min readJul 25, 2022

To be honest, as a writer of program code, it is indeed about fixing the problem of finding a good solution.

Not to make bugs or fixing defects in the program seems to be our vocation.

Many people think of a software engineer head as someone who knows logic and can “do math”, and they always seem to be trying to solve complex structures such as loops, boundary values, edge cases or extremes, or just “+” or “-” decisions.

However, in fact, they are overthinking the relationship between “technology” and “problems” or “phenomena”.

That is, “overthinking”, I even define it as a pitfall of the DEV world.

In fact, we all seem to really think too much, that “technology” is a means to solve the current reality, no one will use a few lines of code to solve the millennium problem, even if the year of the “windows” system or “DOS“ when encountering the “new millennium”, also had to be fixed through patches.

😆Note that this is my personal opinion, not prejudice and absolute theorem.

Thinking about this example, it took me a really long time to solve it, I mean >1.5 days, but the result was actually surprising, so I hope this will be the end of this article and leave a guess.

Task of PythonYou are given a polynomial P of a single indeterminate (or variable) X .  You are also given the values of X and K . Your task is to verify if P(X)==K .Constraints
All coefficients of polynomial P are integers, X and Y are also integers.
Input FormatThe first line contains the space separated values of X and K .
The second line contains the polynomial P.
Output Format for P(X)==K Print True if . Otherwise, print False.Example:Input:
1 4
x**3 + x**2 + x + 1
Output:
True

Enjoy thinking 😆 and try your best to solve this.

--

--