Search found 80 matches

by Slidy
April 3rd, 2019, 10:15 am
Forum: Everything
Topic: Noob learns to code in 3 months
Replies: 670
Views: 201899

Re: Noob learns to code in 3 months

:O Congrats :D
by Slidy
November 12th, 2018, 11:08 pm
Forum: Everything
Topic: Long time no see and Input Capture
Replies: 56
Views: 22655

Re: Long time no see and Input Capture

Alt+Tab and Ctrl+Esc are both Windows shortcuts. Alt+Tab switches window and Ctrl+Esc brings up the start menu. Perhaps that's why it won't allow you to use them?
by Slidy
November 11th, 2018, 11:06 pm
Forum: Everything
Topic: Long time no see and Input Capture
Replies: 56
Views: 22655

Re: Long time no see and Input Capture

I noticed for your StringHashMap class you're using an unordered_map with an EMPTY_STRUCT value type (https://github.com/BobsCrabShack/Input-Capture/blob/master/Macros%20Template/StringHashMap.h#L24). Just wanted to point out that you can use unordered_set instead. It's just like unordered_map excep...
by Slidy
November 5th, 2018, 1:32 am
Forum: Everything
Topic: Coding Challenge 5 - Meme Graveyard Keeper
Replies: 26
Views: 134557

Re: Coding Challenge 5 - Meme Graveyard Keeper

Here's another method of creating tests: #pragma once #include "TestCase.h" #include <random> #include <iomanip> #include <sstream> #include <string> using namespace std::chrono_literals; class TestCaseEmbeds : public TestCase { public: TestCaseEmbeds( std::chrono::duration<int,std::milli> timeoutMi...
by Slidy
November 4th, 2018, 3:04 am
Forum: Everything
Topic: Coding Challenge 5 - Meme Graveyard Keeper
Replies: 26
Views: 134557

Re: Coding Challenge 5 - Meme Graveyard Keeper

Optimized algorithm results: PASS (0.01ms) File Test: Buck Futter's Sexy Test 1 PASS (0.00ms) File Test: Buck Futter's Sexy Test 2 PASS (0.00ms) File Test: Buck Futter's Sexy Test 3 PASS (0.00ms) File Test: Buck Futter's Sexy Test 4 PASS (153.04ms) File Test: Slidy's Baseline Test (1,798,592 Command...
by Slidy
November 4th, 2018, 12:35 am
Forum: Everything
Topic: Coding Challenge 5 - Meme Graveyard Keeper
Replies: 26
Views: 134557

Re: Coding Challenge 5 - Meme Graveyard Keeper

Here's a test we can all use as a baseline generated using my python script: https://mega.nz/#!k4lViIrT!wijBZsLVJARLU6ScG0Z5FbclaIHq95TS-hgBT4YJKaQ Using a naive solution I get the following results: PASS (0.00ms) File Test: Buck Futter's Sexy Test 1 PASS (0.00ms) File Test: Buck Futter's Sexy Test ...
by Slidy
November 3rd, 2018, 9:43 pm
Forum: Everything
Topic: Coding Challenge 5 - Meme Graveyard Keeper
Replies: 26
Views: 134557

Re: Coding Challenge 5 - Meme Graveyard Keeper

Here's a python script to generate test files, it doesn't generate the answer for you so you'll have to fill that in manually. import random MAX_UINT = 4294967296 fieldsize = random.randint(1, MAX_UINT) num_commands = random.randint(1, 8000000) with open('Test.txt', 'w') as file: file.write("Slidy's...
by Slidy
October 5th, 2018, 6:01 am
Forum: Everything
Topic: Matrix Transformation Demonstration Project
Replies: 11
Views: 4486

Re: Matrix Transformation Demonstration Project

That looks sick :O
by Slidy
October 5th, 2018, 12:38 am
Forum: Everything
Topic: why have my solution failed?
Replies: 10
Views: 4283

Re: why have my solution failed?

I also re-submitted and had no issues, so I doubt it's that.

As for AverageWhale's issue I suspect it might have to do with signed/unsigned mixing going on.

Would be nice if the system gave you the input set that your solution failed on.