Contest language statistics


  • 2

    I was curious about the languages used by the top competitors. Here are some findings. I counted the languages of the submissions in the contests so far, checking the top 50/10/3/1 contestants in each contest.

    Top 50 contestants      Top 10 contestants    Top 3 contestants       Winners
    
    3893 57.04% cpp         934 66.24% cpp        298 70.45% cpp         82 58.16% cpp
    1680 24.62% java        271 19.22% java        76 17.97% java        27 19.15% java
    1077 15.78% python      166 11.77% python      37  8.75% python      24 17.02% python
      69  1.01% javascript   17  1.21% javascript   5  1.18% ruby         3  2.13% ruby
      52  0.76% csharp       11  0.78% c            5  1.18% javascript   3  2.13% javascript
      31  0.45% c             8  0.57% ruby         2  0.47% c            2  1.42% c
      12  0.18% ruby          3  0.21% csharp
      11  0.16% golang
    

    Details about the winners:

    LeetCode Weekly Contest 31     awice          python python python python
    LeetCode Weekly Contest 30     cuiaoxiang     cpp cpp cpp cpp
    LeetCode Weekly Contest 29     uwi            java java java java
    LeetCode Weekly Contest 28     rrrl8523690    cpp cpp cpp cpp
    LeetCode Weekly Contest 27     shik           ruby ruby cpp ruby
    LeetCode Weekly Contest 26     lympanda       cpp cpp cpp cpp
    LeetCode Weekly Contest 25     dreamoon       cpp cpp cpp cpp
    LeetCode Weekly Contest 24     saffah         cpp cpp cpp cpp
    LeetCode Weekly Contest 23     williamljb     cpp cpp cpp cpp
    LeetCode Weekly Contest 22     saffah         cpp cpp cpp cpp
    LeetCode Weekly Contest 21     saffah         cpp cpp cpp cpp
    LeetCode Weekly Contest 20     jzjsuper       java java java java
    LeetCode Weekly Contest 19     saffah         cpp cpp cpp cpp
    LeetCode Weekly Contest 18B    saffah         cpp cpp cpp cpp
    LeetCode Weekly Contest 18A    rrrl8523690    cpp cpp cpp
    LeetCode Weekly Contest 17     awice          python python python
    LeetCode Weekly Contest 16B    saffah         cpp cpp cpp
    LeetCode Weekly Contest 16A    rrrl8523690    cpp cpp cpp
    LeetCode Weekly Contest 15     haiwei624      cpp cpp cpp
    LeetCode Weekly Contest 14     tinylic        cpp cpp cpp cpp
    LeetCode Weekly Contest 13     awice          python python python python
    LeetCode Weekly Contest 12     mgch           cpp cpp cpp cpp
    LeetCode Weekly Contest 11     Bruno1         cpp cpp cpp cpp
    LeetCode Weekly Contest 10     tmt514         cpp cpp cpp cpp
    Smarking Algorithm Contest 4   nevergiveup    java java java java
    Smarking Algorithm Contest 3   nehcdnr        python python python python
    Smarking Algorithm Contest 2   lixx2100       java java java java
    Smarking Algorithm Contest     mgch           cpp cpp cpp cpp
    LeetCode Weekly Contest 9      zhichenggu     python python python python
    LeetCode Weekly Contest 8      anorange0409   cpp cpp cpp cpp
    LeetCode Weekly Contest 7      DancingSoul    cpp cpp cpp cpp
    LeetCode Weekly Contest 6      ts             javascript javascript cpp python
    LeetCode Weekly Contest 5      jzjsuper       java java java java
    LeetCode Weekly Contest 4      jzjsuper       java java java java
    LeetCode Weekly Contest 3      ts             c python javascript c
    LeetCode Weekly Contest 2      sensir         python python python
    Warm Up Contest                qjjjjjj        java java java
    

  • 0

    Hi Stefan,

    It's very interesting to know this stats. I am new here and curious how can I find this data so that I can play around with.


  • 0

    @LanTran I just browsed the site, watched my network activity, and saw that pretty much all data is fetched via REST API like https://leetcode.com/contest/api/list/ resulting in JSON. Then I wrote a little crawler.


  • 0

    Sweet! I just googled around to see if Leetcode provides any service like that officially. This way works too. Thank you.


  • 0

    @LanTran It took a while, though. I only found the language information in requests requesting one submission, so for those thousands of submissions... I sent thousands of requests.

    If you do this as well, I strongly recommend to cache all requests. Makes it easy and fast to reanalyze everything if you somehow want to. Also, it's nicer to the server :-)


  • 0

    0_1494203855471_Brute_62c7da_198684.jpg


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.