This file contains 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 java.util.*; | |
public class Main { | |
public static void main(String[] args) { | |
for (int n = 0; n < 1000; n++) { | |
long startTime = System.nanoTime(); | |
fib(n); | |
long endTime = System.nanoTime(); | |
double duration = (endTime - startTime) / 1000000000.0; |
This file contains 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; | |
namespace RomanNumerals | |
{ | |
class Program | |
{ | |
// Create rules in descending order | |
static Rule[] Rules = new Rule[] | |
{ | |
new Rule(1000, "M"), |
This file contains 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.Text; | |
using CryptSharp; | |
using CryptSharp.Utility; | |
using System.Security.Cryptography; | |
using System.Diagnostics; | |
namespace PasswordHashingTest | |
{ | |
class Program |