Giter Site home page Giter Site logo

dbnc_quiz's Introduction

DBNC_Quiz

This repository contains my answers to the DBNC Group Embedded Software Engineer Quiz.

The solution to question 1 was compiled using GCC 11.3.0. My solution does not dynamically allocate memory, and I added additional checks to safely handle certain kinds of pathological input.

Output from question_1.c

Testing square finder:
MAX_SQUARES = 10

n=5, m=6, found 6 squares:
5x5 1x1 1x1 1x1 1x1 1x1 

n=1, m=1, found 1 squares:
1x1 

n=9, m=9, found 1 squares:
9x9 

n=100, m=97, found 10 squares:
Filled the output array, results invalid

n=6, m=5, found -1 squares:
Can't write to a null pointer.

n=0, m=5, found -1 squares:
Input dimension of 0 doesn't make any sense.

I couldn't answer question 2, but I documented my approach and thought process in question_2.md.

After some extra time thinking about it, I decided to follow a hunch that this was a baseN encoding scheme with a custom cipher. A straightforward genetic algorithm found a custom base-62 cipher, C7xicPMGvzAZyTNodmwnV5D3B6H0Oup8E21W9sqLQX4YjSeUhIRJgafFtrKlbk, which successfully converts the input column into the output column.

The code for this is in question_2.ipynb.

dbnc_quiz's People

Contributors

daelonsuzuka avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.