DataDriven
LearnPracticeInterviewDiscussDailyJobs

The Molecule Report

A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
easy
Seniority
L4

Problem

A genomics pipeline hands you raw sequencing reads as strings over the bases A, C, G, and T, and some reads come back contaminated with stray characters. For each read return a dict reporting whether it is clean (only those four bases), its GC content as a percentage of the read's length, how many times each of the four bases occurs, and the most common pair of consecutive bases. A read shorter than two bases has no such pair.

Summary

Four letters. A lot of math hidden in the sequence.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.

Related

  • All Practice Problems
  • Mock Interview Mode
  • Python Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons