- 博客(6)
- 收藏
- 关注
原创 LeetCode 003 JAVA
#LeetCode 003 JAVA//滑动窗口class Solution { public int lengthOfLongestSubstring(String s) { HashMap<Character, Integer> map = new HashMap<Character, Integer>(); int firs...
2020-02-12 20:48:03 93
原创 LeetCode 002 JAVA
LeetCode 001 JAVA/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { val = x; } * } */class Solution { public Li...
2020-02-11 21:34:41 72
原创 LeetCode 001 JAVA
LeetCode 001 JAVAclass Solution { public int[] twoSum(int[] nums, int target) { for (int i = 0; i<nums.length; i++) { for (int j = i+1; j<nums.length; j++) { if (nums[j] == target ...
2020-02-11 21:33:22 104
原创 PAT C++ 1003A
PAT C++ 1003A#include <iostream>#include <algorithm>#include <vector>#include <map>#include <set>#include <stack>#include <string>#include <queue&g...
2020-02-11 18:57:39 103
原创 PAT C++ 1002A
PAT C++ 1002A#include <cstdio>#include <iostream>#include <algorithm>#define max_n 1001using namespace std;int main(){ float ans[max_n] = {0}; int num; int N; ...
2020-02-11 18:55:52 82
原创 PAT C++ 1001A
PAT C++ 1001A#include <cstdio>#include <stdio.h>#include <iostream>#include <algorithm>#include <string.h>#include <string>#include <cstring>#define M...
2020-02-11 18:52:46 102
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人