Skip to content

alloyking1/Data-structure-and-algorith

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Awesome! Having a GitHub repo to track your progress and solutions is a great idea. Here’s a creative, clean, and informative README for your repo, with a focus on your learning journey through data structures and algorithms in PHP and Golang:


Data Structures & Algorithms in PHP & Golang

Welcome to my Data Structures and Algorithms learning journey! 🚀 This repository contains solutions to daily challenges in both PHP and Golang. The goal is to improve problem-solving skills, explore different algorithms, and implement various data structures across two languages.

🗂️ Repository Structure

Each folder is organized by weeks, and inside each week, you’ll find solutions for daily challenges.

📂 week1/
    📂 day1/
        - reverse_string.php
        - reverse_string.go
        - merge_sorted_arrays.php
        - merge_sorted_arrays.go
        - README.md
    📂 day2/
    ...
📂 week2/
    ...

📝 Weekly Breakdown

Each week focuses on different concepts, gradually increasing in complexity to ensure a smooth, low-pressure learning curve.

  • Week 1: Core Data Structures (Arrays, Strings, Linked Lists, Stacks, and Queues)
  • Week 2: Sorting & Searching Algorithms
  • Week 3: Recursion, Dynamic Programming, and Greedy Algorithms
  • Week 4: Advanced Trees and Graph Algorithms

🌟 Week 1 - Day 1 Challenges

1. Reverse a String In-Place

  • Problem: Write a function that reverses a string in-place, without using any additional space for another string.
  • Solution:

2. Merge Two Sorted Arrays

  • Problem: Merge two pre-sorted arrays into one sorted array.
  • Solution:

💻 How to Run the Code

  • PHP:
    php filename.php
  • Golang:
    go run filename.go

🔗 Repo Motivation

The main idea behind this repo is to document progress and build a code reference library for common problems in both PHP and Golang. As I move through various levels of complexity, I aim to compare implementations and note the differences between how these languages approach data structures and algorithms.

Feel free to explore, star 🌟 the repo, or suggest improvements. Let’s learn together!

🤖 Author

Moses - A software developer passionate about exploring the intersection between PHP and Golang in the context of algorithms and data structures.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages