Is it possible to view the raw markdown text of LC solutions?
If not, can someone explain how solutions like: https://leetcode.com/problems/reverse-integer/solution/ have "language tabs" (ex: C++, Java) at the top, and the copy button?
Edit: Figured it out. For anyone else wondering:
- Go to https://leetcode.com/playground/ and create a new playground
- Save your code in however many languages you use
- Click share (bottom right)
- (Optional) Turn on code snippet mode
- Copy the "embed" code and paste it in a leetcode comment. Ex: <iframe src="https://leetcode.com/playground/rWuvY2hN/shared" frameBorder="0" width="400" height="300">
Here is the result: