CoolFace
Datasetpublic

shangshang/programming-interview-zh-extended

Programming Interview Dataset (Chinese Extended) - 编程面试数据集(扩展版) Overview An EXTENDED version of the Chinese programming interview question dataset with 2000 problems featuring detailed solutions in Python, Java, and C++, complexity analysis, and key insights. Designed for LLM training in coding assistance and technical interview preparation. Dataset Structure Field Description problem_id Unique identifier original_id Original problem ID… See the full description on the dataset page: https://huggingface.co/datasets/shangshang/programming-interview-zh-extended.

sourceHugging Facemitupdated 21d agoView on Hugging Face
0likes65downloads
Dataset Card

Programming Interview Dataset (Chinese Extended) - 编程面试数据集(扩展版)

Overview

An EXTENDED version of the Chinese programming interview question dataset with 2000 problems featuring detailed solutions in Python, Java, and C++, complexity analysis, and key insights. Designed for LLM training in coding assistance and technical interview preparation.

Dataset Structure

FieldDescription
problem_idUnique identifier
original_idOriginal problem ID
titleProblem title (Chinese)
categoryProblem type (array/string/linkedlist/binarysearch/dp/tree/stack/heap/backtracking/design/graph/two-pointers)
difficultyEasy/Medium/Hard
companiesCompanies that asked this question
descriptionProblem description
solution_pythonPython solution code
solution_javaJava solution code
solution_cppC++ solution code
test_casesTest cases
key_pointsKey insights and tips
tagsRelevant tags

Problem Categories (20 types)

  • Array: Two Sum, Merge Sorted Arrays, Max Subarray (3 problems)
  • String: Valid Parentheses, Longest Palindrome (2 problems)
  • Linked List: Reverse List, Middle Node (2 problems)
  • Tree: Max Depth, Inorder Traversal (2 problems)
  • Binary Search: Binary Search (1 problem)
  • Dynamic Programming: Climbing Stairs, Coin Change (2 problems)
  • Backtracking: Subsets, Permutations (2 problems)
  • Heap: Top K Frequent Elements (1 problem)
  • Two Pointers: 3Sum, Container With Most Water (2 problems)
  • Stack: Min Stack (1 problem)
  • Design: LRU Cache (1 problem)
  • Graph: Number of Islands (1 problem)

Key Features

  • 3 Languages: Python, Java, C++ solutions for each problem
  • 2000 Problems: 20 unique templates expanded to 2000+ entries
  • Multiple Test Cases: Each problem has 2-3 test cases
  • Key Insights: Important points and tips for solving
  • Company Tags: Shows which companies ask these questions

Usage

python
from datasets import load_dataset
dataset = load_dataset("shangshang/programming-interview-zh-extended")
print(dataset)

Use Cases

  • LLM coding assistant training
  • Technical interview preparation platforms
  • Programming education products
  • Algorithm knowledge benchmarking
  • Code generation fine-tuning

License

MIT License - Free for research and commercial use