摘要:
题目:  ``` class Solution { public: int add(int a, int b) {
阅读全文
posted @ 2023-09-04 20:08
孜孜不倦fly
阅读(7)
推荐(0)
摘要:
题目:  ``` class Solution { public: int hammingWeight(uint32
阅读全文
posted @ 2023-09-04 19:32
孜孜不倦fly
阅读(11)
推荐(0)
摘要:
题目:  
推荐(0)
摘要:
题目:  ``` class Solution { public: vector> findContinuousS
阅读全文
posted @ 2023-09-03 11:22
孜孜不倦fly
阅读(10)
推荐(0)
摘要:
题目:  ``` class Solution { public: int majorityElement(vec
阅读全文
posted @ 2023-09-03 10:09
孜孜不倦fly
阅读(9)
推荐(0)
摘要:
题目: class Solution { //本题单纯找规律,要注意通过n%digits来判断有几个位数为digits的数 public: int findNthDigit(int n) { long base = 9, digits = 1; //digits代表位数 while(n-base*d
阅读全文
posted @ 2023-09-02 21:04
孜孜不倦fly
阅读(20)
推荐(0)
摘要:
题目:  ``` class Solution { public: int maxSubArray(vector&
阅读全文
posted @ 2023-09-02 19:54
孜孜不倦fly
阅读(12)
推荐(0)
摘要:
题目:  ``` class Solution { //本题用贪心算法,拆成尽可能多的3且不可以出现长度为1的小段
阅读全文
posted @ 2023-09-01 20:26
孜孜不倦fly
阅读(9)
推荐(0)
摘要:
**一.打印np数组** ``` import numpy as np arr = np.array([13, 2500]) print(np.shape(arr)) ``` **二.打印tensor张量** ``` import torch arr = torch.Tensor([[1, 2, 3
阅读全文
posted @ 2023-08-31 22:27
孜孜不倦fly
阅读(127)
推荐(0)
摘要:
题目:  ``` class Solution { public: int cuttingRope(int n)
阅读全文
posted @ 2023-08-31 21:53
孜孜不倦fly
阅读(11)
推荐(0)