摘要:
https://leetcode.com/problems/house-robber/#/description /* 你是一个专业强盗,并计划沿街去盗窃每一个住户。每个房子都有一定量的现金,阻止你盗窃的唯一阻碍是相邻的两个房子之间有安全系统。一旦这两个房子同时被盗窃,系统就会自动联系警察。给定一系 阅读全文
摘要:
https://leetcode.com/problems/find-mode-in-binary-search-tree/#/description 阅读全文
摘要:
https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/#/description 阅读全文
摘要:
https://leetcode.com/problems/repeated-substring-pattern/#/description 阅读全文
摘要:
/** * Definition for singly-linked list. * public class ListNode { * public int val; * public ListNode next; * public ListNode(int x) { val = x; } * } 阅读全文
摘要:
public class Solution { private bool Judge(int x) { if (x <= 1) { return false; } int bound = Convert.ToInt32(Math.Sqrt(x)); for (int i = 2; i <= boun 阅读全文