自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(30)
  • 收藏
  • 关注

原创 leetcode 数组拆分

leetcode 561

2022-07-24 09:45:37 236 1

原创 leetcode 岛屿的周长

leetcode 463

2022-07-24 09:41:26 91

原创 leetcode 最小操作次数使元素相等

leetcode 453

2022-07-24 09:38:33 84

原创 leetcode 找到所有数组中消失的数

leetcode 448

2022-07-24 09:34:50 75

原创 leetcode 两个数组的交集

leetcode 349

2022-07-24 09:32:20 47

原创 leetcode 数组不可变

leetcode 303

2022-07-24 09:29:13 43

原创 学习kubernetes即相关操作

对kubernetes的学习过程。

2022-06-29 13:41:10 346 2

原创 leetcode 各位相加

leetcode 258

2022-06-27 22:02:27 59

原创 leetcode 反转链表

LeetCode 206

2022-06-27 22:00:03 76

原创 leetcode 颠倒二进制位

LeetCode 190

2022-06-27 21:56:23 39

原创 leetcode 多数元素

leetcode 169

2022-06-27 21:53:28 95

原创 leetcode 杨辉三角

leetCode 118

2022-06-27 21:48:20 83

原创 leetcode 将有序数组转化为二叉搜索树

leetcode108

2022-06-27 21:46:08 81

原创 Docker的初步学习

对于docker的初步学习和一些基本操作的介绍

2022-06-01 12:04:32 90

原创 Docker部署相关

关于部署docker以及在docker中部署golang的初步探索。

2022-05-31 21:46:30 407

原创 二叉树后序遍历

Given the root of a binary tree,use golang tofunc postorderTraversal(root *TreeNode) (res []int) { var postorder func(*TreeNode) postorder = func(node *TreeNode) { if node == nil { return } postorder(node.Left

2022-05-31 17:44:31 46

原创 二叉树最大深度

Given therootof a binary tree, use golang to returnits maximum depth.func maxDepth(root *TreeNode) int { if root == nil { return 0 } return max(maxDepth(root.Left), maxDepth(root.Right)) + 1}func max(a, b int) int { if a &g...

2022-05-31 17:43:08 47

原创 LeetCode 只出现一次的数

Given a non-emptyarray of integers nums, every element appears twice except for one. Use golangf to find that single one.func singleNumber(nums []int) int { single := 0 for _, num := range nums { single ^= num } return single.

2022-05-31 17:41:08 46

原创 二叉树中序遍历

Given the root of a binary tree, use golang to return the inorder traversal of its nodes' values.func inorderTraversal(root *TreeNode) (res []int) { var inorder func(node *TreeNode) inorder = func(node *TreeNode) { if node == nil { return } i

2022-05-31 17:36:09 1055

原创 LeetCode 移除元素

Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The relative order of the elements may be changed.func removeElement(nums []int, val int) int { left := 0 for _, v := range nums { // v 即 nums[right]

2022-05-31 17:32:06 33

原创 合并有序链表

Merge the two lists in a one sorted list. The list should be made by splicing together the nodes of the first two lists.Return the head of the merged linked listfunc mergeTwoLists(l1 *ListNode, l2 *ListNode) *ListNode { head := &ListNode{}

2022-05-31 17:28:35 50

原创 leetcode 7 移除元素(go)

Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The relative order of the elements may be changed.func removeElement(nums []int, val int) int { left := 0 for _, v := range nums { // v 即 nums[right]

2022-03-01 08:25:31 38

原创 leetcode6 移除元素

Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The relative order of the elements may be changed.int removeElement(int* nums, int numsSize, int val){ int k = 0; for(int i=0;i<numsSize;i++) {

2022-03-01 08:23:40 31

原创 leetcode5 合并链表

Merge two ascending chained tables into a new ascending chained table using Cstruct ListNode* mergeTwoLists(struct ListNode* l1, struct ListNode* l2){ if(l1==NULL) return l2; if(l2==NULL) return l1; if(l1->val < l2->val

2022-03-01 08:20:29 507

原创 leetcode 4 回文

Determine if a number is a palindromeclass Solution {public: bool isPalindrome(int x) { if (x < 0 || (x % 10 == 0 && x != 0)) { return false; } int revertedNumber = 0; while (x > revertedN.

2022-02-28 19:39:58 36

原创 leetcode 3 阿拉伯数字

Use C to complete the task of converting Roman numerals to Arabic numerals int romanToInt(char * s){ int symbolValues[26]; symbolValues['I' - 'A'] = 1; symbolValues['V' - 'A'] = 5; symbolValues['X' - 'A'] = 10; symbolValues['L' -.

2022-02-28 19:38:59 52

原创 leetcode 2 两数求和 C

Use C to complete the task of summing two numbersint* twoSum(int* nums, int numsSize, int target,int* returnSize) { int i,j; *returnSize=2; int *result=NULL; for(i=0;i<numsSize-1;i++) { for(j=i+1;j<numsSize;j++) .

2022-02-28 19:38:01 83

原创 LeetCode 1 两数求和

Use go language to complete the task of summing two numbersfunc twoSum(nums []int, target int) []int { var re []int for i:=0;i<len(nums)-1;i++{ for j:=i+1;j<len(nums);j++{ if nums[i] + nums[j] ==target{ .

2022-02-28 19:36:56 53

原创 如何在CENTOS以及阿里云ECS上安装go及gin框架

First install the go language compilation environment in CentOS, download the go language archive from the official website and put it in the usr/locao directory, then use the command:tar -C /usr/local/go -zxvf /usr/local/go1.17.6.linux-amd64.tar.gzEx

2022-02-28 19:21:00 331 1

原创 云计算概述

对于云计算的浅显认知

2022-02-28 19:06:11 616

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除