I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
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
<div class="wrapper"> | |
<h2>Slick Carousel Example<h2> | |
<div class="carousel"> | |
<div><img src="https://picsum.photos/300/200?random=1"></div> | |
<div><img src="https://picsum.photos/300/200?random=2"></div> | |
<div><img src="https://picsum.photos/300/200?random=3"></div> | |
<div><img src="https://picsum.photos/300/200?random=4"></div> | |
<div><img src="https://picsum.photos/300/200?random=5"></div> | |
<div><img src="https://picsum.photos/300/200?random=6"></div> | |
</div> |
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
/** | |
* Filters an array of objects using custom predicates. | |
* | |
* @param {Array} array: the array to filter | |
* @param {Object} filters: an object with the filter criteria | |
* @return {Array} | |
*/ | |
function filterArray(array, filters) { | |
const filterKeys = Object.keys(filters); | |
return array.filter(item => { |
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
/* | |
Solution for HackerRank > Algorithms > Warmup > Compare the Triplets | |
https://www.hackerrank.com/challenges/compare-the-triplets | |
*/ | |
function main() { | |
var A = [5,6,7]; | |
var B = [3,6,10]; | |
// Set counters to '0' |