Skip to content

Testing solution structures with commands. #4

Description

@Vanderkast

Some problems require implementation Structures that tested with method call sequence.
Example: leetcode id 380.

Input
["RandomizedSet", "insert", "remove", "insert", "getRandom", "remove", "insert", "getRandom"]
[[], [1], [2], [2], [], [1], [2], []]
Output
[null, true, false, true, 2, true, false, 2]

In input we have 2 arrays:

  1. Method calls sequence. Contains method names that should be called.
  2. Method call sparameters sequence. Contains array of method parameters passed to methods from sequence 1.

In output we have expected values to be returned on method calls from input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions