/Fix_My_Code_Challenge

this is alx project for fixing a cod challenge

Primary LanguageJavaScript

Fix My Code Challenge

Description

This repository contains solutions for the "Fix My Code Challenge." The challenge involves fixing code in various programming languages to address identified issues.

Table of Contents

  1. FizzBuzz
  2. Print Square
  3. Sort
  4. User Password
  5. Double Linked List

FizzBuzz

Problem Statement

The FizzBuzz program had an issue where "FizzBuzz" was not correctly printed for multiples of 3 and 5.

Solution

The issue has been fixed in the 0-fizzbuzz.py file. Now, the FizzBuzz program prints "FizzBuzz" for multiples of 3 and 5 as expected.

Print Square

Problem Statement

The JavaScript program for printing a square had issues with the loop, resulting in incorrect square printing.

Solution

The issue has been fixed in the 1-print_square.js file. Now, the program correctly prints a square of the given size.

Sort

Problem Statement

The Ruby program for sorting arguments had issues with its sorting logic.

Solution

The issue has been fixed in the 2-sort.rb file. Now, the program correctly sorts the provided arguments.

User Password

Problem Statement

The Python implementation of a User class had issues with the is_valid_password method.

Solution

The issue has been fixed in the 3-user.py file. Now, the is_valid_password method works as intended.

Double Linked List

Problem Statement

The C implementation of a double linked list had issues with its output.

Solution

The specific issues with the double linked list implementation have been addressed. Please refer to the code in the 4-delete_dnodeint directory for the corrected implementation.

How to Use

For each task, you can find the corrected code in the respective files. Follow the instructions in each file's comments to use the fixed code.

Author

[Aman Brhane]

License

This project is licensed under the MIT License.