Which x for that sum? Time : Space : 1234567#include <bits/stdc++.h>using namespace std;double solve(double m){ return (2 * m + 1 - sqrt(4 * m + 1)) / 2 / m;}