https://github.com/qasqot79/fix_my_code_challenge
0x00. Fix my code
https://github.com/qasqot79/fix_my_code_challenge
Last synced: 2 months ago
JSON representation
0x00. Fix my code
- Host: GitHub
- URL: https://github.com/qasqot79/fix_my_code_challenge
- Owner: qasqot79
- Created: 2023-02-13T13:30:19.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-16T18:39:39.000Z (over 2 years ago)
- Last Synced: 2025-01-18T09:52:46.790Z (4 months ago)
- Language: C
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fix_My_Code_Challenge
0x00. Fix my code
---------------------------------------------------------------------------------------
0. FizzBuzz
#advanced
Please take a look at my implementation of FizzBuzz in Python: source codeSomething is going wrong….
$ ./0-fizzbuzz.py 50
1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 Fizz 16 17 Fizz 19 Buzz Fizz 22 23 Fizz Buzz 26 Fizz 28 29 Fizz 31 32 Fizz 34 Buzz Fizz 37 38 Fizz Buzz 41 Fizz 43 44 Fizz 46 47 Fizz 49 Buzz
$
15 should print FizzBuzz not FizzRepo:
GitHub repository: Fix_My_Code_Challenge
Directory: 0x00-challenge
File: 0-fizzbuzz.py--------------------------------------------------------------------------------------------
1. Print square
#advanced
Please take a look at my implementation of printing a square in Javascript: source codeSomething is going wrong….
--------------------------------------------------------------------------------------------------
$ ./1-print_square.js 4
####
####
####
####
$ ./1-print_square.js 10
################
################
################
################
################
################
################
################
################
################
################
################
################
################
################
################
$
./1-print_square.js 10 should print a square of size 10…
------------------------------------------------------------------------------------------------------
Repo:GitHub repository: Fix_My_Code_Challenge
Directory: 0x00-challenge
File: 1-print_square.js
-------------------------------------------------------------------------------------------------------
2. Sort
#advanced
Please find here my implementation of sorting arguments in Ruby: source codeSomething is going wrong….
$ ruby 2-sort.rb 12 41 2 C 9 -9 31 fun -1 32
31
32
12
41
2
9
-9
-1
$
Repo:GitHub repository: Fix_My_Code_Challenge
Directory: 0x00-challenge
File: 2-sort.rb
-------------------------------------------------------------------------------------------------------------
3. User password
#advanced
Please find here my implementation of a User class in Python: source codeSomething is going wrong….
$ ./3-user.py
Test User
is_valid_password should return True if it's the right password
$
My tests should not print any error…Repo:
GitHub repository: Fix_My_Code_Challenge
Directory: 0x00-challenge
File: 3-user.py
-------------------------------------------------------------------------------------------------------------------
4. Double linked list
#advanced
Please find here my implementation of a Double linked list in C: source codeSomething is going wrong….
$ gcc -Wall -pedantic -Werror -Wextra -std=gnu89 main.c free_dlistint.c print_dlistint.c add_dnodeint_end.c delete_dnodeint_at_index.c -o delete_dnodeint
$ ./delete_dnodeint
0
1
2
3
4
98
402
1024
-----------------
0
1
2
3
4
0
402
1024
-----------------
1
2
3
4
0
402
1024
-----------------
2
3
4
0
402
1024
-----------------
3
4
0
402
1024
-----------------
4
0
402
1024
-----------------
0
402
1024
-----------------
402
1024
-----------------
-----------------
-----------------
-----------------
-----------------
-----------------
-----------------
-----------------
-----------------
-----------------
$
It doesn’t look right…Repo:
GitHub repository: Fix_My_Code_Challenge
Directory: 0x00-challenge
File: 4-delete_dnodeint/
----------------------------------------------------------------------------------------------------------------------------------------