-
Notifications
You must be signed in to change notification settings - Fork 889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrated knapsack article #105
Conversation
added article images (couldnt get path) added hero image (couldnt get path)
adding content slug
@jorqueraian Can you double check the syntax on the mathjax snippet starting on line 62? This is how it's currently appearing: |
Interesting. Im not sure why it isn't displaying correctly. just in case something was lost in an edit, here is what I have saved on my computer $$
k[i,j]=\left\{
\begin{array}{l}
\max(v_i+k[i-1,j-w_i],\, k[i-1,j]) & w_i \leq j\\
k[i-1,j] &\text{otherwise}\\
\end{array}
\right.
$$ this compiles correctly for me in stackedit. I'm not totally sure why this wouldn't work. Here is also an alternative solution using aligned instead of the array, and this also compiled correctly on my end. $$
k[i,j]=\left\{
\begin{aligned}
&\max(v_i+k[i-1,j-w_i],\, k[i-1,j]) &&w_i \leq j\\
&k[i-1,j] &&\text{otherwise}\\
\end{aligned}
\right.
$$ It could also be a problem with the additional whitespace I have added so maybe this works $$k[i,j]=\left\{\begin{array}{l}\max(v_i+k[i-1,j-w_i],\,k[i-1,j])&w_i\leq j\\k[i-1,j] &\text{otherwise}\\\end{array}\right.$$ If this solution still doesn't work I think an image of the equation would also be fine. Here is one with a transparent background |
Thanks @jorqueraian ! Wrapping the block in a div tag seemed to do the trick :) (more info here, if interested) |
(this PR was a different process) 馃
migrated knapsack article
added article images (couldnt get path)
added hero image (couldnt get path)