Skip to content

Instantly share code, notes, and snippets.

View RadhikaRJ's full-sized avatar
🎯
Coding: turning imagination into reality, one line at a time.

Radhika Joshi RadhikaRJ

🎯
Coding: turning imagination into reality, one line at a time.
View GitHub Profile
@RuolinZheng08
RuolinZheng08 / backtracking_template.py
Last active May 13, 2024 04:39
[Algo] Backtracking Template & N-Queens Solution
def is_valid_state(state):
# check if it is a valid solution
return True
def get_candidates(state):
return []
def search(state, solutions):
if is_valid_state(state):
solutions.append(state.copy())
@lmcneel
lmcneel / remove-node-modules.md
Last active May 31, 2024 09:29
How to remove node_modules after they have been added to a repo

How to remove node_modules

Create a .gitignore file

  1. Check for an existing .gitignore file in the project directory
ls -a