Dataset Viewer
Auto-converted to Parquet Duplicate
messages
list
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an array of integers nums and an integer target, return indices of th...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given two non-empty linked lists representing two non-negative inte...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a string s, find the length of the longest substring without duplicat...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven two sorted arrays nums1 and nums2 of size m and n respectively, retur...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a string s, return the longest palindromic substring in s.\n\n### Exa...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a string s, return the longest palindromic substring in s.\n\n### Exa...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nThe string \"PAYPALISHIRING\" is written in a zigzag pattern on a given num...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a signed 32-bit integer x, return x with its digits reversed. If reve...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nImplement the myAtoi(string s) function, which converts a string to a 32-bi...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an integer x, return true if x is a palindrome, and false otherwise.\...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an input string s and a pattern p, implement regular expression match...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an input string s and a pattern p, implement regular expression match...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given an integer array height of length n. There are n vertical lin...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nSeven different symbols represent Roman numerals with the following values:...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nRoman numerals are represented by seven different symbols: I, V, X, L, C, D...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an integer array nums, return all the triplets [nums[i], nums[j], num...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an integer array nums of length n and an integer target, find three i...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a string containing digits from 2-9 inclusive, return all possible le...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a string containing digits from 2-9 inclusive, return all possible le...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an array nums of n integers, return an array of all the unique quadru...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven the head of a linked list, remove the nth node from the end of the li...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a string s containing just the characters '(', ')', '{', '}', '[' and...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given the heads of two sorted linked lists list1 and list2.\n\nMerg...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given the heads of two sorted linked lists list1 and list2.\n\nMerg...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven n pairs of parentheses, write a function to generate all combinations...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given an array of k linked-lists lists, each linked-list is sorted ...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a linked list, swap every two adjacent nodes and return its head. You...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a linked list, swap every two adjacent nodes and return its head. You...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an integer array nums sorted in non-decreasing order, remove the dupl...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an integer array nums and an integer val, remove all occurrences of v...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven two strings needle and haystack, return the index of the first occurr...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven two integers dividend and divisor, divide two integers without using ...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given a string s and an array of strings words. All the strings of ...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nA permutation of an array of integers is an arrangement of its members into...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a string containing just the characters '(' and ')', return the lengt...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nThere is an integer array nums sorted in ascending order (with distinct val...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an array of integers nums sorted in non-decreasing order, find the st...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a sorted array of distinct integers and a target value, return the in...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a sorted array of distinct integers and a target value, return the in...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nDetermine if a 9 x 9 Sudoku board is valid. Only the filled cells need to b...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nWrite a program to solve a Sudoku puzzle by filling the empty cells.\n\nA s...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nThe count-and-say sequence is a sequence of digit strings defined by the re...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an array of distinct integers candidates and a target integer target,...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an array of distinct integers candidates and a target integer target,...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a collection of candidate numbers (candidates) and a target number (t...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a collection of candidate numbers (candidates) and a target number (t...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an unsorted integer array nums. Return the smallest positive integer ...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven n non-negative integers representing an elevation map where the width...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven two non-negative integers num1 and num2 represented as strings, retur...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an input string (s) and a pattern (p), implement wildcard pattern mat...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given a 0-indexed array of integers nums of length n. You are initi...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an array nums of distinct integers, return all the possible permutati...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a collection of numbers, nums, that might contain duplicates, return ...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given an n x n 2D matrix representing an image, rotate the image by...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an array of strings strs, group the anagrams together. You can return...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an array of strings strs, group the anagrams together. You can return...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nImplement pow(x, n), which calculates x raised to the power n (i.e., xn).\n...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nThe n-queens puzzle is the problem of placing n queens on an n x n chessboa...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nThe n-queens puzzle is the problem of placing n queens on an n x n chessboa...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an integer array nums, find the subarray with the largest sum, and re...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an m x n matrix, return all elements of the matrix in spiral order.\n...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an m x n matrix, return all elements of the matrix in spiral order.\n...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given an integer array nums. You are initially positioned at the ar...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an array of intervals where intervals[i] = [starti, endi], merge all ...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given an array of non-overlapping intervals intervals where interva...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given an array of non-overlapping intervals intervals where interva...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a string s consisting of words and spaces, return the length of the l...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a positive integer n, generate an n x n matrix filled with elements f...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nThe set [1, 2, 3, ..., n] contains a total of n! unique permutations.\n\nBy...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven the head of a linked list, rotate the list to the right by k places.\...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nThere is a robot on an m x n grid. The robot is initially located at the to...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nThere is a robot on an m x n grid. The robot is initially located at the to...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nThere is a robot on an m x n grid. The robot is initially located at the to...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given an m x n integer array grid. There is a robot initially locat...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given an m x n integer array grid. There is a robot initially locat...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a m x n grid filled with non-negative numbers, find a path from top l...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a string s, return whether s is a valid number.\n\nFor example, all t...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given a large integer represented as an integer array digits, where...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven two binary strings a and b, return their sum as a binary string.\n\n#...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an array of strings words and a width maxWidth, format the text such ...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven a non-negative integer x, return the square root of x rounded down to...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are climbing a staircase. It takes n steps to reach the top.\n\nEach ti...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are climbing a staircase. It takes n steps to reach the top.\n\nEach ti...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given an absolute path for a Unix-style file system, which always b...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven two strings word1 and word2, return the minimum number of operations ...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an m x n integer matrix matrix, if an element is 0, set its entire ro...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an m x n integer matrix matrix, if an element is 0, set its entire ro...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given an m x n integer matrix matrix with the following two propert...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nYou are given an m x n integer matrix matrix with the following two propert...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an array nums with n objects colored red, white, or blue, sort them i...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven two strings s and t of lengths m and n respectively, return the minim...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven two integers n and k, return all possible combinations of k numbers c...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven two integers n and k, return all possible combinations of k numbers c...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an integer array nums of unique elements, return all possible subsets...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an integer array nums of unique elements, return all possible subsets...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an m x n grid of characters board and a string word, return true if w...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven an integer array nums sorted in non-decreasing order, remove some dup...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nThere is an integer array nums sorted in non-decreasing order (not necessar...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven the head of a sorted linked list, delete all nodes that have duplicat...
[ { "role": "system", "content": "You are a competitive programming assistant. Given a problem, its examples, and a required algorithm/technique, write a correct C++ solution." }, { "role": "user", "content": "### Problem\nGiven the head of a sorted linked list, delete all duplicates such that eac...
End of preview. Expand in Data Studio

C / C++ Code Corpus

Description

Teaches domain-specific instruction following and code generation for this expert.

Source

  • shareAI/CodeChat
  • Mxode/StackOverflow-QA-C-Language-40k
  • dumb-dev/cpp-10k
  • AmareshHebbar/leetcode-codegen-cpp

Formatted for the MoE-orchestrator project (https://github.com/michaelowusuntim6/MoE-orchestrator). Expert target: code_cpp.

Format

Each record is a JSON object with a messages field formatted for Qwen3.5's native chat template:

{"messages": [
  {"role": "system", "content": "..."},
  {"role": "user", "content": "..."},
  {"role": "assistant", "content": "..."}
]}

The records are consumed via tokenizer.apply_chat_template(). Special tokens (<|im_start|>, <|im_end|>) are added by the template, never embedded in content.

Splits

  • train: 33,419 records
  • val: 712 records

Usage

from datasets import load_dataset
ds = load_dataset("michaelowusuntim6/cpp-qwen35", split="train")
print(ds[0]["messages"])

License

mixed. Upstream sources keep their own licences - see the source list above and docs/DATASET_SOURCES.md in the MoE-orchestrator repository for per-source detail.

Downloads last month
25