Skip to content

Instantly share code, notes, and snippets.

View llenroc's full-sized avatar
🚀
GSD

llenroc

🚀
GSD
  • Moon
View GitHub Profile
@llenroc
llenroc / amazonFinal.md
Created February 7, 2022 12:02 — forked from krishnadey30/amazonFinal.md
Amazon Final Interview Question List
  • Two Sum (#1)
  • Median of Two Sorted Arrays * (#4)
  • Longest Palindromic Substring (#5)
  • String to Integer (atoi) (#8)
  • Integer to Roman (#12)
  • Roman to Integer (#13)
  • Valid Parentheses (#20)
  • Merge K Sorted Lists (#23)
  • Valid Sudoku (#36)
  • Combination Sum (#39)
@llenroc
llenroc / flatten_binary_tree.py
Created September 18, 2021 08:35 — forked from kuntalchandra/flatten_binary_tree.py
Flatten Binary Tree to Linked List
"""
Given a binary tree, flatten it to a linked list in-place.
For example, given the following tree:
1
/ \
2 5
/ \ \
3 4 6
@llenroc
llenroc / The Technical Interview Cheat Sheet.md
Created April 30, 2021 08:18 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@llenroc
llenroc / System Design.md
Created October 21, 2020 07:00 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@llenroc
llenroc / CurrentTradeService.cs
Created November 14, 2017 20:17 — forked from sthewissen/CurrentTradeService.cs
Current trade GET endpoint
[FunctionName("CurrentTradeService")]
public static async Task<HttpResponseMessage> Run([HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = "trades")]HttpRequestMessage req, TraceWriter log)
{
var tradeTable = await ConnectionManager.GetTableConnection(Constants.OrderTableName, Constants.IsDryRunning);
var currentTrades = tradeTable.CreateQuery<Trade>().Where(x => x.IsOpen).ToList();
currentTrades = currentTrades.OrderBy(x => x.Market).ToList();
var api = new BittrexApi();
List<TradeDto> trades = new List<TradeDto>();
@llenroc
llenroc / NotificationManager.cs
Created November 14, 2017 20:15 — forked from sthewissen/NotificationManager.cs
Notification manager
public interface INotificationManager
{
Task<bool> SendNotification(string message);
}
public class NotificationManager : INotificationManager
{
public async Task<bool> SendNotification(string message)
{
try
function Get-ClrReflection
{
<#
.SYNOPSIS
Detects memory-only CLR (.NET) modules
Author: Joe Desimone (@dez_)
License: BSD 3-Clause