docker system prune -a
Check out deets here
docker volume rm $(docker volume ls -f dangling=true -q)
Check out some additional info here
docker rmi $(docker images | grep none | awk '{ print $3}')
// Problem 1 - Palindrome | |
// Write a function that takes a string as an input | |
// and returns true if the string is the same string forwards | |
// and backwards | |
String.prototype.reverse = function() { | |
return this.split("").reverse().join(""); | |
} | |
const isPalindrome = function(str) { |
require 'trie' | |
class LongestConcatWord | |
def initialize(file) | |
@trie = Trie.new | |
@word_hash = Hash.new | |
@original_word = nil | |
@file = file | |
@concat_words = [] | |
@count = 0 |