Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.94 KB

CLAUDE.md

File metadata and controls

33 lines (20 loc) · 1.94 KB

Each algorithm problem comes with solutions writen in different language: JS, C#, Java, Python and Go, each represents its own directory: JS - /javascript; C# - /csharp; Java - /java; Python - /python; Go - /go.

Exceptions:

  1. js is only for Javascript.

And under each language directory, it has directories on topics, like array, hash table, queue, string etc. Every algorithm solution should go into one of these topic directory.

You also need to write test cases for each algorithm solution. And each language also has its dedicated directory to hold test files. Test directories also follow the same directory structure by topics as its corresponding solution directory.

You also need to write documents for each algorithm solution. The documents are all in /docs directory and each markdown file includes all the algorithm docs based on the topic as it names.

Take Chunk Array in array.md for example.

Each algorithm doc should include below sections:

  • Title or Name (Chunk Array),
  • Description, which includes the link of the original algorithm (optional): Leetcode-2677, its difficulty [Easy] Other possible values are Medium and Hard. And followed by the text description of the algorithm.
  • Example.
  • Solution. Text explanation of the solution.
  • Implementation. Including the links to the corresponding solution files.

In the prompt I will give you the title or name of the algorithm, you should write the solutions in the language specified. If there is no particular language specified, just write the code in all languages available in the code base.

Artifact Design

Use bubble_sort.html as an example. Follow its layout, fonts, colors etc.

Something to keep in mind:

  1. Left panel is the chart animation
  2. Right panel is code, need to have the ability to select the languages which are implemented in this repository.
  3. Put the generated html under docs/demos and give its a proper name.