The results of OpenAI's ChatGPT ran against every (non-premium) Leetcode problem.

Overall Results

Correct

36.39%

722/1984

Incorrect

63.61%

1262/1984

Breakdown by Difficulty

Easy

67.71%

346/511

Medium

31.93%

327/1024

Hard

10.91%

49/449

Breakdown by Topic

Algorithm

35.81%

693/1935

Database

60.0%

27/45

Shell

50.0%

2/4

Breakdown by Algorithm

1+

30.79%

97/315

2+

31.43%

77/245

3+

22.92%

22/96

4+

17.39%

4/23

5+

13.33%

2/15

6+

50.0%

1/2

7+

0.0%

0/1

Array

32.81%

352/1073

Backtracking

45.0%

27/60

Binary Indexed Tree

40.0%

2/5

Binary Search

27.54%

46/167

Binary Search Tree

75.0%

3/4

Binary Tree

60.0%

21/35

Bit Manipulation

37.5%

33/88

Brainteaser

28.57%

2/7

Breadth-first Search

26.67%

16/60

Bucket Sort

100.0%

1/1

Combinatorics

28.57%

2/7

Concurrency

16.67%

1/6

Counting

37.5%

15/40

Counting Sort

50.0%

1/2

Data Stream

0.0%

0/1

Depth-first Search

41.52%

71/171

Design

35.29%

24/68

Divide And Conquer

62.5%

20/32

Dynamic Programming

20.99%

68/324

Enumeration

18.18%

4/22

Eulerian Circuit

33.33%

1/3

Game Theory

25.0%

1/4

Geometry

36.36%

8/22

Graph

8.89%

4/45

Greedy

25.7%

55/214

Hash Function

0.0%

0/1

Hash Table

38.08%

139/365

Heap (priority Queue)

2.94%

1/34

Interactive

100.0%

3/3

Iterator

0.0%

0/1

Line Sweep

0.0%

0/3

Linked List

51.67%

31/60

Math

33.72%

116/344

Matrix

38.2%

34/89

Memoization

33.33%

3/9

Monotonic Stack

36.36%

4/11

Number Theory

54.55%

6/11

Ordered Set

0.0%

0/6

Prefix Sum

28.57%

14/49

Probability And Statistics

0.0%

0/1

Queue

15.79%

3/19

Randomized

66.67%

2/3

Recursion

62.96%

17/27

Rejection Sampling

50.0%

1/2

Reservoir Sampling

33.33%

1/3

Rolling Hash

14.29%

1/7

Segment Tree

22.22%

2/9

Shortest Path

0.0%

0/4

Simulation

46.25%

37/80

Sliding Window

27.66%

13/47

Sorting

39.86%

55/138

Stack

41.67%

45/108

String

38.8%

194/500

String Matching

60.0%

6/10

Suffix Array

0.0%

0/1

Topological Sort

0.0%

0/4

Tree

53.1%

77/145

Trie

15.38%

2/13

Two Pointers

47.01%

63/134

Union Find

4.76%

1/21

Average Performance

Runtime

66.17%

Memory

58.81%

Breakdown of Errors

Wrong Answer

73.14%

923/1262

Time Limit_exceeded

11.01%

139/1262

Runtime Error

15.85%

200/1262

Breakdown of Runtime Errors

Indexerror

24.0%

48/200

Recursionerror

2.5%

5/200

Typeerror

26.0%

52/200

Zerodivisionerror

2.5%

5/200

Attributeerror

5.0%

10/200

Syntaxerror

10.0%

20/200

You Have_an_error_in_your_sql_syntax

3.0%

6/200

Nameerror

6.5%

13/200

Valueerror

6.0%

12/200

Keyerror

5.5%

11/200

Runtimeerror

1.0%

2/200

Exception

0.5%

1/200

Taberror

2.5%

5/200

Unboundlocalerror

2.5%

5/200

Indentationerror

2.0%

4/200

Stopiteration

0.5%

1/200

Testcases Passed When Errored

Test Cases

31.76%

34.73/109.35