- 博客(32)
- 收藏
- 关注
原创 如何实现UNSW CSE/IT远程机和本地文件互传
上传下载下载文件夹scp -r zID@login.cse.unsw.edu.au:待下载文件路径 本地文件夹路径例:scp -r z5234567@login.cse.unsw.edu.au:/srvr/z5234567/ass2 /Users/Monkey/Documents/UNSW/9315/ass2
2021-04-13 18:29:19
1507
原创 COMP9417 & COMP9517 tips-plt输出图片
散点图plt.scatter(x, y, s=1,alpha=0.6)s:点的大小alpha:透明度保存图片plt.savefig(‘test.png’,dpi=1800)dpi清晰度
2021-04-11 10:51:09
477
原创 Azure Learning Path -基础
Azure Cloud ShellUsing the command line to control the App service start or stop. I used this to stop my web stop and restart.Azure regionsAzure has more global regions than any other cloud provider.Geographies: by geopolitical boundaries or country b
2020-07-29 15:11:48
324
原创 COMP9044 Week1a Unix
What is Unix?First, it is an operation system. eg: Windows, MacOS XHistory:Developed by AT&T employees at Bell Labs(1969-1971)MULTICS: Multiplexed Information and Computer ServiceUnics: Uniplexed Information and Computing Service instead of Mult
2020-06-09 10:15:02
398
原创 COMP9313 Big Data Management week1a
IntroductionLecturer:Yifang SunConsidering some students might have time differecnce lecturer upload his pre-recorded lecture video to google drive and Baidu Netdisk…hmmmmm…alothough I am unsatisfied with pre-rocorded lecture but he uploaded video to Bai
2020-06-01 20:36:00
464
原创 [LeetCode]1464. Maximum Product of Two Elements in an Array Easy
Given the array of integers nums, you will choose two different indices i and j of that array. Return the maximum value of (nums[i]-1)*(nums[j]-1).Example 1:Input: nums = [3,4,5,2]Output: 12Explanation: If you choose the indices i=1 and j=2 (indexed fr
2020-05-31 20:14:36
249
原创 程序猿+审计狗的高效办公
审计狗????:想用vlookup找到全年客户每次交易对应的实时汇率。程序猿????:嗯审计狗????:客户给的数据日期格式是:月/日/年,但是汇率表的日期格式是:日/月/年。尝试了在excel中更改格式,失败。。。。尝试了用year(B1)分别提取年月日再合并。。。失败,因为客户提供的那个“日期格式”excel根本无法识别出来哪个是日哪个是月。。。。尝试了用left和right去提取日月年,失败。。。因为有些月份比如3 是1位数,12是两位数。。。位置不固定????把两列日期发给了????
2020-05-27 18:26:05
423
原创 [LeetCode]94. Binary Tree Inorder Traversal
Given a binary tree, return the inorder traversal of its nodes’ values.Example:Input: [1,null,2,3]12/3Output: [1,3,2]Follow up: Recursive solution is trivial, could you do it iteratively?The methods and the ideas:inorder -> FILO (First In, La
2020-05-26 19:54:51
192
原创 [LeetCode]1. Two Sum
This question is easy and …not that easy for me.Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the same element
2020-05-20 18:05:04
184
原创 [LeetCode]383. Ransom Note
Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ransom note can be constructed from the magazines ; otherwise, it will return false.Each letter in the magazi
2020-05-18 17:45:12
295
原创 COMP9331/3331 week9 Link layer_1
终于到了第五层链路层概念一:术语介绍(terminology)host and routers:nodescommunication channels that connect adjacent nodes along communication path: linkswired linkswireless linksLANslayer-2 packet: frame, encap...
2020-05-08 05:39:34
566
原创 COMP9331 week8 Network Layer:Control Plane
Control plane是路由器执行路由(routing),也就是路由器之间的传输。这一章就是解决路由之间的传递怎么减少成本。比如怎么找最短路径?概念一:一些会用到的名词缩写1.网络的自制系统(Autonomous System-AS)2.LSA(link state advertisement)路由是通过什么途径去找到我连接了谁呢?每个路由向所有的link(除了income 的l...
2020-05-07 16:42:06
430
原创 COMP9321 week4 API
我个人学的最云里雾里的一章。。。。我的理解api就像银行柜员,我们去存钱取钱,我们只用告诉柜员就行了,不用知道银行内部怎么操作。所以API要能听得懂客户说话,还要会操作银行系统。API按照能“听懂”的语言也分成很多种这门课只关注一种API概念一:REST API (REpresentational State Transfer)这是一种风格,不是规定死的协议。eg:API...
2020-05-06 19:25:27
327
原创 COMP 9321 week3 data visualisation
概念一:为啥用deep learning1. 能很好的处理非结构数据处理2.数据量很大的时候= 更好的学习3.sometimes更精准4.无需很
2020-05-05 07:35:53
339
原创 week10 deep learning
概念一:为啥用deep learning1. 能很好的处理非结构数据处理2.数据量很大的时候= 更好的学习3.sometimes更精准4.无需做很多特征工程,尤其是当不了解这些特征时候,机器自己会去学。概念二:Neural Networks 神经网络把神经模拟成公式:1.上图cell body中的f就是Activation function这个f的功能就...
2020-05-05 07:08:41
211
原创 COMP9321 week3a Data pre-processing
pre-processing这一个步骤是我觉得数据处理里面最麻烦的步骤。。。。
2020-05-04 19:50:30
289
原创 COMP9321 Week2 Data Cleansing
概念一:Python pandas举例的话,最近参加了一个比赛,就用比赛数据举例。1.describe()This function returns the count, mean, standard deviation, minimum and maximum values and the quantiles of the data.**BUT!**不包含 NaN values.da...
2020-05-04 12:54:03
398
原创 COMP9321 Week1b Data Access
数据服务第一步就是获取数据概念一:数据形式所以就要先了解一下数据有哪些形式1.乱七八糟的文本格式Unformatted text特点:太不友好了,这个后面做作业的时候就感受到这个难处。。。。这个基本上就是靠人工智能解决了 = =也就是:Natural language processing(NLP)(syntax), Machine Learning(ML)(pattens).能解决...
2020-05-03 21:40:24
880
原创 COMP 9321 week1a Introduction of data services
第一周真的就是简介,听的我真的一头雾水,又宏观又微观现在到了期末复习阶段,在回过头看,应该会好点。概念一:面向数据的服务(作为一个转专业来的新手。。。我到现在还是不太能真正理解什么叫面向XXXX的意思。。。。)这个图老师并没有详细的讲我就自己看了一下这个文章https://blog.csdn.net/wolf96/article/details/40105787恕我没有能力去描述这...
2020-05-01 16:45:01
469
原创 COMP 9814 Week5b Planning
What is Planning决定做啥有5个Assumptions:1)世界是确定的(deterministic)2)没有外力可以改变世界的状态3)agent知道自己的状态4)从一个状态到另一个状态中间没有时间间隔5)目标是指:一种需要达到或者保持的状态What is Planning agent?更加灵活 because agent’s behaviour can e...
2020-05-01 09:52:33
398
原创 141. Linked List Cycle
Given a linked list, determine if it has a cycle in it.To represent a cycle in the given linked list, we use an integer pos which represents the position (0-indexed) in the linked list where tail con...
2020-02-23 20:00:51
107
原创 21. Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Example:Input: 1->2->4, 1->3->4Output: 1->...
2020-02-23 19:58:53
100
原创 [C] numeral systems 进制转换
binary(base 2)hexadecimal [ˌheksəˈdesɪml] (base 16)decimal(base 10)echo “obase=输出进制数;ibase=输入进制数;输入的数字” | bcbinarydecimalhexadecimal000111102211331004410155...
2020-02-19 16:26:48
204
原创 700. Search in a Binary Search Tree(C)
700. Search in a Binary Search TreeGiven the root node of a binary search tree (BST) and a value. You need to find the node in the BST that the node’s value equals the given value. Return the subtree...
2020-02-19 09:52:11
196
原创 100. Same Tree
/** * Definition for a binary tree node. * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */bool isSameTree(struct TreeNode* p, struct TreeN...
2020-02-18 18:15:20
105
原创 82. Remove Duplicates from Sorted List II
LeetcodeGiven a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.Example 1:Input: 1->2->3->3->4->4->5Output:...
2020-02-18 15:33:36
125
原创 Recursive
Recursive:f(n) = f(n-1)+1;f(0) = 1;then f(1) = 2, f(2)=3…so the most important thing is base case;eg1:https://blog.csdn.net/DannieZ/article/details/104374587206. Reverse Linked Listf(n) is f(h...
2020-02-18 14:45:16
354
原创 83. Remove Duplicates from Sorted List
/** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */struct ListNode* deleteDuplicates(struct ListNode* head){ if ( head==NULL |...
2020-02-18 14:24:05
143
原创 206. Reverse Linked List
/** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */struct ListNode* reverseList(struct ListNode* head){ if (head == NULL ...
2020-02-18 14:21:17
155
转载 9311-ass1判断Python输入是否为数字
转载自https://www.cnblogs.com/lgqboke/p/5985458.html判断Python输入是否为数字在接收raw_input方法后,判断接收到的字符串是否为数字例如:str = raw_input(“please input the number:”)if str.isdigit():为True表示输入的所有字符都是数字,否则,不是全部为数字str为字符串...
2019-10-25 22:29:05
860
原创 invalid syntax的各种情况
if check_pattern1(a, b, c): print("Sure! It is ", roman.intToRoman(int(c))else: print("I don't get what you want, sorry mate!")File “/Users/danzhao/PycharmProjects/9021/test.py”, line 41el...
2019-10-25 21:06:26
7410
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人