Skip to content

Instantly share code, notes, and snippets.

View mohamed-taman's full-sized avatar
🥇
Achieving the Goal

Mohamed Taman mohamed-taman

🥇
Achieving the Goal
View GitHub Profile
@mohamed-taman
mohamed-taman / MeetingApplication.java
Created April 29, 2022 00:21
Correctly implementing Zoned Date/Time in distributed System with Java.
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
public class MeetingApplication {
public static void main(String[] args) {
@mohamed-taman
mohamed-taman / StockOptionsTrader.java
Last active September 23, 2021 08:12
Class to calculate the best days to buy and sell trade stock options.
package org.tm.siriusxi.lm;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* This class contains methods to help best trade stock options, given an array of stock price
* predictions for one month.
*