Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Retrieve information about Wolfram Challenges
| ResourceFunction["WolframChallengesData"][] gets a Dataset containing information about all published Challenges. | |
| ResourceFunction["WolframChallengesData"]["request"] gets data specified by "request". | 
| "Challenges" | gets the titles of available Challenges | 
| "Keys" | gets the available keys | 
| "Profile" | gets the profile data for the current user | 
| "Leaderboard" | gets leaderboard data for Challenges | 
| "Challenges" | All | which Challenges to get | 
| "Keys" | Automatic | the properties of the Challenges | 
| "IncludeImages" | True | whether to include profile images in the response | 
Get a Dataset containing Challenge information:
| In[1]:= | ![ResourceFunction["WolframChallengesData"][]](https://www.wolframcloud.com/obj/resourcesystem/images/6e3/6e3c9597-57ca-4d97-864d-db74c0a7e909/5217fdfc49128656.png) | 
| Out[1]= |  | 
Get your Challenges profile information:
| In[2]:= | ![ResourceFunction["WolframChallengesData"]["Profile"]](https://www.wolframcloud.com/obj/resourcesystem/images/6e3/6e3c9597-57ca-4d97-864d-db74c0a7e909/73671f8a95eff5fa.png) | 
| Out[2]= |  | 
Find the most recently published Challenge:
| In[3]:= | ![MaximalBy[ResourceFunction["WolframChallengesData"][], #Date &]](https://www.wolframcloud.com/obj/resourcesystem/images/6e3/6e3c9597-57ca-4d97-864d-db74c0a7e909/12a276aeb093189c.png) | 
| Out[3]= |  | 
Find the most popular Challenge:
| In[4]:= | ![MaximalBy[
 ResourceFunction["WolframChallengesData"][], #SubmissionCount &]](https://www.wolframcloud.com/obj/resourcesystem/images/6e3/6e3c9597-57ca-4d97-864d-db74c0a7e909/6e18ed022f959ef7.png) | 
| Out[4]= |  | 
Find Challenges that have been solved by the currently connected user:
| In[5]:= | ![solvedByMe = Select[ResourceFunction["WolframChallengesData"][], #SolvedByMe &]](https://www.wolframcloud.com/obj/resourcesystem/images/6e3/6e3c9597-57ca-4d97-864d-db74c0a7e909/6806ae92dd79bb04.png) | 
| Out[5]= |  | 
See the number of Challenges you've solved over time:
| In[6]:= | ![DateListPlot@
 MapIndexed[{#1, First[#2]} &, Sort@Lookup[Values@Normal@solvedByMe, "FirstSolvedByMe"]]](https://www.wolframcloud.com/obj/resourcesystem/images/6e3/6e3c9597-57ca-4d97-864d-db74c0a7e909/524291526735b97c.png) | 
| Out[6]= |  | 
Get a random Challenge that you haven't solved yet:
| In[7]:= | ![RandomChoice@
 Select[ResourceFunction["WolframChallengesData"][], ! #SolvedByMe &]](https://www.wolframcloud.com/obj/resourcesystem/images/6e3/6e3c9597-57ca-4d97-864d-db74c0a7e909/2cd3a8de3737b187.png) | 
| Out[7]= |  | 
Click the Open button to start working on the Challenge:

With "IncludeImages" set to True, profile images will be included in the data:
| In[8]:= | ![ResourceFunction["WolframChallengesData"]["Leaderboard", "Challenges" -> "Aliquot Sequence", "IncludeImages" -> True]](https://www.wolframcloud.com/obj/resourcesystem/images/6e3/6e3c9597-57ca-4d97-864d-db74c0a7e909/20a46b06442a75b9.png) | 
| Out[8]= |  | 
Set "IncludeImages" to False to return URLs instead:
| In[9]:= | ![ResourceFunction["WolframChallengesData"]["Leaderboard", "Challenges" -> "Aliquot Sequence", "IncludeImages" -> False]](https://www.wolframcloud.com/obj/resourcesystem/images/6e3/6e3c9597-57ca-4d97-864d-db74c0a7e909/3eaa65bc81d799fc.png) | 
| Out[9]= |  | 
Specify which Challenges to use:
| In[10]:= | ![ResourceFunction["WolframChallengesData"][
 "Challenges" -> {"Fizz Buzz", "Butterflied Strings"}]](https://www.wolframcloud.com/obj/resourcesystem/images/6e3/6e3c9597-57ca-4d97-864d-db74c0a7e909/68a4dec5869e7c2a.png) | 
| Out[10]= |  | 
Specify which keys to use:
| In[11]:= | ![ResourceFunction["WolframChallengesData"][
 "Keys" -> {"Description", "TrendingScore"}]](https://www.wolframcloud.com/obj/resourcesystem/images/6e3/6e3c9597-57ca-4d97-864d-db74c0a7e909/6b9fe03da5158eab.png) | 
| Out[11]= |  | 
Solve a random Challenge:
| In[12]:= | ![NotebookOpen@
 RandomChoice[
   ResourceFunction["WolframChallengesData"]["Keys" -> "Notebooks"]][
  "Notebooks", "Desktop"]](https://www.wolframcloud.com/obj/resourcesystem/images/6e3/6e3c9597-57ca-4d97-864d-db74c0a7e909/1037a4e9d7d247f2.png) | 
| Out[12]= |  | 

User-specific information will only be available if you are currently cloud connected:
| In[13]:= | ![CloudDisconnect[];
ResourceFunction["WolframChallengesData"]["Keys" -> "SolvedByMe"]](https://www.wolframcloud.com/obj/resourcesystem/images/6e3/6e3c9597-57ca-4d97-864d-db74c0a7e909/306bcbdea5d41f96.png) | 
| Out[14]= |  | 
Use CloudConnect to get your personalized information:
| In[15]:= | ![CloudConnect[];
ResourceFunction["WolframChallengesData"]["Keys" -> "SolvedByMe"]](https://www.wolframcloud.com/obj/resourcesystem/images/6e3/6e3c9597-57ca-4d97-864d-db74c0a7e909/3f69424416d248a4.png) | 
| Out[16]= |  | 
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License