-
Motion
A bicycle rental web application I created to demostrate some basic front-end skills. It uses React, Node.js, Sass, Handlebars, and more. Note that it is a work in progress, but is far enough along to exemplify some abilities. -
Cedge
A set of critical data structures missing from JavaScript's standard library that I use for competitive programming and decided in June 2022 to open-source for others to use for whatever needs they have. -
Algorithm IV Question Manager
A web application that I developed to help others learn computer science and to practice for interviews. To view the application clone or download the source and openexample/view-example.html
in your browser via thefile://
protocol. While Algorithm IV's website was up I hosted thousands of guests. A relaunch is pla
This file contains hidden or 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
(function($){ | |
$.querySelector('#ContentWallHardsell').remove(); | |
$.querySelector('body').style.overflow = 'scroll'; | |
const style = $.createElement('style'); | |
style.innerHTML = '#LoginModal{display:none!important}'; | |
$.head.appendChild(style); | |
window.addEventListener('scroll',e => e.stopPropagation(),true); | |
})(document); |
This file contains hidden or 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.* | |
const val MOD = 1000000007L | |
class Solution { | |
fun totalStrength(strength: IntArray): Int { | |
val n = strength.size | |
val left = IntArray(n) { -1 } | |
val right = IntArray(n) { -1 } | |
val stack = Stack<Int>() |
This file contains hidden or 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
class Solution | |
{ | |
public: | |
int totalStrength(vector<int>& a) | |
{ | |
int n = a.size(); | |
const long long MOD = 1000000007; | |
vector<long long> b(n + 1); | |
for (int i = 0; i < n; ++i) { |
This file contains hidden or 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
var is = Array.isArray; | |
var print = function print(func) { | |
var str; | |
var key; | |
str = '[' + typeof func + ']'; | |
str += ' { \n'; | |
for (key in func) { | |
str += ' ' + key + ': ' + String(func[key]) + '\n'; |
This file contains hidden or 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
function example(a, b) {} | |
example.length === 2; // returns => true | |
example(1, 2, 3); | |
// a === 1 | |
// b === 2 | |
// arguments[0] === 1 | |
// arguments[1] === 2 |
This file contains hidden or 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
/** | |
* A method to concat strings to avoid [plus overloading errors](http://www.crockford.com/javascript/javascript.html). | |
* | |
* @param {...*} val | |
* @return {string} | |
*/ | |
function concatString(val) { | |
/** @type {string} */ | |
var str; |
- Computer Science: Offers in-depth resources for learning and improving your skills with computer science, programming, algorithms, data structures, and more.
- Operating Systems: Covers operating systems and their tools.
- Web Development: Offers abundant resources for topics like browsers, CSS, DOM, HTML, JavaScript, Node.js, PHP, and Python. It contains many different manuals, tools, libraries, shortcuts, and more.
This Gist exists to allow a single, publically available place to share and discuss your feedback on the future for Algorithm IV's Dev Tools project. Please read the following outline and add your comments to this Gist:
Thank you for participating! Your feedback on this project is appreciated!!
-- Adam Smith
This file contains hidden or 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
/** | |
* ----------------------------------------------- | |
* Function (findDuplicates) | |
* ----------------------------------------------- | |
* @desc Find the duplicate objects in two arrays. With m representing | |
* the length of the longest array and n the length of both arrays | |
* combined, this function operates in - Time: O(m) | Space: O(n). | |
* @param {Array<Object>} arr1 - The first array. | |
* @param {Array<Object>} arr2 - The second array. | |
* @return {Array<Object>} The duplicates. |