Original code:
using System; public class TrainComposition { public void AttachWagonFromLeft(int wagonId) { throw new NotImplementedException("Waiting to be implemented."); } public void AttachWagonFromRight(int wagonId) { throw new NotImplementedException("Waiting to be implemented."); } public int DetachWagonFromLeft() { throw new NotImplementedException("Waiting to be implemented."); } public int DetachWagonFromRight() { throw new NotImplementedException("Waiting to be implemented."); } public static void Main(string[] args) { TrainComposition tree = new TrainComposition(); tree.AttachWagonFromLeft(7); tree.AttachWagonFromLeft(13); Console.WriteLine(tree.DetachWagonFromRight()); // 7 Console.WriteLine(tree.DetachWagonFromLeft()); // 13 } }
Dashboard
Start Trial
Sign In
Home
Product
Features
Use Cases
Customers
ROI Calculator
Integrations
Assessments
Tests
Questions
Pricing
Resources
Book: Evidence-Based Hiring
Blog
Support
Contact Us
Legal
For Jobseekers
© TestDome, 2024.