- 博客(1270)
- 资源 (4)
- 收藏
- 关注

原创 Leetcode需要重复看的题目
目录没思路动态规划有优化解法没思路动态规划Best Time to Buy and Sell Stock有优化解法
2020-03-09 21:08:22
223
原创 Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime
npm uninstall node-sassnpm install node-sass
2022-03-11 14:14:41
5099
原创 Kafka Ubuntu 20.04开机启动
添加systemd servicecd /etc/systemd/systemtouch kafka.service[Unit]# Kafka服务的描述Description=Kafka Service# 服务依赖—在什么服务之后启动,一般为在网络服务启动后启动After=network.target zookeeper.service [Service]Type=forking# 启动环境参数# 此脚本指定了Zookeeper日志和Java的目录#Environment=
2022-01-22 09:45:23
4878
原创 .net core zookeeper入门
https://www.cnblogs.com/shanfeng1000/p/12675498.html
2022-01-21 18:02:00
1548
原创 zookeeper ubuntu 20.04 开机启动
添加systemd servicecd /etc/systemd/systemtouch zookeeper.servicezookeeper.service的内容如下[Unit]# Zookeeper服务的描述Description=Zookeeper Service# 服务依赖—在什么服务之后启动,一般为在网络服务启动后启动After=network.target [Service]# 服务类型—如果是shell脚本的方式,则Type=forking,否则不指定作何值(也就是去掉
2022-01-21 16:54:28
3138
原创 Azure虚拟机挂载数据磁盘
找到磁盘lsblk对新磁盘进行分区sudo parted /dev/sda --script mklabel gpt mkpart xfspart xfs 0% 100%sudo mkfs.xfs /dev/sdasudo partprobe /dev/sda挂载磁盘sudo mkdir /home/bryan/datasudo mount /dev/sda /home/bryan/data添加开机自动挂载sudo blkidsudo vim /etc/fstab.
2022-01-20 14:37:38
1463
原创 Cache Strategies 缓存策略
Cache AsideCache-aside caches are usually general purpose and work best for read-heavy workloads. Memcached and Redis are widely used.Read ProcessThe application first checks the cache.If the data is found in cache, we’ve cache hit. The data is rea
2022-01-17 11:05:42
648
原创 Performance Metrics for System Design
ScalabilityReliabilityAvailabilityEfficiencyLatencyThroughputManageability
2022-01-01 17:05:28
1230
原创 853. Car Fleet[单调栈]
ProblemThere are n cars going to the same destination along a one-lane road. The destination is target miles away.You are given two integer array position and speed, both of length n, where position[i] is the position of the ith car and speed[i] is the s
2021-12-15 20:49:04
881
原创 Test gRPC services with gRPCurl in ASP.NET Core
https://docs.microsoft.com/en-us/aspnet/core/grpc/test-tools?view=aspnetcore-5.0
2021-11-24 14:01:37
1763
原创 [重构]第一章:重构,第一个案例
import java.util.Enumeration;import java.util.Vector;public class Movie { public static final int CHILDRENS = 2; public static final int REGULAR = 0; public static final int NEW_RELEASE = 1; private String _title; private int _price
2021-11-23 16:42:48
701
原创 OBSERVER
定义Observer is a behavioral design pattern that lets you define a subscription mechanism to notify multiple objects about any events that happen to the object they’re observing.类图示例代码using System;using System.Collections.Generic;using System.Threadin
2021-11-17 15:52:00
1288
原创 STRATEGY
定义Strategy is a behavioral design pattern that lets you define a family of algorithms, put each of them into a separate class,and make their objects interchangeable.类图示例代码using System;using System.Collections.Generic;namespace RefactoringGuru.Desig
2021-11-17 15:28:08
811
原创 asp.net core cache
In-memory & Distributed (Redis) Caching in ASP.NET Core
2021-11-16 16:41:53
2586
原创 test_api
import asynciofrom asyncio import sleepimport aiohttpasync def get_metadata(session): url = 'http://localhost:30016/api/v1/projects/dc5047af-20e2-384c-9510-aa3882399111/files?path=%2FCAP_DEV%2FProjects%2Fdc5047af-20e2-384c-9510-aa3882399111%2FDatase
2021-11-11 16:38:54
580
原创 SOLID Design Principles in C#
Single Responsibility PrincipleOpen-Closed PrincipleLiskov Substitution PrincipleInterface SegregationDependency Inversion Principle
2021-11-08 14:05:57
930
原创 剑指 Offer 22. 链表中倒数第k个节点[Easy](Leetcode每日一题-2021.09.02)
Problem输入一个链表,输出该链表中倒数第k个节点。为了符合大多数人的习惯,本题从1开始计数,即链表的尾节点是倒数第1个节点。例如,一个链表有 6 个节点,从头节点开始,它们的值依次是 1、2、3、4、5、6。这个链表的倒数第 3 个节点是值为 4 的节点。Example给定一个链表: 1->2->3->4->5, 和 k = 2.返回链表 4->5.Solution/** * Definition for singly-linked list. *
2021-09-02 20:24:06
210
原创 165. Compare Version Numbers[Medium](Leetcode每日一题-2021.09.01)
ProblemGiven two version numbers, version1 and version2, compare them.Version numbers consist of one or more revisions joined by a dot ‘.’. Each revision consists of digits and may contain leading zeros. Every revision contains at least one character. Re
2021-09-01 20:32:35
347
原创 1588. Sum of All Odd Length Subarrays[Easy](Leetcode每日一题-2021.08.29)
Problem
2021-09-01 20:26:59
240
原创 797. All Paths From Source to Target[Medium](Leetcode每日一题-2021.08.25)
Problem
2021-09-01 20:22:23
203
原创 787. Cheapest Flights Within K Stops[Medium](Leetcode每日一题-2021.08.24)
ProblemThere are n cities connected by some number of flights. You are given an array flights where flights[i] = [fromi, toi, pricei] indicates that there is a flight from city fromi to city toi with cost pricei.You are also given three integers src, dst
2021-08-24 22:09:45
329
原创 1646. Get Maximum in Generated Array[Easy](Leetcode每日一题-2021.08.23)
Problem
2021-08-24 22:03:56
254
原创 551. Student Attendance Record I[Easy](Leetcode每日一题-2021.08.17)
ProblemYou are given a string s representing an attendance record for a student where each character signifies whether the student was absent, late, or present on that day. The record only contains the following three characters:‘A’: Absent.‘L’: Late.
2021-08-17 20:14:06
257
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人