Dev

leetcode questions: dynamic programming

Intro Good video: Dynamic Programming - Learn to Solve Algorithmic Problems & Coding Challenges - YouTube DP is a style of coding where you store t

read more

Leetcode: LinkedList in Python

create a dummy nodeMerge two linked lists.# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = Noneclass

read more

Python list/dict functions for leetcode

Listlen(array) : length of array list.indexof(obj)enumerate(array) : adds counter at the beginning. for count, item in enumberate(['x','y','z']) # 0x 1y 2z`range(0,len

read more

Python String functions for leetcode

print(f'best RF score: {grid.best_score_:.3f}') str.index(sub[,start[,end]]) str.strip() remove spaces at the beginning and the end strip(str-not-want)lower() print(str.

read more

Data mining module outline

For Warwick University module 909, data mining. 1. intromachine learning frameworkdefine a set of functions define a fitting criteria pick the best functionmachine learning

read more

Data analysis module outline

For Warwick University module 910, Data analysis. 2. math back groundwhy frequency/rank for heavy tailed?The frequency/rank plot because the CCDF is a monotonous function. Moreover, unlike t

read more