This file contains 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
# Put this file in your ~/.bashrc. To invoke type in the command line: | |
# | |
# genpasswd | |
# | |
# The default password length is 12 characters. If need it longer: | |
# | |
# genpasswd 24 | |
function genpasswd() { | |
local numchars=$1 |
This file contains 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
# ---------- | |
# User Instructions: | |
# | |
# Implement the function optimum_policy2D() below. | |
# | |
# You are given a car in a grid with initial state | |
# init = [x-position, y-position, orientation] | |
# where x/y-position is its position in a given | |
# grid and orientation is 0-3 corresponding to 'up', | |
# 'left', 'down' or 'right'. |