摘要: package LeetCode_796 /** * 796. Rotate String * https://leetcode.com/problems/rotate-string/description/ * We are given two strings, A and B. A shift 阅读全文
posted @ 2020-06-16 13:06 johnny_zhao 阅读(169) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_787 import java.util.* import kotlin.collections.ArrayList import kotlin.collections.HashMap /** * 787. Cheapest Flights Within K Sto 阅读全文
posted @ 2020-06-16 12:37 johnny_zhao 阅读(159) 评论(0) 推荐(0) 编辑
摘要: package _Algorithm.BellmanFord class BellmanFord { //create graph val ab = Edge("A", "B", -1) val ac = Edge("A", "C", 4) val bc = Edge("B", "C", 3) va 阅读全文
posted @ 2020-06-16 11:21 johnny_zhao 阅读(177) 评论(0) 推荐(0) 编辑