While it’s best to give two weeks’ notice, there are situations where it may not be possible (e.g., personal emergencies or immediate new job requirements). In these cases, explain your situation respectfully in your resignation letter and offer assistance during the transition if possible.