I'm a self taught web developer. I primarily write frontend code but I do backend stuff too. I try to do interesting stuff with my time here and learn from as many people as I can.
๐๏ธ
Busy
Pinned Loading
-
graphSearch.js
graphSearch.js 1/* Graph Search Algoroithms
2* Here we would implement a graph in the form of an adjacency list
3* There are a few ways this can be done :
4* a.Adjacency Matrix: Represent each node in a 2D matrix, the edges represent relationships between nodes
5* b.Adjacency List: Start with a collection of nodes each having their array of edges, this is easier 0on memmory and faster
-
delayedShiftArray.ts
delayedShiftArray.ts 1// Implement a queue using Delayed shift arrays - It consists of associating an index with the array.
2// When an element is dequeued, the index moves forward. When the index reaches the middle of the array,
3// the array is sliced in two to remove the first half.
45// This is a FIFO data structure
-
This is a sample tic tac toe applica...
This is a sample tic tac toe application. Based on a coderbyte test 1import React, { useState, useEffect } from 'react';
2import ReactDOM from 'react-dom';
345const squareStyle = {
-
Elevator Engineering Test. Full test...
Elevator Engineering Test. Full test description can be found here: https://docs.google.com/document/d/1Vx2iVzvoB_wQ-fG5RC-tQviseJvs-mzofL_rAaz4t_A/edit?usp=sharing 1interface IElevator {
2on: (events: string, callback: Function) => void;
3getCurrentFloor: () => number;
4getCurrentDirection: () => DIRECTIONS;
5moveUp: () => void;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.