Skip to content

Small, interview-focused Java and Python code snippets that demonstrate core computer science concepts, common pitfalls, and frequently asked patterns.

Notifications You must be signed in to change notification settings

CynthiyaJohn/cs-interview-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

96 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧩 CS Interview Snippets

Status Practice Concepts Last Commit Languages Repo Size

Daily interview preparation log
Java & Python Β· Small, focused code updates

Last updated as part of end-of-day practice.


🧠 What this repo is

  • Small, focused code snippets
  • One concept per file
  • Updated incrementally as part of ongoing preparation
  • Built for explainability, not scale

β˜• Java (covered over time)

  • Concurrency & thread safety
  • Race conditions, deadlock & starvation
  • Java Memory Model (volatile, visibility, happens-before)
  • Synchronization (synchronized, locks, atomics, semaphores)
  • Thread pools, executors & futures
  • Immutability, thread-local storage & JVM thread behavior
  • Lock-free vs lock-based coordination

🐍 Python (covered over time)

  • Mutability & object references
  • Default mutable argument pitfalls
  • Shallow vs deep copy behavior
  • Generators & lazy evaluation
  • GIL, threading & multiprocessing
  • Decorators, context managers & closures
  • Object identity, scope & memory behavior

πŸ” Maintenance

  • Concepts are added or refined as learning progresses
  • Existing snippets are improved for clarity and correctness
  • Focus remains on correctness and explainability

⚠️ Note

This repository is for learning and interview preparation,
not for production use.

About

Small, interview-focused Java and Python code snippets that demonstrate core computer science concepts, common pitfalls, and frequently asked patterns.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published