摘要: Google诞生于Stanford 1999年 千禧年时的google 2001年 2002年 2003年 2004年 2005年 2006年 收购youtube 2007年 2008年 2009年 2010年 2012年 2016年 2017年 2018年 2020年 现在 这些都是网站的快照,我 阅读全文
posted @ 2023-02-25 11:03 越菜越自信 阅读(38) 评论(0) 推荐(0)
摘要: I learned tree data structure again and watched the video by IIT professor. Leetcode 144 solved by recursion is very simple to understand, but i try u 阅读全文
posted @ 2022-07-31 16:29 越菜越自信 阅读(21) 评论(0) 推荐(0)
摘要: Add a node at linked list end #include <stdio.h> #include <stdlib.h> //malloc typedef struct node{ int data; struct node* next; }*list; list add_node_ 阅读全文
posted @ 2022-07-13 00:04 越菜越自信 阅读(27) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { int a = 1025; int *p = &a; char *p0 = (char*)p; printf("Address = %p, Value = %d\n",p0,*p0); printf("Address = %p, Valu 阅读全文
posted @ 2022-07-06 22:07 越菜越自信 阅读(38) 评论(0) 推荐(0)
摘要: leetcode 2078 仔細認真理解題目的輸入,就發現這題實際上是在找最大值,秉承用最簡單的解法,就是枚舉,兩兩比對, 取下標的絕對值,每次比對之後比較是否比最大值大,如果是就更新最大值。 class Solution { public: int maxDistance(vector<int>& 阅读全文
posted @ 2022-07-04 23:23 越菜越自信 阅读(26) 评论(0) 推荐(0)
摘要: class Solution { bool isMatch(const string& s, const string& t) { int i = 0; int j = 0; while(i < s.size() && j < t.size()) { if(s[i] == t[j]) { ++i, 阅读全文
posted @ 2022-06-06 00:08 越菜越自信 阅读(25) 评论(0) 推荐(0)
摘要: #include <stdio.h> int a[1010]; void Input(int n, int *a) { for(int i = 0; i < n; ++i) { scanf("%d", &a[i]); } } void Output(int n, int *a) { for(int 阅读全文
posted @ 2022-06-03 01:16 越菜越自信 阅读(20) 评论(0) 推荐(0)
摘要: char vowels[] = "aeiouAEIOU"; bool isVowel(char c) { // (1) int i; for(i = 0; vowels[i]; ++i) { if(vowels[i] == c) { return true; } } return false; } 阅读全文
posted @ 2022-06-03 00:59 越菜越自信 阅读(31) 评论(0) 推荐(0)
摘要: #define maxp 65536 #define ll long long int primes[maxp]; bool notprime[maxp]; // 1 void Eratosthenes() { notprime[1] = true; primes[0] = 0; for (int 阅读全文
posted @ 2022-06-03 00:39 越菜越自信 阅读(54) 评论(0) 推荐(0)
摘要: ![](https://img2022.cnblogs.com/blog/2540508/202205/2540508-20220530123056807-590338924.png) ![](https://img2022.cnblogs.com/blog/2540508/202205/2540508-20220530123138964-1691593493.png) ![](https://i 阅读全文
posted @ 2022-05-30 12:32 越菜越自信 阅读(15) 评论(0) 推荐(0)