Does there exists any function $f:\Bbb{R}\to \Bbb{R}$ such that $f$ is continuous on a dense $G_{\delta}$ subset of $\Bbb{R}$ and discontinuous almost everywhere on $\Bbb{R}$ ?
Attempt : (Yes)
We know the real line $\Bbb{R}$ can be decomposed into disjoint union of two small sets i.e $\Bbb{R}=N\cup M$ where $N$ is Lebesgue null and $M$ is meager (see here).
Since $\Bbb{R}$ is second category (non-meager) and $M$ is meager implies $N$ is of second category. Since complement of a first category set contains a dense $G_{\delta}$ subset of $\Bbb{R}$ , let $G\subset N$ a dense $G_{\delta}$ subset of $\Bbb{R}$.
According to this How to construct a real valued function which is continuous only on a given $G_\delta$ subset of $\mathbb{R}$? , we can construct a function which is continuous only on $G$ .
As $N$ is Lebesgue null and $G\subset N$ implies $m(G) =0$ . Hence $f$ is discontinuous everywhere.
Is my approach is correct ?
Edit: I can produce an explicit $G_{\delta}$ set of measure $0$.