Giter VIP home page Giter VIP logo

freddiev4 / dailyprogrammerchallenges Goto Github PK

View Code? Open in Web Editor NEW
312.0 20.0 64.0 1.94 MB

Bank of challenges & solutions from r/dailyprogrammer for people learning to program

Home Page: http://reddit.com/r/dailyprogrammer

License: MIT License

Python 20.13% C 48.87% Java 13.07% Ruby 1.91% JavaScript 5.34% Common Lisp 0.15% C++ 5.30% Go 0.48% Crystal 0.02% Elixir 0.16% Rust 0.95% Perl 1.77% D 0.63% MATLAB 0.69% R 0.27% Tcl 0.26%
reddit dailyprogrammer programming-challenges programming-exercise programming-languages

dailyprogrammerchallenges's Introduction

✨ Hello! ✨

Welcome to my GitHub profile! I'm working on a new project. Follow on Twitter for updates.

I build systems and dev tools for Machine Learning.

dailyprogrammerchallenges's People

Contributors

946336 avatar ahmeddhanani avatar ashkoree avatar assailantlf avatar buinvest avatar causztic avatar chipshop avatar colbygk avatar cwinsnes avatar danielgrijalva avatar doctorbeast avatar freddiev4 avatar hoekstraa avatar hoenn avatar ieabbas avatar jackzheng2496 avatar kbrgl avatar kritzware avatar matthires avatar mattmatheus avatar msmanek avatar ntucker1 avatar oldaccount123 avatar oz123 avatar rowmatrix avatar rurtle avatar tlgs avatar trytriangles avatar vaz-rodrigo avatar zardoz89 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dailyprogrammerchallenges's Issues

Repeat characters in transform.py

When running ./transform.py over all the directories, the directories that have already been modified get renamed again and add an extra character i.e. Challenge 0075 Easy - - Function Transformation/ or Challenge 0075 Easy - Function Transformation -/

Adding Table of Contents like list of the solutions to the challenges directory

Since we'll be having multiple solutions, possibly multiple per-language, I think it'd be nice / beneficial to have a table of contents like log of all of the solutions in the challenge directory, with a short description of the solution. This would encourage people to solve the solution different ways, and could prove a quick overview of the submitted solutions.

This listing could also include the solution author's name, as a quick view of everyone that contributed to that challenge.

For example, a solution that utilizes a quick sort could be submitted, and someone or even the same person could also upload a solution that utilizes a randomized quicksort.

I think it'd also make browsing the repo more user-friendly, as you could relatively easily get a feel for what kind of solutions have already been submitted without having to open every solution file.

Thoughts?

Reserved characters in directory names causing errors - Windows

When trying to clone the project (using: git clone https://github.com/FreddieV4/DailyProgrammerChallenges.git), I'm running in to errors that I think are due using a reserved character in a directory name. When I try and clone I get:

    fatal: cannot create directory at 'Easy Challenges/Challenge #0257 [Easy] In what year were most presidents alive?': Invalid argument

I've googled around, and found that windows has a bunch of reserved characters that cannot be used in directory names such as:

  • < (less than)
  • (greater than)

  • : (colon)
  • " (double quote)
  • / (forward slash)
  • \ (backslash)
  • | (vertical bar or pipe)
  • ? (question mark)
  • * (asterisk)

The question mark in "Challenge #0257 [Easy] In what year were most presidents alive?" needs to be removed, and I'd gladly do it myself but I can't clone the project to fix it.

Create "How to Contribute" Section

Create a section for people to contribute and add solutions to different challenges. Include How to Contribute with guidelines/formatting criteria.

File naming for open-ended solutions

Hello! Just got here from r/ruby and decided to poke around the repository. I've noticed that some challenges e.g.

https://github.com/FreddieV4/DailyProgrammerChallenges/tree/master/Easy%20Challenges/Challenge%20%230002%20%5BEasy%5D

Are open-ended and the contribution guidelines doesn't cover challenges of this nature; the calculator application can be anything from calculating acceleration to weight of an object, for instance.

We should have a naming convention for these types of challenges too!

Replace 'Trash' in Selftext

The challenge_text.md file of some challenges contain trash in it due to some encoding errors while pulling the selftext from the respective r/dailyprogrammer post.

Challenges Containing Trash:

- Easy Challenges/Challenge # 241 [easy] Unicode Chess/challenge_text.md
- Easy Challenges/Challenge #114 [Easy] Word ladder steps/challenge_text.md

  • Easy Challenges/Challenge #166b [Easy] Planetary Gravity Calculator/challenge_text.md
  • Easy Challenges/Challenge #214 [Easy] Calculating the standard deviation/challenge_text.md
  • Extra-Bonus Challenges/Challenge #207 [Bonus] Erdos Number Calculator/challenge_text.md
    -Hard Challenges/Challenge # 241 [Hard] Chess Puzzle solver/challenge_text.md
  • Hard Challenges/Challenge #121 [Hard] Medal Management/challenge_text.md
  • Hard Challenges/Challenge #129 [Hard] Baking Pi/challenge_text.md
  • Hard Challenges/Challenge #208 [Hard] The Universal Machine/challenge_text.md
  • Hard Challenges/Challenge #248 [Hard] NotClick game/challenge_text.md
  • Hard Challenges/Challenge #50 [difficult]/challenge_text.md
  • Intermediate Challenges/Challenge # 241 [intermediate] ascii Bitmap Chess/challenge_text.md
    - Intermediate Challenges/Challenge #184 [Intermediate] Radioactive Decay/challenge_text.md
    - Intermediate Challenges/Challenge #38 [intermediate]/challenge_text.md
    - Easy Challenges/Challenge #213 [Easy] Cellular Automata - Rule 90/challenge_text.md

Don't update repo if challenge exists

Every M/W/F, the repository is updated with that day's E/I/H challenge; this assumes that, on all three days, there is a new challenge. Some week's there are not three challenges, just one or two. If this occurs, the script will end up pulling a second copy of the already existing challenge(s) and won't move them into the correct directory, and keep them in the parent directory.

The scripts should be updated such that if the challenge already exists, the repeat challenge will be removed; this would either be invoked by an error or by cross-checking pulled challenge names with existing ones (though the latter would be much more expensive)

Challenges that are tightly coupled with input files

The contributing guidelines don't specify what should be done for challenges that are tightly coupled with input files. Example of one is [Intermediate] no.19 which links to text file needed for the program. Should these type of files just be included in the folder for the challenge?

Wrong name of Easy Challenge #266 folder.

This week's easy challenge has a : in the name of the folder, which causes some problems as we can't have : in a folder name.

The sequence \/:?*"<> should be ignored in folders name.

Fix Filenames with Encoding Issues

Some files have encoding issues due to reserved characters in Windows/Linux. These files need to be renamed, and exclude these reserved characters.

Example:

Challenge #112 [Difficult]What a Brainf     # Asterisks
Challenge #131 [Easy] Who tests the tests      # Question Mark
Challenge #162 [Easy] Novel Compression, pt. 1 # Colon

Cleanup repo

Without the VPS, we don't need the shell scripts anymore; could also move them to an etc/ folder

Adjust Formatting for Directory Names

From CONTRIBUTING.md

Please use the following name format when creating a challenge directory:

Challenge #xxxx [Easy/Intermediate/Hard] Challenge Name

Example:

Challenge #0251 [Hard] ASCII Nonogram
Challenge #0254 [Intermediate] Finding Legal Reversi Moves
Challenge #0253 [Easy] Unconditional Loan Income

The challenges in Easy Challenges have this formatting, but the challenges in Intermediate Challenges && Hard Challenges do not currently follow this format.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.