This is LeetCode problem 23: merge K sorted array.
The solution is to use heap to merge sub array.
I provide three kinds of solution. Use the second solution to pass LeetCode.
This is LeetCode problem 23: merge K sorted array.
The solution is to use heap to merge sub array.
I provide three kinds of solution. Use the second solution to pass LeetCode.
I want to link my web site and github to linkedin, but I found a missing site thumbnail.
To fix that, I need to add tag like
<meta property="og:image" content="image url" />
in gatsby project > components > seo.js.
Since both title and description are data loaded from gatsby-config.js.
So I try to add image into configuration. However, the image path can not be transpiled correctly.
The correctly way to do that is import image:
After redo, I have thumbnail shown now.
Few lessons I learned when I deployed react apps.
heroku buildpacks:set mars/create-react-app -a <appname>
at=error code=H14 desc="No web processes running" method=GET path="/"
heroku ps:scale web=1
"homepage": "http://mywebsite.com/relativepath"
Login
heroku login
Logs
heroku logs -a [app name] --tail
heroku logs -app [app name] --tail