We define a space $X$ by $$X=(S^2\times S^2)\cup_{\Delta} D^3$$ where $S^2$ is the $2$-sphere, $D^3$ is the $3$-disk, and $\Delta\colon S^2\to S^2\times S^2$ is the diagonal map, so we attach a $3$-cell to $S^2\times S^2$ using the diagonal.
I want to compute the (co)homology groups of this space, but I don't know how. I would say that this space is not a manifold since dimensions don't match, and it doesn't carry a CW structure, so I'm a bit lost. What do you think it would be the best strategy to solve this problem?
I'll sketch an argument using the Mayer-Vietoris sequence, which is a little more low-tech than Tyrone's answer, and fleshes out a comment by Anubhav Mukherjee. Let $U$ be a small open neighborhood of $S^2\times S^2$ in your adjunction space $X$ and let $V$ be the interior of the attached $D^3$. Then we have that $H_i(D^3)$ is trivial (let's take reduced homology). Also $U\cap V$ deformation retracts onto the diagonal $S^2$ inside $S^2\times S^2$. Our sequence becomes $$\to H_i(U\cap V)\to H_i(S^2\times S^2)\to H_i(X)\to H_{i-1}(U\cap V)\to$$ Since $H_i(U\cap V)=0$ unless $i=2$, we get that $H_k(S^2\times S^2)\to H_k(X)$ is an isomorphism for $k=1,3,4$. In the middle of the sequence we have $$0\to H_2(U\cap V)\to H_2(S^2\times S^2)\to H_2(X)\to 0.$$ Moreover, we explicitly know the map is induced by the diagonal so we can set things up so that $\mathbb Z\to\mathbb Z\oplus \mathbb Z$ by the diagonal $n\mapsto (n,n)$. So $H_2(X)\cong(\mathbb Z\oplus \mathbb Z)/\langle (n,n)\rangle\cong \mathbb Z$.