LeetCode 3875 solution explained: an interesting coding problem
Today, while solving the LeetCode Daily question, I faced a very weird problem - 3875. Construct Uniform Parity Array I. What's weird about it is that it can be solved with just one line of code:
return true;
That's all.
To be honest, I've faced this kind of problem for the first time, and I don't really understand what skills this problem is supposed to test or why. There are no checks or conditions like if. There is only:
return true;
From my point of view, this problem may check only one thing: whether you know the Parity pattern or not.
class Solution {
public:
bool uniformArray(vector<int>& nums1) {
return true;
}
};