Moocable is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Database (LightOJ)

Description

The problem description for the LightOJ category "database" involves a dynamic programming task where the goal is to find the number of nodes to be lightened in the subtree of a specific node when there is a lamppost in the current node. This problem introduces a unique twist by focusing on dynamic programming on a tree structure rather than a traditional array. The solution requires calculating the number of nodes to be illuminated based on whether there is a lamppost in the current node or not. Additionally, it involves determining the number of roads that receive light from both nodes as an additional challenge

Tags

Syllabus

  1. Sort Student Names
  2. Highest Goal Scorer
  3. Second Highest Goal Scorer
  4. Highest Goal Scorer per Team
  5. Local Fruit Shop


Problem Sets

Independent

Free

Intermediate

No certificate

  • Type
    Problem Sets
  • Provider
    Independent
  • Pricing
    Free
  • Difficulty
    Intermediate
  • Certificate
    No certificate

The problem description for the LightOJ category "database" involves a dynamic programming task where the goal is to find the number of nodes to be lightened in the subtree of a specific node when there is a lamppost in the current node. This problem introduces a unique twist by focusing on dynamic programming on a tree structure rather than a traditional array. The solution requires calculating the number of nodes to be illuminated based on whether there is a lamppost in the current node or not. Additionally, it involves determining the number of roads that receive light from both nodes as an additional challenge

  1. Sort Student Names
  2. Highest Goal Scorer
  3. Second Highest Goal Scorer
  4. Highest Goal Scorer per Team
  5. Local Fruit Shop