Introduction to Survival Analysis (Ch3)

This summarizes some very basic concepts in survival analysis from this amazing tutorial, which helps me a lot. Chapter 3: Estimiating the Survival or Hazard Function (Parametric) There are two ways of estimating survival/hazard functions parametric model for based on...

Introduction to Survival Analysis (Ch1 & Ch2)

This summarizes some very basic concepts in survival analysis from this amazing tutorial, which helps me a lot. Chapter 1: Basic Knowledge and Survival Data Basic Definitions Failure/Event time random variables . T can be both discrete or continuos. Censored...

Substring with Concatenation of All Words

Description You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and...

Simplify Path

Description Simplify Path Total Accepted: 10702 Total Submissions: 53877 My Submissions Given an absolute path for a file (Unix-style), simplify it. For example, path = “/home/”, => “/home” path = “/a/./b/../../c/”, => “/c” Corner Cases: Did you consider the case...

Minimum Window Substring

Description Solution The time complexity of the naive solution is . We take each position as the start left boundary, do the line search to find the right boundary between which the sub string contains all the chars in T...