Hello everyone! This post is meant to be an update-ish post, but after a month or so of searching, I finally stumbled across suitable workarounds for MathJax / LaTeX!
As you all know, LC's answer editor doesn't have in-built support for LaTeX (as of the time of writing), which can be quite troublesome for explaining math-based problems. I'm pleased to announce that the methods I have found seem reasonably formatted and easy to understand, making them (almost) as good as having in-built support for LaTeX!
Not convinced? Say I wanted to explain Pythagoras' Theorem to you. If a right triangle has known length a and breadth b, we can compute the hypotenuse c via:
http://latex.codecogs.com/png.image?\dpi{110}&space;a^2+b^2=c^2
! Or, maybe you're not impressed by such a simple equation. But this method comes in useful especially for more complicated equations, such as the Riemann sum formula, which can be defined ashttp://latex.codecogs.com/png.image?\dpi{110}&space;\int_{a}^{b}f(x)dx=\lim_{n\rightarrow\infty}\sum_{i=1}^{n}f(x_i)\Delta{x}
, wherehttp://latex.codecogs.com/png.image?\dpi{110}&space;\Delta{x}=\frac{b-a}{n}
andhttp://latex.codecogs.com/png.image?\dpi{110}&space;x_i=a+i\Delta{x}
.You can check out these math equations alongside other useful formatting tips and tricks on a previous post that I made on the General Discussion thread titled the Answer Formatting Cheatsheet. I know, this seems like shameless self-promotion on my part. But while my previous post was mainly targeted at new users, this post is meant for regular / long-time users as well who might have never known that MathJax in LC was possible at all (at least, I sure didn't). As such, if you liked the workarounds, please help me to spread the word to fellow leetcoders :)
Thank you for reading! Special thanks to @Zhaoqin_Li and @mayankar for their suggestions that led me to this discovery :)