xinyu04

导航

上一页 1 2 3 4 5 6 7 ··· 30 下一页

2022年10月8日 #

[Oracle] LeetCode 205 Isomorphic Strings

摘要: Given two strings s and t, determine if they are isomorphic. Two strings s and t are isomorphic if the characters in s can be replaced to get t. All o 阅读全文

posted @ 2022-10-08 15:48 Blackzxy 阅读(19) 评论(0) 推荐(0) 编辑

2022年10月5日 #

[Oracle] LeetCode 41 First Missing Positive 思维

摘要: Given an unsorted integer array nums, return the smallest missing positive integer. You must implement an algorithm that runs in $O(n)$ time and uses 阅读全文

posted @ 2022-10-05 04:28 Blackzxy 阅读(12) 评论(0) 推荐(0) 编辑

2022年10月4日 #

[Oracle] LeetCode 160 Intersection of Two Linked Lists

摘要: Given the heads of two singly linked-lists headA and headB, return the node at which the two lists intersect. If the two linked lists have no intersec 阅读全文

posted @ 2022-10-04 20:24 Blackzxy 阅读(9) 评论(0) 推荐(0) 编辑

[Oracle] LeetCode 199 Binary Tree Right Side View

摘要: Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bot 阅读全文

posted @ 2022-10-04 17:20 Blackzxy 阅读(11) 评论(0) 推荐(0) 编辑

2022年10月3日 #

[Oracle] LeetCode 48 Rotate Image 思维

摘要: You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You have to rotate the image in-place, which means 阅读全文

posted @ 2022-10-03 20:45 Blackzxy 阅读(13) 评论(0) 推荐(0) 编辑

[Oracle] LeetCode 141 Linked List Cycle 判环

摘要: Given head, the head of a linked list, determine if the linked list has a cycle in it. There is a cycle in a linked list if there is some node in the 阅读全文

posted @ 2022-10-03 20:19 Blackzxy 阅读(7) 评论(0) 推荐(0) 编辑

[Oracle] LeetCode 2 Add Two Numbers

摘要: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes conta 阅读全文

posted @ 2022-10-03 03:41 Blackzxy 阅读(20) 评论(0) 推荐(0) 编辑

2022年10月2日 #

[Oracle] LeetCode 54 Spiral Matrix 模拟

摘要: Given an m x n matrix, return all elements of the matrix in spiral order. Solution 点击查看代码 class Solution { public: vector<int> spiralOrder(vector<vect 阅读全文

posted @ 2022-10-02 21:33 Blackzxy 阅读(3) 评论(0) 推荐(0) 编辑

2022年10月1日 #

[Oracle] LeetCode 53 Maximum Subarray 贪心

摘要: Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. A subarray is 阅读全文

posted @ 2022-10-01 20:47 Blackzxy 阅读(16) 评论(0) 推荐(0) 编辑

[Oracle] LeetCode 37 Sudoku Solver

摘要: Write a program to solve a Sudoku puzzle by filling the empty cells. A sudoku solution must satisfy all of the following rules: Each of the digits 1-9 阅读全文

posted @ 2022-10-01 16:27 Blackzxy 阅读(10) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 30 下一页