Skip to content

Instantly share code, notes, and snippets.

View brt-h's full-sized avatar

Robert Hyman brt-h

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brt-h
brt-h / leetcode-two_sum-56ms.py
Created August 4, 2021 00:43
Leetcode challenge 'Two Sum' - dictionary approach
# Leetcode challenge 'Two Sum'
# Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
# You may assume that each input would have exactly one solution, and you may not use the same element twice.
# You can return the answer in any order.
# Example input: nums = [2,7,11,15], target = 9
# Example output: [0,1]
@brt-h
brt-h / leetcode-two_sum-too_slow.py
Last active August 4, 2021 03:52
Leetcode challenge 'Two Sum' - brute force
# Leetcode challenge 'Two Sum'
# Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
# You may assume that each input would have exactly one solution, and you may not use the same element twice.
# You can return the answer in any order.
# Example input: nums = [2,7,11,15], target = 9
# Example output: [0,1]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brt-h
brt-h / model-evaluation-and-refinement.ipynb
Created July 22, 2021 21:56
Data Analysis with Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brt-h
brt-h / model-development.ipynb
Created July 20, 2021 23:00
Data Analysis with Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brt-h
brt-h / exploratory-data-analysis.ipynb
Created July 15, 2021 20:56
Data Analysis with Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brt-h
brt-h / data-wrangling.ipynb
Created July 7, 2021 22:40
Data Analysis with Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.