This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Instructions: | |
Candidates are allowed to complete this problem at home using any computer you prefer. | |
While the preferred language for solving this problem is C#, if absolutely necessary javascript is also permitted. | |
If access to a C#/Javascript editor is not available to you, you can use the following | |
C# online IDE at: https://www.tutorialspoint.com/compile_csharp_online.php | |
This IDE has a decent text editor, as well as the ability to execute your code in a console application Environment. Unlike the previous test questions, syntax and style will be taken into account for this challenge. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class RomanDecode | |
{ | |
public static int Solution(string roman) | |
{ | |
// Hashtable representing the numeric value of each roman numeral key | |
Hashtable romanKeys = new Hashtable() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class RomanDecode | |
{ | |
public static int Solution(string roman) | |
{ | |
// Hashtable representing the numeric value of each roman numeral key | |
Hashtable romanKeys = new Hashtable() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Console.WriteLine("Enter a time value in the 24-hour time format (e.g. 19:00):"); | |
var input = Console.ReadLine(); | |
if (string.IsNullOrEmpty(input) || string.IsNullOrWhiteSpace(input)) | |
Console.WriteLine("Invalid Time"); | |
var lowTime = DateTime.Parse("00:00"); | |
var highTime = DateTime.Parse("23:59"); | |
var inputTime = DateTime.Parse(input); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import getpass | |
import math | |
import os | |
import sys | |
import time | |
# pip install opencv-python | |
import cv2 as cv | |
import numpy as np |
OlderNewer