Skip to content

Instantly share code, notes, and snippets.

View xeinebiu's full-sized avatar

Arzan Nebiu xeinebiu

  • ServiceOcean AG
  • Sank Gallen, CH
View GitHub Profile
@xeinebiu
xeinebiu / GimmeCookies.py
Created June 13, 2022 18:50
A python script that searches with RegEx and returns cookie values in window machines
# GimmeCookies v0.5
# A python script that searches and returns cookie values in window machines
# by GramThanos
#
# Example Usage:
# python.exe .\GimmeCookies.py [-h] [-d domain] [-n name] [-v value] [-f format] [-c]
# python.exe .\GimmeCookies.py --help
# python.exe .\GimmeCookies.py -d ".*\.facebook\.com$" -f csv
# python.exe .\GimmeCookies.py -d ".*\.facebook\.com$" -f csv
# python.exe .\GimmeCookies.py -d ".*\.facebook\.com$" -f json
/**
* Find the minimum number of coins required to make n cents.
* You can use standard American denominations, that is, 1¢, 5¢, 10¢, and 25¢.
* For example, given n = 16, return 3 since we can make it with a 10¢, a 5¢, and a 1¢.
* https://pl.kotl.in/Nw2rJRzC5
*/
fun main() {
print(calculateCoins(16, listOf(1, 5, 10, 25)))
}
// Given the root to a binary search tree, find the second largest node in the tree.
// https://dotnetfiddle.net/ZLdVSy
class Program
{
public class Node
{
public int Value { get; private set; }
public Node Left { get; private set; }
public Node Right { get; private set; }