Issue | Estimated | Actual |
---|
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
module QuickSort | |
module InstanceMethods | |
def swap(arr, a, b) | |
arr[a], arr[b] = arr[b], arr[a] | |
end | |
def partition(arr, left, right) | |
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
/* | |
Examples: | |
let startDate = Date() | |
let endDate = startDate.addingTimeInterval(3600 * 4)//Start + 4hrs | |
//Calculate +/- difference | |
startDate.offset(date: endDate) //4:00:00 | |
endDate.offset(date: startDate) //-4:00:00 | |
//Calculate only difference |
###Data Types
####Type A
Description A
Example A
#Postgres Cheat Sheet
###Destroy db
DROP DATABASE "DATEBASE_NAME";
###Create db
CREATE DATABASE "DATEBASE_NAME";
NewerOlder