摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 条件运算符也叫三元运算符 * 语法: * 条件表达式?语句1:语句2; * - 执行的流 阅读全文
posted @ 2023-02-26 20:59
垂序葎草
阅读(42)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 相等运算符用来比较两个值是否相等, * 如果相等会返回true,否则返回false * 阅读全文
posted @ 2023-02-26 20:58
垂序葎草
阅读(34)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 在字符串中使用转义字符输入Unicode编码 * \u四位编码 */ console.l 阅读全文
posted @ 2023-02-26 20:56
垂序葎草
阅读(15)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 通过关系运算符可以比较两个值之间的大小关系, * 如果关系成立它会返回true,如果关系 阅读全文
posted @ 2023-02-26 20:55
垂序葎草
阅读(33)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * = * 可以将符号右侧的值赋值给符号左侧的变量 * += * a += 5 等价于 a 阅读全文
posted @ 2023-02-26 20:53
垂序葎草
阅读(31)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * JS中为我们提供了三种逻辑运算符 * ! 非 * - !可以用来对一个值进行非运算 * 阅读全文
posted @ 2023-02-26 20:48
垂序葎草
阅读(38)
评论(0)
推荐(0)
摘要:
20230302 顺利通过 20230306 如果r扫描用while,不能贪心的减少不必要的字母 20230314 顺利通过 原题解 ###题目 约束 ###题解 class Solution { public: unordered_map <char, int> ori, cnt; bool ch 阅读全文
posted @ 2023-02-26 20:00
垂序葎草
阅读(24)
评论(0)
推荐(0)
摘要:
20230302 顺利通过 20230306 顺利通过 20230314 顺利通过 原题解 ###题目 约束 ###题解 ####解法一 class Solution { public: void sortColors(vector<int>& nums) { int n = nums.size() 阅读全文
posted @ 2023-02-26 19:56
垂序葎草
阅读(23)
评论(0)
推荐(0)
摘要:
20230226 顺利通过 20230227 顺利通过 20230301 顺利通过 20230304 顺利通过 20230314 顺利通过 原题解 ###题目 约束 ###题解 class Solution { public: int minDistance(string word1, string 阅读全文
posted @ 2023-02-26 01:07
垂序葎草
阅读(32)
评论(0)
推荐(0)
摘要:
20230226 顺利通过 20230227 顺利通过 20230301 顺利通过 20230304 顺利通过 20230314 顺利通过 原题解 ###题目 约束 ###题解 ####解法一 class Solution { public: int climbStairs(int n) { int 阅读全文
posted @ 2023-02-26 00:34
垂序葎草
阅读(28)
评论(0)
推荐(0)
浙公网安备 33010602011771号