LeetCode solutions

3067. Modify Columns

My accepted Python solution to LeetCode problem 3067, Modify Columns, running in 336ms.

  • Difficulty: Easy
  • Python
  • Runtime 336ms
  • Memory 66.6MB

Read the problem on LeetCode View on GitHub

Python

Accepted on LeetCode — runtime 336ms, memory 66.6MB, accepted 2026-01-02.

python
import pandas as pd

def modifySalaryColumn(employees: pd.DataFrame) -> pd.DataFrame:
    employees['salary'] = employees['salary'] * 2
    return employees

Source