Coder Social home page Coder Social logo

data-structures-and-algorithms's Introduction

Data Structures and Algorithms

See setup instructions, in the Code 301 Setup Guide.

Repository Quick Tour and Usage

301 Code Challenges

Under the javascript folder, at the top level, is a sub-folder called code-challenges

Each day, you'll add one new file to this folder to do your work for the day's assigned code challenge

If you have not already done so, run npm install from within this folder to setup your system to be able to run tests using Jest

To run your tests

  • Change to the javascript folder
  • run npm test to run all of the tests
  • run npm test ## to only run tests for challenge ## (i.e. 01)

401 Data Structures, Code Challenges

  • Please follow the instructions specific to your 401 language, which can be found in the directory below, matching your course.

Reverse an Array

  • Write a function called reverseArray which takes an array as an argument. Without utilizing any of the built-in methods available to your language, return an array with elements in reversed order.

Whiteboard Process

Whiteboard

Approach & Efficiency

Insert to Middle of an Array

Take a single value and insert it into the middle of an existing array

Whiteboard Process

Whiteboard2

Approach & Efficiency

Binary Search of Sorted Array

Write a function called BinarySearch which takes in 2 parameters: a sorted array and the search key. Without utilizing any of the built-in methods available to your language, return the index of the array’s element that is equal to the value of the search key, or -1 if the element is not in the array.

Whiteboard Process

whiteboard3

Approach & Efficiency

data-structures-and-algorithms's People

Contributors

folksmash 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.