Chapter 1
Binary search
divide array into sub parts until target is found
function binarySearch(nums, target) {
let low = 0
| import React, { ReactNode } from "react"; | |
| type UlProps = { | |
| children: ReactNode; | |
| className?: string; | |
| listStyle?: string; | |
| }; | |
| type LiProps = { | |
| children: ReactNode; |
Chapter 1
Binary search
divide array into sub parts until target is found
function binarySearch(nums, target) {
let low = 0
| # aliases | |
| alias c="clear" | |
| export NODE_ENV=local | |
| alias dnpm='docker-compose up -d scripts && docker-compose exec scripts npm | |
| run ts:build && docker-compose exec scripts npm ' | |
| #export NODE_PATH=$(npm root -g) | |
| # Git |
| colors.sh | |
| # This is the custom theme template for gitprompt.sh | |
| # These are the defaults from the "Default" theme | |
| # You just need to override what you want to have changed | |
| function prompt_callback { | |
| gp_set_window_title ${PWD} | |
| } | |
| override_git_prompt_colors() { | |
| GIT_PROMPT_THEME_NAME="Custom" | |
| # Time12a="\$(date +%H:%M)" |