Skip to content

Instantly share code, notes, and snippets.

View PrinceSinghhub's full-sized avatar
🎯
Focusing

Prince Singh PrinceSinghhub

🎯
Focusing
View GitHub Profile
@PrinceSinghhub
PrinceSinghhub / 📅 DSA Calendar 2025.md
Last active July 17, 2025 18:44
This roadmap is designed to cover all fundamental and advanced DSA topics systematically, allowing you to master patterns and algorithms before diving into hardcore problem-solving.

📅 DSA Calendar 2025


📌 DSA Plan (Day-Wise Breakdown)

Topic Days Importance Status
Arrays 10 ⭐⭐⭐⭐ Not Started
Two Pointer & Sliding Window 5 ⭐⭐⭐ Not Started
@PrinceSinghhub
PrinceSinghhub / 22 Key DSA Patterns with Must-Solve Problems! 💡.md
Last active June 22, 2025 07:03
After solving and observing many interview problems, I’ve identified key patterns that will help you solve them.

Problem-Solving Techniques and Patterns

1. Fast and Slow Pointer

Description: This technique uses two pointers moving at different speeds to solve problems involving cycles, such as finding the middle of a list, detecting loops, or checking for palindromes.

  • Linked List Cycle II
  • Remove nth Node from the End of List
  • Find the Duplicate Number
  • Palindrome Linked List
@PrinceSinghhub
PrinceSinghhub / Nginx Configuration.md
Created February 10, 2025 13:17
This document outlines the Nginx configuration used for `domain.com`. It includes basic server settings, proxy configurations, and security enhancements.

Here's a Markdown (.md) file detailing the Nginx setup:

# Nginx Configuration for domain.com

This document outlines the Nginx configuration used for `domain.com`. It includes basic server settings, proxy configurations, and security enhancements.

## Nginx Configuration

```nginx
@PrinceSinghhub
PrinceSinghhub / MongoDB Backup and Restore with mongodump and mongorestore.md
Created February 10, 2025 13:14
MongoDB Backup and Restore with mongodump and mongorestore

MongoDB Backup and Restore with mongodump and mongorestore

MongoDB provides convenient tools for creating backups and restoring data, essential for managing your databases effectively. In this article, we'll explore the use of mongodump for creating a database dump and mongorestore for restoring the data.

Creating a Database Dump with mongodump

The mongodump command allows you to create a dump of your MongoDB database. Here's the basic syntax:

mongodump --uri "mongodb+srv://<username>:<password>@cluster.mongodb.net/<dbname>"