- 博客(31)
- 收藏
- 关注
原创 【flutter 3】打包 windows桌面端程序 exe
发现全网都是非常旧的教程,现在打包Windows desktop程序不需要装go语言什么的首先这个flutter程序可以运行的。
2022-09-09 15:57:09
1178
2
原创 笔试基础知识点
基于TCP或UDP的应用层协议有哪些?——Linux网络编程1、基于TCP的应用层协议有:HTTP、FTP、SMTP、TELNET、SSHHTTP ( 用的最多) HyperText Transfer Protocol(超文本传输协议) 80FTP File Transfer Protocol (文件传输协议) 20用于传输数据,21用于传输控制信息SMTP Simple Mail Transfer Protocol (简单邮件传输协议) 25TELNET Teletype over the
2020-09-11 11:15:52
138
原创 JS知识点
JS9.跨域是有哪几种方式实现的(什么是跨域,限制了什么,不同源的话会进行什么策略)跨域的方式有:jsonP、nigix的代理、websocket以及php端修改header。代理设置了location的哪一项?websocket是怎么进行跨域的?php修改header为很么修改了就想能跨域了?10.this指向普通函数和箭头函数的this,以及怎么改变普通函数里的this指向11.apply、call、bind,区别apply怎样实现bindES612.promise和async a
2020-09-10 22:29:48
152
原创 JS小知识点
替换最后一个匹配项使用方法:replace使用replace匹配的是第一个匹配项,或者使用g进行全局匹配,与需求不符匹配最后一个匹配项并替换,需要用到一种贪婪模式var str = 000p111p222p333str = str.replace(/(.*)p/, '$1div')console.log(str) //000p111p222div333...
2020-09-10 22:16:21
126
转载 OC-判断字符串为空
判断字符串为空:看似简单的问题,有人会说不就使用[string isEqualToString:@""]或者更简单的string.text == nil就行了嘛。但是并没有考虑到其中存在的一些问题,例如当字符串中存在空格或者换行时或者当请求后台数据时得到的是进行JSON解析的时候, 如果解析出的NSDictionary中某个key对应的value为空, 则系统会把它处理为NSNull类的单例对象。这些情况下,上面的判断方法就不会起到作用。具体实现:(BOOL)isBlankString:(NSStri
2020-08-03 14:41:00
1311
原创 Error: Permission denied (publickey) 的解决方法
这一切都是源于智障的我在创建SSH Key:$ ssh-keygen -t rsa -C "youremail@example.com"你需要把邮件地址换成你自己的邮件地址,然后一路回车,使用默认值即可,由于这个Key也不是用于军事目的,所以也无需设置密码。并没有一路回车,而是设置了一个文件名,让ssh储存在这个文件里。然后主目录下的.ssh文件夹里面没有id_rsa.pub和id_rsa...
2019-11-22 10:35:19
1276
原创 'utf-8' codec can't decode byte 0xd5 in position 0: invalid continuation byte
辣机记事本毁我青春
2019-10-07 20:26:47
3619
3
原创 3. Longest Substring Without Repeating Characters 无重复字符的最长子串
3. Longest Substring Without Repeating Charactershttps://leetcode.com/problems/longest-substring-without-repeating-characters/DescriptionGiven a string, find the length of the longest substring wit...
2019-09-15 20:35:54
119
原创 2. Add Two Numbers 两数相加 #Linked List #Math
2. Add Two Numbershttps://leetcode.com/problems/add-two-numbers/DescriptionYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order an...
2019-09-14 22:54:00
141
原创 191. Number of 1 Bits 位1的个数 #Bit Manipulation
文章目录191. Number of 1 BitsDescriptionSolutionsSubmissionsSummary191. Number of 1 Bitshttps://leetcode.com/problems/reverse-bits/DescriptionReverse bits of a given 32 bits unsigned integer.Example ...
2019-09-13 19:06:08
126
原创 190. Reverse Bits 颠倒二进制位 #Bit Manipulation
颠倒给定的 32 位无符号整数的二进制位。文章目录[LC] 190. Reverse BitsDescriptionSolutionsSubmissionsSummary[LC] 190. Reverse Bitshttps://leetcode.com/problems/rotate-array/DescriptionGiven an array, rotate the array t...
2019-09-11 21:40:43
419
原创 189. Rotate Array 反转数组 #Array
文章目录189. Rotate ArrayDescriptionSolutionsSubmissionsSummary189. Rotate Arrayhttps://leetcode.com/problems/rotate-array/DescriptionGiven an array, rotate the array to the right by k steps, where k ...
2019-09-11 15:35:26
170
原创 168. Excel Sheet Column Title
文章目录168. Excel Sheet Column TitleDescriptionSolutionsSubmissionsSummary168. Excel Sheet Column Titlehttps://leetcode.com/problems/excel-sheet-column-title/Description将十进制转为26进制。Given a positive i...
2019-05-12 19:15:39
99
原创 167. Two Sum II - Input array is sorted
文章目录167. Two Sum II - Input array is sortedDescriptionSolutionsSubmissionsSummary167. Two Sum II - Input array is sortedhttps://leetcode.com/problems/two-sum-ii-input-array-is-sorted/DescriptionSo...
2019-05-12 18:57:07
124
原创 160. Intersection of Two Linked Lists - Java
文章目录160. Intersection of Two Linked ListsDescriptionSolutionsSubmissionsSummary160. Intersection of Two Linked Listshttps://leetcode.com/problems/intersection-of-two-linked-lists/DescriptionSoluti...
2019-05-10 21:24:30
160
原创 141. Linked List Cycle - Java
文章目录141. Linked List CycleDescriptionSolutionsSubmissionsSummary141. Linked List Cyclehttps://leetcode.com/problems/linked-list-cycle/DescriptionGiven a linked list, determine if it has a cycle in...
2019-05-09 10:05:06
202
原创 136. Single Number - Java
文章目录136. Single NumberDescriptionSolutionsSubmissionsSummary136. Single Numberhttps://leetcode.com/problems/single-number/DescriptionGiven a non-empty array of integers, every element appears twic...
2019-05-08 10:28:21
175
原创 125. Valid Palindrome
文章目录125. Valid PalindromeDescriptionSolutionsSubmissionsSummary125. Valid Palindromehttps://leetcode.com/problems/valid-palindrome/DescriptionGiven a string, determine if it is a palindrome, consi...
2019-05-07 13:13:57
118
原创 122. Best Time to Buy and Sell Stock II
文章目录122. Best Time to Buy and Sell Stock IIDescriptionSolutionsSubmissionsSummary122. Best Time to Buy and Sell Stock IIhttps://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/Description...
2019-05-06 22:31:25
95
原创 121. Best Time to Buy and Sell Stock
文章目录121. Best Time to Buy and Sell StockDescriptionSolutionsSubmissionsSummary121. Best Time to Buy and Sell Stockhttps://leetcode.com/problems/best-time-to-buy-and-sell-stock/DescriptionSolutions...
2019-05-06 21:41:15
111
原创 119. Pascal's Triangle II
https://leetcode.com/problems/pascals-triangle-ii/class Solution {public List getRow(int rowIndex) {List front=new ArrayList<>();front.add(1);for(int i=1;i<=rowIndex;i++){List ls=new A...
2019-04-27 11:06:15
123
原创 118. Pascal's Triangle
文章目录118. Pascal's TriangleDescriptionSolutionsSubmissionsSummary118. Pascal’s TriangleDescriptionSolutionsSubmissionsSummary
2019-04-26 22:10:54
90
原创 112. Path Sum
文章目录112. Path SumDescriptionSolutionsSubmissionsSummary112. Path Sumhttps://leetcode.com/problems/path-sum/DescriptionGiven a binary tree and a sum, determine if the tree has a root-to-leaf path s...
2019-04-25 21:48:16
99
原创 111. Minimum Depth of Binary Tree
文章目录111. Minimum Depth of Binary TreeDescriptionSolutionsSubmissionsSummary111. Minimum Depth of Binary Treehttps://leetcode.com/problems/minimum-depth-of-binary-tree/DescriptionGiven a binary tre...
2019-04-24 10:46:32
120
原创 110. Balanced Binary Tree
就是每个deep(parent)=max(deep(l),deep®)if(deep(l)–deep®绝对值>1) return false就是后序遍历,先把左右儿子的深度算出来
2019-04-23 13:55:38
111
原创 108. Convert Sorted Array to Binary Search Tree
文章目录108. Convert Sorted Array to Binary Search TreeDescriptionSolutionsSubmissionsSummary108. Convert Sorted Array to Binary Search TreeDescriptionGiven an array where elements are sorted in ascend...
2019-04-23 11:14:28
107
原创 107.Binary Tree Level Order Traversal II
107.Binary Tree Level Order Traversal IIDescriptionbinary-tree-level-order-traversal-iiGiven a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left to right,...
2019-04-21 16:10:37
118
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人