diff --git a/.gitignore b/.gitignore index cb1711d17e2f8257527bbca69c8ef33ea6e6bbd8..c431bad6e4100d2ddd99101f41dd7a4f8e5504f5 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ tmp/ *.log node_modules/ *.lock +*.bak diff --git a/README-en.md b/README-en.md index bd1e7c6a3366651cd28fffc1fee08ba2883bd577..008fff4bf38ce56987b0faf2469755e48dd86dbb 100644 --- a/README-en.md +++ b/README-en.md @@ -17,10 +17,14 @@ [中文](./README.md) | English -# Leetcode teamed up +## Leetcode teamed up It also supports LintCode, nowcoder and Jiuzhang algorithm +### Progress + +[Count by Authors](countByAuthors.md) + ### Registration route Just create a issue or leave a message at the end of the [dreamylost's blog](https://dreamylost.cn) diff --git a/README.md b/README.md index 1f9f7c15e0aa655297361d5cb63c05290cfe8fc0..cc806b8b7b3440f6c469aaff2f46fec2001aa74d 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,14 @@ 中文 | [English](./README-en.md) -# Leetcode 组队刷题 +## Leetcode 组队刷题 同样支持 LintCode、牛客网、九章算法 +### 进度 + +[按人统计](countByAuthors.md) + ### 报名途径 提交 issue 或 [博客留言](https://dreamylost.cn) diff --git a/build_before_commit.sh b/build_before_commit.sh index 60f4b705cd335818aaa07fb26eb6227d22e1f3cf..31c0c78c77db7863886c966aed0589269ed316ed 100644 --- a/build_before_commit.sh +++ b/build_before_commit.sh @@ -46,4 +46,7 @@ do done # create article list -bash generate_art_list.sh > article_list.md \ No newline at end of file +bash generate_art_list.sh > article_list.md + +# count +bash countByAuthors.sh \ No newline at end of file diff --git a/countByAuthors.md b/countByAuthors.md new file mode 100644 index 0000000000000000000000000000000000000000..135e87fe4b06c275a090abcddcd7c1932c351e75 --- /dev/null +++ b/countByAuthors.md @@ -0,0 +1,23 @@ +Order by Join time +####Scala +dreamylost:=> 100 +sweeneycai:=> 17 + +####Java (match *.Java) +dreamylost:=> 324 + +ccccmaster:=> 3 + +poorguy:=> 1 + +wkk:=> 25 + +####Rust +dreamylost:=> 93 + +####Kotlin +dreamylost:=> 6 + +####Python +laozhang:=> 59 + diff --git a/countByAuthors.sh b/countByAuthors.sh new file mode 100644 index 0000000000000000000000000000000000000000..93baaba2218f4c45e870c2f3839c117589461add --- /dev/null +++ b/countByAuthors.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# TODO, generate this shell automatically +echo "Order by Join time" > countByAuthors.md + +echo "####Scala" >> countByAuthors.md +echo "dreamylost:=> "`find ./scala-leetcode/src/main/scala/io/github/dreamylost -name "Leetcode*.scala" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthosr.md +echo "sweeneycai:=> "`find ./scala-leetcode/src/main/scala/io/github/sweeneycai -name "Leetcode*.scala" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthors.md + + +echo "####Java (match *.Java)" >> countByAuthors.md +echo "dreamylost:=> "`find ./java-leetcode/src/main/java/io/github/dreamylost -name "*.java" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthors.md +echo "ccccmaster:=> "`find ./java-leetcode/src/main/java/io/github/ccccmaster -name "*.java" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthors.md +echo "poorguy:=> "`find ./java-leetcode/src/main/java/io/github/poorguy -name "*.java" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthors.md +echo "wkk:=> "`find ./java-leetcode/src/main/java/io/github/wkk -name "*.java" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthors.md + + +echo "####Rust" >> countByAuthors.md +dreamylostLeetcode=`find ./rust-leetcode/src -name "leetcode*.rs" | wc -l | awk '{print $1}'` +dreamylostInterview=`find ./rust-leetcode/src -name "interview*.rs" | wc -l | awk '{print $1}'` +echo "dreamylost:=> "$(($dreamylostLeetcode + $dreamylostInterview)) >> countByAuthors.md +echo "" >> countByAuthors.md + + + +echo "####Kotlin" >> countByAuthors.md +echo "dreamylost:=> "`find ./kotlin-leetcode/src/main/kotlin/io/github/dreamylost -name "Leetcode*.kt" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthors.md + + +echo "####Python" >> countByAuthors.md +echo "laozhang:=> "`find ./python-leetcode/laozhang -name "leetcode*.py" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthors.md + +## append \ No newline at end of file