Git Product home page Git Product logo

hardcore-rule's People

Contributors

0x2c7 avatar danhuynhdev avatar dautroc avatar duythinht avatar dzungdev avatar hieuk09 avatar hieutm211 avatar huydx avatar huytd avatar huyvohcmc avatar ldhnam avatar ledongthuc avatar linxgnu avatar longkt90 avatar lpvcpp avatar namtx avatar nhantv94 avatar philuu265 avatar ppthong avatar qcam avatar rubikill avatar runivn avatar tamnd avatar thupv avatar trietphm avatar trongbq avatar unrealhoang avatar vienvu89 avatar viethnguyen avatar vthang95 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hardcore-rule's Issues

[AlgoCollector] Testing mode

Source code: https://github.com/ruby-vietnam/hardcore-rule/tree/master/algorithms/collector

Background

  • When starting the algorithm collector, it merges pull requests and add a comment to the weekly report page

Problems

  • Sometimes, we need to test or verify features that we only want to check pull request scores and review final comments without merging or add any real comments.

Proposal

  • Add a variable environment to declare testing mode, suggestion: DEBUG_MODE
  • When DEBUG_MODE=true, the algorithm collector won't merge and delete any pull requests and add comments to the weekly report page
  • Other functions to calculate scores, printing debug console work normally.

[2021] Algorithm weekly report

Every week, we pick algorithm problems to solve and post them to this ticket.
At 00:00 on Sunday (VN time), we run an automation tool to merge solution PRs and collect scores. The score report will follow the problems.

Mapping of GitHub account and slack account is defined in https://github.com/ruby-vietnam/hardcore-rule/blob/master/algorithms/PARTICIPANTS.md

The source code of the automation tool is in https://github.com/ruby-vietnam/hardcore-rule/tree/master/algorithms/collector

Mapping of problem's level and the score is defined in this issue content.

Weekly problems are posted in this issue follow the format:

Weekly Problem: Season x - Week y

<Level>: <URL>
Easy: https://leetcode.com/problems/two-sum/
Medium: https://leetcode.com/problems/generate-parentheses/

Level - Score mapping:

*** Score mapping ***
Easy: 1
Medium: 2
Hard: 3
*** End score mapping ***

[AlgoCollector] Improve weekly problems comment picking

Source code: https://github.com/ruby-vietnam/hardcore-rule/tree/master/algorithms/collector

Background

  • Algorithm collector access Algorithm weekly report page to get "Weekly problems". It always expects the latest comment on the page as the latest problems of the current week.

Problems

  • Sometimes, we have to discuss or add comments on Algorithm weekly report page that makes the latest comment on the page is not the latest problems comment.

Proposal

  • When checking comments of Algorithm weekly report page, we check starting pattern "Weekly problem:" as first problems posts and assume it's problem's comments.
  • Algorithm collector use the latest comment that starts with "Weekly problem:" and expect it as the latest problems comment. Other comments without starting of "Weekly problem:", we skip it.
  • Trim space/tab to avoid typing problems.
  • Allows custom starting problem patterns from the variable environments. Default is "Weekly problem:"

[2022] Algorithm weekly report

Every week, we pick algorithm problems to solve and post them to this ticket.
At 00:00 on Sunday (VN time), we run an automation tool to merge solution PRs and collect scores. The score report will follow the problems.

Mapping of GitHub account and slack account is defined in https://github.com/ruby-vietnam/hardcore-rule/blob/master/algorithms/PARTICIPANTS.md

The source code of the automation tool is in https://github.com/ruby-vietnam/hardcore-rule/tree/master/algorithms/collector

Mapping of problem's level and the score is defined in this issue content.

Weekly problems are posted in this issue follow the format:

Weekly Problem: Season x - Week y

<Level>: <URL>
Easy: https://leetcode.com/problems/two-sum/
Medium: https://leetcode.com/problems/generate-parentheses/

Level - Score mapping:

*** Score mapping ***
Easy: 1
Medium: 2
Hard: 3
*** End score mapping ***

Last year report: #1408

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.