This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################## | |
### Plugins | |
######################################################################## | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @plugin 'tmux-plugins/tmux-continuum' | |
set -g @plugin 'christoomey/vim-tmux-navigator' | |
# Themes | |
#set -g @plugin "alpharaoh/nord-tmux" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Download nvim | |
" curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage; chmod u+x nvim.appimage; mv ./nvim.appimage /usr/local/bin/nvim | |
" Clone this file to ~/.config/nvim/init.vim | |
" After finishing config, run nvim +PlugInstall | |
call plug#begin("~/.vim/plugged") | |
" Plugin Section | |
Plug 'folke/tokyonight.nvim', { 'branch': 'main' } | |
Plug 'scrooloose/nerdtree' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Time Complexity: O(N*W). | |
# As redundant calculations of states are avoided. | |
# Auxiliary Space: O(N*W). | |
# The use of 2D array data structure | |
#### Example | |
# 4 items | |
# football, W:5, V:10 | |
# vase, W:10, V:40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############ Conclusion: | |
# Normal wins every time in speed; by more than 180s at 200,000,000 turns (intel i5 4570R running on a single thread) | |
# That being said, generator method can be more useful and scalable in some situations | |
############ | |
from itertools import count | |
import time |