Skip to content

Commit

Permalink
Site updated: 2022-12-08 10:22:23
Browse files Browse the repository at this point in the history
  • Loading branch information
LetMeFly666 committed Dec 8, 2022
1 parent 3cae026 commit 40d1640
Show file tree
Hide file tree
Showing 784 changed files with 269,147 additions and 0 deletions.
275 changes: 275 additions & 0 deletions 2022/03/03/LeetCode 0564.寻找最近的回文数/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

280 changes: 280 additions & 0 deletions 2022/05/25/LeetCode 0049.字母异位词分组/index.html

Large diffs are not rendered by default.

280 changes: 280 additions & 0 deletions 2022/05/25/LeetCode 0050.Pow(x, n)/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions 2022/05/26/LeetCode 0699.掉落的方块/index.html

Large diffs are not rendered by default.

282 changes: 282 additions & 0 deletions 2022/05/27/LeetCode 0051.N皇后/index.html

Large diffs are not rendered by default.

285 changes: 285 additions & 0 deletions 2022/05/27/LeetCode 0052.N皇后II/index.html

Large diffs are not rendered by default.

270 changes: 270 additions & 0 deletions 2022/05/27/LeetCode 面试题 17.11. 单词距离/index.html

Large diffs are not rendered by default.

361 changes: 361 additions & 0 deletions 2022/05/28/LeetCode 0054.螺旋矩阵/index.html

Large diffs are not rendered by default.

279 changes: 279 additions & 0 deletions 2022/05/28/LeetCode 0055.跳跃游戏/index.html

Large diffs are not rendered by default.

285 changes: 285 additions & 0 deletions 2022/05/28/LeetCode 1021.删除最外层的括号/index.html

Large diffs are not rendered by default.

301 changes: 301 additions & 0 deletions 2022/05/29/LeetCode 0156.上下翻转二叉树/index.html

Large diffs are not rendered by default.

277 changes: 277 additions & 0 deletions 2022/05/29/LeetCode 0157.用Read4读取N个字符/index.html

Large diffs are not rendered by default.

280 changes: 280 additions & 0 deletions 2022/05/30/LeetCode 1022.从根到叶的二进制数之和/index.html

Large diffs are not rendered by default.

335 changes: 335 additions & 0 deletions 2022/06/05/LeetCode 0478.在圆内随机生成点/index.html

Large diffs are not rendered by default.

297 changes: 297 additions & 0 deletions 2022/06/25/LeetCode 剑指 Offer II 0091. 粉刷房子/index.html

Large diffs are not rendered by default.

282 changes: 282 additions & 0 deletions 2022/06/26/LeetCode 0086.分隔链表/index.html

Large diffs are not rendered by default.

308 changes: 308 additions & 0 deletions 2022/06/26/LeetCode 0710. 黑名单中的随机数/index.html

Large diffs are not rendered by default.

322 changes: 322 additions & 0 deletions 2022/06/27/LeetCode 0091.解码方法/index.html

Large diffs are not rendered by default.

305 changes: 305 additions & 0 deletions 2022/07/01/LeetCode 0241.为运算表达式设计优先级/index.html

Large diffs are not rendered by default.

298 changes: 298 additions & 0 deletions 2022/07/02/LeetCode 0871.最低加油次数/index.html

Large diffs are not rendered by default.

305 changes: 305 additions & 0 deletions 2022/07/03/LeetCode 0102.二叉树的层序遍历/index.html

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions 2022/07/03/LeetCode 0556.下一个更大元素III/index.html

Large diffs are not rendered by default.

288 changes: 288 additions & 0 deletions 2022/07/04/LeetCode 0107.二叉树的层序遍历II/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

281 changes: 281 additions & 0 deletions 2022/07/04/LeetCode 1200.最小绝对差/index.html

Large diffs are not rendered by default.

338 changes: 338 additions & 0 deletions 2022/07/09/AtCoder Beginner Contest 259 - A - Growth Record/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

342 changes: 342 additions & 0 deletions 2022/07/09/AtCoder Beginner Contest 259 - C - XX to XXX/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

287 changes: 287 additions & 0 deletions 2022/07/09/LeetCode 0109.有序链表转换二叉搜索树/index.html

Large diffs are not rendered by default.

296 changes: 296 additions & 0 deletions 2022/07/09/LeetCode 0110.平衡二叉树/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

285 changes: 285 additions & 0 deletions 2022/07/11/LeetCode 0111.二叉树的最小深度/index.html

Large diffs are not rendered by default.

297 changes: 297 additions & 0 deletions 2022/07/11/LeetCode 0112.路径总和/index.html

Large diffs are not rendered by default.

302 changes: 302 additions & 0 deletions 2022/07/11/LeetCode 0676.实现一个魔法字典/index.html

Large diffs are not rendered by default.

306 changes: 306 additions & 0 deletions 2022/07/12/LeetCode 0113.路径总和II/index.html

Large diffs are not rendered by default.

310 changes: 310 additions & 0 deletions 2022/07/12/LeetCode 0114.二叉树展开为链表/index.html

Large diffs are not rendered by default.

311 changes: 311 additions & 0 deletions 2022/07/12/LeetCode 1252.奇数值单元格的数目/index.html

Large diffs are not rendered by default.

298 changes: 298 additions & 0 deletions 2022/07/13/LeetCode 0735.行星碰撞/index.html

Large diffs are not rendered by default.

280 changes: 280 additions & 0 deletions 2022/07/14/LeetCode 0067.二进制求和/index.html

Large diffs are not rendered by default.

286 changes: 286 additions & 0 deletions 2022/07/14/LeetCode 1037.有效的回旋镖/index.html

Large diffs are not rendered by default.

291 changes: 291 additions & 0 deletions 2022/07/16/LeetCode 0115.不同的子序列/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

293 changes: 293 additions & 0 deletions 2022/07/17/LeetCode 0118.杨辉三角/index.html

Large diffs are not rendered by default.

299 changes: 299 additions & 0 deletions 2022/07/17/LeetCode 0565.数组嵌套/index.html

Large diffs are not rendered by default.

305 changes: 305 additions & 0 deletions 2022/07/18/LeetCode 0119.杨辉三角II/index.html

Large diffs are not rendered by default.

290 changes: 290 additions & 0 deletions 2022/07/18/LeetCode 0120.三角形最小路径和/index.html

Large diffs are not rendered by default.

336 changes: 336 additions & 0 deletions 2022/07/18/LeetCode 0749.隔离病毒/index.html

Large diffs are not rendered by default.

284 changes: 284 additions & 0 deletions 2022/07/19/LeetCode 0121.买卖股票的最佳时机/index.html

Large diffs are not rendered by default.

290 changes: 290 additions & 0 deletions 2022/07/19/LeetCode 0122.买卖股票的最佳时机II/index.html

Large diffs are not rendered by default.

320 changes: 320 additions & 0 deletions 2022/07/20/LeetCode 0123.买卖股票的最佳时机III/index.html

Large diffs are not rendered by default.

292 changes: 292 additions & 0 deletions 2022/07/20/LeetCode 0125.验证回文串/index.html

Large diffs are not rendered by default.

323 changes: 323 additions & 0 deletions 2022/07/20/LeetCode 1260.二维网格迁移/index.html

Large diffs are not rendered by default.

307 changes: 307 additions & 0 deletions 2022/07/21/LeetCode 0128.最长连续序列/index.html

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions 2022/07/21/LeetCode 0814.二叉树剪枝/index.html

Large diffs are not rendered by default.

313 changes: 313 additions & 0 deletions 2022/07/21/MaTiJi - MT2093 - 回文数数位/index.html

Large diffs are not rendered by default.

314 changes: 314 additions & 0 deletions 2022/07/21/MaTiJi - MT2095 - 曲径折跃/index.html

Large diffs are not rendered by default.

308 changes: 308 additions & 0 deletions 2022/07/21/MaTiJi - MT2201 - 各位之和/index.html

Large diffs are not rendered by default.

317 changes: 317 additions & 0 deletions 2022/07/21/MaTiJi - MT3182 - 填矩阵/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

291 changes: 291 additions & 0 deletions 2022/07/22/LeetCode 0130.被围绕的区域/index.html

Large diffs are not rendered by default.

280 changes: 280 additions & 0 deletions 2022/07/23/LeetCode 0131.分割回文串/index.html

Large diffs are not rendered by default.

336 changes: 336 additions & 0 deletions 2022/07/23/LeetCode 剑指 Offer II 0115. 重建序列/index.html

Large diffs are not rendered by default.

318 changes: 318 additions & 0 deletions 2022/07/24/LeetCode 0133.克隆图/index.html

Large diffs are not rendered by default.

303 changes: 303 additions & 0 deletions 2022/07/24/LeetCode 1184.公交站间的距离/index.html

Large diffs are not rendered by default.

293 changes: 293 additions & 0 deletions 2022/07/25/LeetCode 0135.分发糖果/index.html

Large diffs are not rendered by default.

275 changes: 275 additions & 0 deletions 2022/07/25/LeetCode 0136.只出现一次的数字/index.html

Large diffs are not rendered by default.

304 changes: 304 additions & 0 deletions 2022/07/25/LeetCode 0919.完全二叉树插入器/index.html

Large diffs are not rendered by default.

299 changes: 299 additions & 0 deletions 2022/07/26/LeetCode 0137.只出现一次的数字II/index.html

Large diffs are not rendered by default.

296 changes: 296 additions & 0 deletions 2022/07/26/LeetCode 0139.单词拆分/index.html

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions 2022/07/27/LeetCode 0140.单词拆分II/index.html

Large diffs are not rendered by default.

322 changes: 322 additions & 0 deletions 2022/07/27/LeetCode 0141.环形链表/index.html

Large diffs are not rendered by default.

308 changes: 308 additions & 0 deletions 2022/07/27/LeetCode 0592.分数加减运算/index.html

Large diffs are not rendered by default.

310 changes: 310 additions & 0 deletions 2022/07/28/LeetCode 0142.环形链表II/index.html

Large diffs are not rendered by default.

299 changes: 299 additions & 0 deletions 2022/07/28/LeetCode 0143.重排链表/index.html

Large diffs are not rendered by default.

291 changes: 291 additions & 0 deletions 2022/07/28/LeetCode 1331.数组序号转换/index.html

Large diffs are not rendered by default.

310 changes: 310 additions & 0 deletions 2022/07/29/LeetCode 0144.二叉树的前序遍历/index.html

Large diffs are not rendered by default.

297 changes: 297 additions & 0 deletions 2022/07/29/LeetCode 0145.二叉树的后序遍历/index.html

Large diffs are not rendered by default.

305 changes: 305 additions & 0 deletions 2022/07/29/LeetCode 0593.有效的正方形/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

293 changes: 293 additions & 0 deletions 2022/07/31/LeetCode 0149.直线上最多的点数/index.html

Large diffs are not rendered by default.

313 changes: 313 additions & 0 deletions 2022/07/31/LeetCode 0150.逆波兰表达式求值/index.html

Large diffs are not rendered by default.

298 changes: 298 additions & 0 deletions 2022/07/31/LeetCode 1161.最大层内元素和/index.html

Large diffs are not rendered by default.

294 changes: 294 additions & 0 deletions 2022/08/01/LeetCode 0151.颠倒字符串中的单词/index.html

Large diffs are not rendered by default.

297 changes: 297 additions & 0 deletions 2022/08/01/LeetCode 0152.乘积最大子数组/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

318 changes: 318 additions & 0 deletions 2022/08/03/LeetCode 0155.最小栈/index.html

Large diffs are not rendered by default.

319 changes: 319 additions & 0 deletions 2022/08/04/LeetCode 0167.两数之和II-输入有序数组/index.html

Large diffs are not rendered by default.

299 changes: 299 additions & 0 deletions 2022/08/04/LeetCode 0168.Excel表列名称/index.html

Large diffs are not rendered by default.

290 changes: 290 additions & 0 deletions 2022/08/04/LeetCode 1403.非递增顺序的最小子序列/index.html

Large diffs are not rendered by default.

302 changes: 302 additions & 0 deletions 2022/08/04/MaTiJi - MT2094 - 回文之时/index.html

Large diffs are not rendered by default.

305 changes: 305 additions & 0 deletions 2022/08/04/MaTiJi - MT2142 - 万民堂大厨/index.html

Large diffs are not rendered by default.

318 changes: 318 additions & 0 deletions 2022/08/04/MaTiJi - MT2165 - 小码哥的抽卡之旅1/index.html

Large diffs are not rendered by default.

308 changes: 308 additions & 0 deletions 2022/08/04/MaTiJi - MT3029 - 新月轩就餐/index.html

Large diffs are not rendered by default.

313 changes: 313 additions & 0 deletions 2022/08/05/LeetCode 0173.二叉搜索树迭代器/index.html

Large diffs are not rendered by default.

324 changes: 324 additions & 0 deletions 2022/08/05/LeetCode 0623.在二叉树中增加一行/index.html

Large diffs are not rendered by default.

326 changes: 326 additions & 0 deletions 2022/08/06/LeetCode 0174.地下城游戏/index.html

Large diffs are not rendered by default.

284 changes: 284 additions & 0 deletions 2022/08/06/LeetCode 1408.数组中的字符串匹配/index.html

Large diffs are not rendered by default.

280 changes: 280 additions & 0 deletions 2022/08/08/LeetCode 0179.最大数/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

301 changes: 301 additions & 0 deletions 2022/08/10/LeetCode 0640.求解方程/index.html

Large diffs are not rendered by default.

292 changes: 292 additions & 0 deletions 2022/08/11/LeetCode 1417.重新格式化字符串/index.html

Large diffs are not rendered by default.

282 changes: 282 additions & 0 deletions 2022/08/12/LeetCode 0188.买卖股票的最佳时机IV/index.html

Large diffs are not rendered by default.

310 changes: 310 additions & 0 deletions 2022/08/12/LeetCode 0189.轮转数组/index.html

Large diffs are not rendered by default.

286 changes: 286 additions & 0 deletions 2022/08/12/LeetCode 1282.用户分组/index.html

Large diffs are not rendered by default.

282 changes: 282 additions & 0 deletions 2022/08/14/LeetCode 0190.颠倒二进制位/index.html

Large diffs are not rendered by default.

299 changes: 299 additions & 0 deletions 2022/08/14/LeetCode 1422.分割字符串的最大得分/index.html

Large diffs are not rendered by default.

308 changes: 308 additions & 0 deletions 2022/08/16/LeetCode 1656.设计有序流/index.html

Large diffs are not rendered by default.

284 changes: 284 additions & 0 deletions 2022/08/17/LeetCode 1302.层数最深叶子节点的和/index.html

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions 2022/08/18/LeetCode 0200.岛屿数量/index.html

Large diffs are not rendered by default.

291 changes: 291 additions & 0 deletions 2022/08/19/LeetCode 0203.移除链表元素/index.html

Large diffs are not rendered by default.

294 changes: 294 additions & 0 deletions 2022/08/19/LeetCode 0205.同构字符串/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

326 changes: 326 additions & 0 deletions 2022/08/20/LeetCode 0654.最大二叉树/index.html

Large diffs are not rendered by default.

293 changes: 293 additions & 0 deletions 2022/08/21/LeetCode 0206.反转链表/index.html

Large diffs are not rendered by default.

290 changes: 290 additions & 0 deletions 2022/08/21/LeetCode 0207.课程表/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

305 changes: 305 additions & 0 deletions 2022/08/21/MaTiJi - MT2005 - 玉璋/index.html

Large diffs are not rendered by default.

304 changes: 304 additions & 0 deletions 2022/08/21/MaTiJi - MT2065 - 整数大小比较/index.html

Large diffs are not rendered by default.

309 changes: 309 additions & 0 deletions 2022/08/21/MaTiJi - MT2073 - 上传头像/index.html

Large diffs are not rendered by default.

346 changes: 346 additions & 0 deletions 2022/08/21/MaTiJi - MT3143 - 试管装液/index.html

Large diffs are not rendered by default.

296 changes: 296 additions & 0 deletions 2022/08/22/LeetCode 0209.长度最小的子数组/index.html

Large diffs are not rendered by default.

293 changes: 293 additions & 0 deletions 2022/08/22/LeetCode 0210.课程表II/index.html

Large diffs are not rendered by default.

322 changes: 322 additions & 0 deletions 2022/08/22/LeetCode 0655.输出二叉树/index.html

Large diffs are not rendered by default.

375 changes: 375 additions & 0 deletions 2022/08/22/MaTiJi - MT3203 - 填坑/index.html

Large diffs are not rendered by default.

307 changes: 307 additions & 0 deletions 2022/08/22/MaTiJi - MT3251 - 多重回文/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions 2022/08/26/LeetCode 1464.数组中两元素的最大乘积/index.html

Large diffs are not rendered by default.

329 changes: 329 additions & 0 deletions 2022/08/27/LeetCode 0662.二叉树最大宽度/index.html

Large diffs are not rendered by default.

282 changes: 282 additions & 0 deletions 2022/08/29/LeetCode 1470.重新排列数组/index.html

Large diffs are not rendered by default.

268 changes: 268 additions & 0 deletions 2022/08/30/Other-MatijiAutoLogin/index.html

Large diffs are not rendered by default.

289 changes: 289 additions & 0 deletions 2022/08/31/LeetCode 0946.验证栈序列/index.html

Large diffs are not rendered by default.

278 changes: 278 additions & 0 deletions 2022/09/03/LeetCode 0646.最长数对链/index.html

Large diffs are not rendered by default.

306 changes: 306 additions & 0 deletions 2022/09/04/LeetCode 1582.二进制矩阵中的特殊位置/index.html

Large diffs are not rendered by default.

307 changes: 307 additions & 0 deletions 2022/09/05/LeetCode 2105.给植物浇水II/index.html

Large diffs are not rendered by default.

290 changes: 290 additions & 0 deletions 2022/09/06/LeetCode 0226.翻转二叉树/index.html

Large diffs are not rendered by default.

291 changes: 291 additions & 0 deletions 2022/09/06/LeetCode 0828.统计子串中的唯一字符/index.html

Large diffs are not rendered by default.

292 changes: 292 additions & 0 deletions 2022/09/07/LeetCode 0228.汇总区间/index.html

Large diffs are not rendered by default.

302 changes: 302 additions & 0 deletions 2022/09/07/LeetCode 1592.重新排列单词间的空格/index.html

Large diffs are not rendered by default.

312 changes: 312 additions & 0 deletions 2022/09/08/LeetCode 0231.2的幂/index.html

Large diffs are not rendered by default.

285 changes: 285 additions & 0 deletions 2022/09/08/LeetCode 0234.回文链表/index.html

Large diffs are not rendered by default.

287 changes: 287 additions & 0 deletions 2022/09/08/LeetCode 0667.优美的排列II/index.html

Large diffs are not rendered by default.

294 changes: 294 additions & 0 deletions 2022/09/09/LeetCode 0236.二叉树的最近公共祖先/index.html

Large diffs are not rendered by default.

308 changes: 308 additions & 0 deletions 2022/09/09/LeetCode 1598.文件夹操作日志搜集器/index.html

Large diffs are not rendered by default.

282 changes: 282 additions & 0 deletions 2022/09/12/LeetCode 0257.二叉树的所有路径/index.html

Large diffs are not rendered by default.

304 changes: 304 additions & 0 deletions 2022/09/12/LeetCode 1608.特殊数组的特征值/index.html

Large diffs are not rendered by default.

282 changes: 282 additions & 0 deletions 2022/09/13/LeetCode 0263.丑数/index.html

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions 2022/09/13/LeetCode 0264.丑数II/index.html

Large diffs are not rendered by default.

275 changes: 275 additions & 0 deletions 2022/09/13/LeetCode 0670.最大交换/index.html

Large diffs are not rendered by default.

300 changes: 300 additions & 0 deletions 2022/09/14/LeetCode 0275.H指数II/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

307 changes: 307 additions & 0 deletions 2022/09/16/LeetCode 0289.生命游戏/index.html

Large diffs are not rendered by default.

286 changes: 286 additions & 0 deletions 2022/09/16/LeetCode 0290.单词规律/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

296 changes: 296 additions & 0 deletions 2022/09/18/LeetCode 0827.最大人工岛/index.html

Large diffs are not rendered by default.

291 changes: 291 additions & 0 deletions 2022/09/22/LeetCode 1640.能否连接形成数组/index.html

Large diffs are not rendered by default.

301 changes: 301 additions & 0 deletions 2022/09/23/CSDN - CSDN6题解/index.html

Large diffs are not rendered by default.

291 changes: 291 additions & 0 deletions 2022/09/23/LeetCode 0316.去除重复字母/index.html

Large diffs are not rendered by default.

394 changes: 394 additions & 0 deletions 2022/09/23/LeetCode 0707.设计链表/index.html

Large diffs are not rendered by default.

283 changes: 283 additions & 0 deletions 2022/09/24/LeetCode 0328.奇偶链表/index.html

Large diffs are not rendered by default.

298 changes: 298 additions & 0 deletions 2022/09/25/LeetCode 0329.矩阵中的最长递增路径/index.html

Large diffs are not rendered by default.

282 changes: 282 additions & 0 deletions 2022/09/25/LeetCode 0788.旋转数字/index.html

Large diffs are not rendered by default.

293 changes: 293 additions & 0 deletions 2022/09/27/LeetCode 0337.打家劫舍III/index.html

Large diffs are not rendered by default.

315 changes: 315 additions & 0 deletions 2022/09/27/Other-BandDomain2mail/index.html

Large diffs are not rendered by default.

328 changes: 328 additions & 0 deletions 2022/09/28/LeetCode 0338.比特位计数/index.html

Large diffs are not rendered by default.

266 changes: 266 additions & 0 deletions 2022/09/28/LeetCode 面试题 17.09. 第 k 个数/index.html

Large diffs are not rendered by default.

316 changes: 316 additions & 0 deletions 2022/09/28/MaTiJi - MT2140 - 双端队列/index.html

Large diffs are not rendered by default.

304 changes: 304 additions & 0 deletions 2022/09/28/MaTiJi - MT2320 - 跑图/index.html

Large diffs are not rendered by default.

305 changes: 305 additions & 0 deletions 2022/09/28/MaTiJi - MT2322 - 还是跑图/index.html

Large diffs are not rendered by default.

306 changes: 306 additions & 0 deletions 2022/09/28/MaTiJi - MT3252 - 子序列问题/index.html

Large diffs are not rendered by default.

298 changes: 298 additions & 0 deletions 2022/09/28/MaTiJi - MT3521 - X比Y/index.html

Large diffs are not rendered by default.

283 changes: 283 additions & 0 deletions 2022/09/29/LeetCode 0342.4的幂/index.html

Large diffs are not rendered by default.

276 changes: 276 additions & 0 deletions 2022/09/29/LeetCode 面试题 01.09. 字符串轮转/index.html

Large diffs are not rendered by default.

276 changes: 276 additions & 0 deletions 2022/10/01/LeetCode 0344.反转字符串/index.html

Large diffs are not rendered by default.

286 changes: 286 additions & 0 deletions 2022/10/01/LeetCode 0347.前K个高频元素/index.html

Large diffs are not rendered by default.

315 changes: 315 additions & 0 deletions 2022/10/01/LeetCode 1694.重新格式化电话号码/index.html

Large diffs are not rendered by default.

280 changes: 280 additions & 0 deletions 2022/10/02/LeetCode 0349.两个数组的交集/index.html

Large diffs are not rendered by default.

303 changes: 303 additions & 0 deletions 2022/10/02/LeetCode 0350.两个数组的交集II/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

299 changes: 299 additions & 0 deletions 2022/10/03/LeetCode 1784.检查二进制字符串字段/index.html

Large diffs are not rendered by default.

319 changes: 319 additions & 0 deletions 2022/10/04/LeetCode 0355.设计推特/index.html

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions 2022/10/04/LeetCode 0921.使括号有效的最少添加/index.html

Large diffs are not rendered by default.

290 changes: 290 additions & 0 deletions 2022/10/05/LeetCode 0811.子域名访问计数/index.html

Large diffs are not rendered by default.

297 changes: 297 additions & 0 deletions 2022/10/06/LeetCode 0927.三等分/index.html

Large diffs are not rendered by default.

293 changes: 293 additions & 0 deletions 2022/10/07/LeetCode 1800.最大升序子数组和/index.html

Large diffs are not rendered by default.

322 changes: 322 additions & 0 deletions 2022/10/08/LeetCode 0368.最大整除子集/index.html

Large diffs are not rendered by default.

299 changes: 299 additions & 0 deletions 2022/10/08/LeetCode 0870.优势洗牌/index.html

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions 2022/10/09/LeetCode 0856.括号的分数/index.html

Large diffs are not rendered by default.

293 changes: 293 additions & 0 deletions 2022/10/10/LeetCode 0377.组合总和Ⅳ/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

285 changes: 285 additions & 0 deletions 2022/10/12/LeetCode 0392.判断子序列/index.html

Large diffs are not rendered by default.

292 changes: 292 additions & 0 deletions 2022/10/12/LeetCode 0817.链表组件/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

335 changes: 335 additions & 0 deletions 2022/10/13/LeetCode 0769.最多能完成排序的块/index.html

Large diffs are not rendered by default.

327 changes: 327 additions & 0 deletions 2022/10/14/LeetCode 0401.二进制手表/index.html

Large diffs are not rendered by default.

294 changes: 294 additions & 0 deletions 2022/10/14/LeetCode 0445.两数相加II/index.html

Large diffs are not rendered by default.

292 changes: 292 additions & 0 deletions 2022/10/15/LeetCode 0402.移掉K位数字/index.html

Large diffs are not rendered by default.

317 changes: 317 additions & 0 deletions 2022/10/15/LeetCode 1441.用栈操作构建数组/index.html

Large diffs are not rendered by default.

303 changes: 303 additions & 0 deletions 2022/10/16/LeetCode 0886.可能的二分法/index.html

Large diffs are not rendered by default.

294 changes: 294 additions & 0 deletions 2022/10/17/LeetCode 0406.根据身高重建队列/index.html

Large diffs are not rendered by default.

291 changes: 291 additions & 0 deletions 2022/10/17/LeetCode 0409.最长回文串/index.html

Large diffs are not rendered by default.

319 changes: 319 additions & 0 deletions 2022/10/17/LeetCode 0904.水果成篮/index.html

Large diffs are not rendered by default.

342 changes: 342 additions & 0 deletions 2022/10/18/LeetCode 0902.最大为N的数字组合/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

331 changes: 331 additions & 0 deletions 2022/10/19/LeetCode 1700.无法吃午餐的学生数量/index.html

Large diffs are not rendered by default.

288 changes: 288 additions & 0 deletions 2022/10/19/Other-LeetCode1024-2022/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions 2022/10/20/LeetCode 0779.第K个语法符号/index.html

Large diffs are not rendered by default.

297 changes: 297 additions & 0 deletions 2022/10/21/LeetCode 0451.根据字符出现频率排序/index.html

Large diffs are not rendered by default.

292 changes: 292 additions & 0 deletions 2022/10/21/LeetCode 0452.用最少数量的箭引爆气球/index.html

Large diffs are not rendered by default.

346 changes: 346 additions & 0 deletions 2022/10/21/LeetCode 0901.股票价格跨度/index.html

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions 2022/10/22/LeetCode 0455.分发饼干/index.html

Large diffs are not rendered by default.

307 changes: 307 additions & 0 deletions 2022/10/22/LeetCode 0456.132模式/index.html

Large diffs are not rendered by default.

328 changes: 328 additions & 0 deletions 2022/10/22/LeetCode 1235.规划兼职工作/index.html

Large diffs are not rendered by default.

298 changes: 298 additions & 0 deletions 2022/10/23/LeetCode 1768.交替合并字符串/index.html

Large diffs are not rendered by default.

294 changes: 294 additions & 0 deletions 2022/10/24/LeetCode 0915.分割数组/index.html

Large diffs are not rendered by default.

295 changes: 295 additions & 0 deletions 2022/10/25/LeetCode 0461.汉明距离/index.html

Large diffs are not rendered by default.

302 changes: 302 additions & 0 deletions 2022/10/25/LeetCode 0463.岛屿的周长/index.html

Large diffs are not rendered by default.

287 changes: 287 additions & 0 deletions 2022/10/25/LeetCode 0934.最短的桥/index.html

Large diffs are not rendered by default.

284 changes: 284 additions & 0 deletions 2022/10/26/LeetCode 0477.汉明距离总和/index.html

Large diffs are not rendered by default.

287 changes: 287 additions & 0 deletions 2022/10/27/LeetCode 0474.一和零/index.html

Large diffs are not rendered by default.

292 changes: 292 additions & 0 deletions 2022/10/27/LeetCode 1822.数组元素积的符号/index.html

Large diffs are not rendered by default.

301 changes: 301 additions & 0 deletions 2022/10/28/LeetCode 0481.神奇字符串/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

283 changes: 283 additions & 0 deletions 2022/10/30/LeetCode 0784.字母大小写全排列/index.html

Large diffs are not rendered by default.

323 changes: 323 additions & 0 deletions 2022/10/31/LeetCode 0009.回文数/index.html

Large diffs are not rendered by default.

283 changes: 283 additions & 0 deletions 2022/11/01/LeetCode 0485.最大连续1的个数/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

312 changes: 312 additions & 0 deletions 2022/11/02/LeetCode 0491.递增子序列/index.html

Large diffs are not rendered by default.

308 changes: 308 additions & 0 deletions 2022/11/02/LeetCode 1620.网络信号最好的坐标/index.html

Large diffs are not rendered by default.

324 changes: 324 additions & 0 deletions 2022/11/04/LeetCode 0754.到达终点数字/index.html

Large diffs are not rendered by default.

311 changes: 311 additions & 0 deletions 2022/11/05/LeetCode 1106.解析布尔表达式/index.html

Large diffs are not rendered by default.

242 changes: 242 additions & 0 deletions 2022/11/05/Other-.appinstaller-firstfound/index.html

Large diffs are not rendered by default.

282 changes: 282 additions & 0 deletions 2022/11/06/LeetCode 0503.下一个更大元素II/index.html

Large diffs are not rendered by default.

428 changes: 428 additions & 0 deletions 2022/11/06/LeetCode 0509.斐波那契数/index.html

Large diffs are not rendered by default.

298 changes: 298 additions & 0 deletions 2022/11/06/LeetCode 1678.设计Goal解析器/index.html

Large diffs are not rendered by default.

310 changes: 310 additions & 0 deletions 2022/11/07/LeetCode 0816.模糊坐标/index.html

Large diffs are not rendered by default.

320 changes: 320 additions & 0 deletions 2022/11/07/Other-Python-ResearchForPycache/index.html

Large diffs are not rendered by default.

297 changes: 297 additions & 0 deletions 2022/11/08/LeetCode 1684.统计一致字符串的数目/index.html

Large diffs are not rendered by default.

322 changes: 322 additions & 0 deletions 2022/11/10/LeetCode 0864.获取所有钥匙的最短路径/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

287 changes: 287 additions & 0 deletions 2022/11/13/LeetCode 0791.自定义字符串排序/index.html

Large diffs are not rendered by default.

293 changes: 293 additions & 0 deletions 2022/11/15/LeetCode 1710.卡车上的最大单元数/index.html

Large diffs are not rendered by default.

294 changes: 294 additions & 0 deletions 2022/11/16/LeetCode 0775.全局倒置与局部倒置/index.html

Large diffs are not rendered by default.

281 changes: 281 additions & 0 deletions 2022/11/17/CSDN - CSDN9题解/index.html

Large diffs are not rendered by default.

335 changes: 335 additions & 0 deletions 2022/11/17/LeetCode 0792.匹配子序列的单词数/index.html

Large diffs are not rendered by default.

285 changes: 285 additions & 0 deletions 2022/11/18/LeetCode 0891.子序列宽度之和/index.html

Large diffs are not rendered by default.

296 changes: 296 additions & 0 deletions 2022/11/19/LeetCode 0518.零钱兑换II/index.html

Large diffs are not rendered by default.

281 changes: 281 additions & 0 deletions 2022/11/19/LeetCode 1732.找到最高海拔/index.html

Large diffs are not rendered by default.

285 changes: 285 additions & 0 deletions 2022/11/19/Other-Python-GenerateListWithShortCode/index.html

Large diffs are not rendered by default.

296 changes: 296 additions & 0 deletions 2022/11/20/LeetCode 0799.香槟塔/index.html

Large diffs are not rendered by default.

312 changes: 312 additions & 0 deletions 2022/11/21/LeetCode 0808.分汤/index.html

Large diffs are not rendered by default.

301 changes: 301 additions & 0 deletions 2022/11/22/LeetCode 0523.连续的子数组和/index.html

Large diffs are not rendered by default.

287 changes: 287 additions & 0 deletions 2022/11/22/LeetCode 0525.连续数组/index.html

Large diffs are not rendered by default.

282 changes: 282 additions & 0 deletions 2022/11/22/LeetCode 0878.第N个神奇数字/index.html

Large diffs are not rendered by default.

317 changes: 317 additions & 0 deletions 2022/11/23/LeetCode 0529.扫雷游戏/index.html

Large diffs are not rendered by default.

294 changes: 294 additions & 0 deletions 2022/11/23/LeetCode 0530.二叉搜索树的最小绝对差/index.html

Large diffs are not rendered by default.

305 changes: 305 additions & 0 deletions 2022/11/23/LeetCode 1742.盒子中小球的最大数量/index.html

Large diffs are not rendered by default.

283 changes: 283 additions & 0 deletions 2022/11/24/LeetCode 0795.区间子数组个数/index.html

Large diffs are not rendered by default.

290 changes: 290 additions & 0 deletions 2022/11/25/LeetCode 0809.情感丰富的文字/index.html

Large diffs are not rendered by default.

311 changes: 311 additions & 0 deletions 2022/11/26/LeetCode 0062.不同路径/index.html

Large diffs are not rendered by default.

293 changes: 293 additions & 0 deletions 2022/11/28/LeetCode 0813.最大平均值和的分组/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

310 changes: 310 additions & 0 deletions 2022/11/30/LeetCode 0895.最大频率栈/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

254 changes: 254 additions & 0 deletions 2022/12/01/Other-Datastruct-XunHuanDuiLie/index.html

Large diffs are not rendered by default.

250 changes: 250 additions & 0 deletions 2022/12/01/Other-HTML-ChangeWeb2Gray/index.html

Large diffs are not rendered by default.

257 changes: 257 additions & 0 deletions 2022/12/01/Other-Powershell-TiWaTeXiaoZuShouZhuaBao/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

292 changes: 292 additions & 0 deletions 2022/12/03/LeetCode 1796.字符串中第二大的数字/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

291 changes: 291 additions & 0 deletions 2022/12/04/LeetCode 0542.01矩阵/index.html

Large diffs are not rendered by default.

258 changes: 258 additions & 0 deletions 2022/12/04/Other-Python-BeautifulSoup4lxml-h2ParseError/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

276 changes: 276 additions & 0 deletions 2022/12/05/LeetCode 0543.二叉树的直径/index.html

Large diffs are not rendered by default.

307 changes: 307 additions & 0 deletions 2022/12/06/LeetCode 1805.字符串中不同整数的数目/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

248 changes: 248 additions & 0 deletions 2022/12/08/hello-world/index.html

Large diffs are not rendered by default.

348 changes: 348 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,348 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>网页走丢了~_~</title>
<script src="https://letmefly.xyz/Links/Common.js"></script>

<style>
html,body{
margin:0px;
width:100%;
height:100%;
overflow:hidden;
background:#000;
}

#canvas{
position:absolute;
width:100%;
height:100%;
}
</style>

</head>
<body>
<script id="colorful404By_LetMeFly">
function addA404Pic() {
setTimeout(() => {
const window_width = window.outerWidth;
const window_height = window.outerHeight;
const height = window_height / 8 * 1.3, width = height * 2;
const canvas_404 = document.createElement("canvas");
canvas_404.width = width, canvas_404.height = height;
canvas_404.style = "position: absolute; left: " + window_width / 8 + "px; top: " + window_height / 8 * 5 + "px; z-index: 9999";
document.body.insertAdjacentElement('beforeend', canvas_404);
const ctx_404 = canvas_404.getContext('2d');
const img_404 = document.createElement("img");
img_404.id="img_404";
img_404.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFcAAAApCAQAAADq6X1WAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElNRQflBxQSKCsJRRy9AAAE20lEQVRYw9VYW2gcVRj+ZnY2u9k0m9ltbpBK2oq1SDEU8yAWCsHooqVRUkMSk81uVpJYbW0lDWkgUpOKaY2KYLsRiVTaisF4eYjBRMH1QQXBKwiiTxUEG9Gaetkmze6MD5tsds5/Zs7ZjQj+8zBz/ut3/nP+cxngf0XKv+2vs3qlX7sNSF8xp5KzM8n/DG6v2/8+Ea+M322n3xHzhXV4oEAFABhIIYkrycUWWdCHE17CG2/IbWn2xtpsMeHFmsa5uq115S8Esy0j69wPv+/6bCB5fp8Y7IO1OuH5vmUw2ec26GZ5RnrbEk83PLnlRvt+F6HWdyixEJq+7gy36lXKGzpsbat2xi46EbD3Pp5m9JVaB7AZCqBm3lkj1rSJdvQTlmMHVwkSlvpH6G+qGNlbs12mXktxKOHYoccp74lhSbiPvkcFTz7A0ywfsR0ghnR0R+xkkX20TvwfUj1urJYK3WPC+qRSygrVjN5bDFPyAYJRO7jlx0D0B05Kwq18gxqP3cXTLBvgAfP9WP6x6y/K9yJcwvPS2e4luhXneZqcGrnH46e9+pWfFR/huH9bmzRfbX3zHBngFxGjXqp6Ke/IOXCIk93tc4DBPKOtsCFWc32G777k/oyVatuoh+jRIuLFP82PRuB2bKG51S4pBs+4fyfLSVn0TgyR3HO8BDjL42BcEq5+gSqNxvjGpcR6OZ3bUkwIKXacbrw7TttpM3M3etMmsDHMRfuwrCAlkFNHZSGq0z1nF4/JT8nLdMk/1SzOUaHUNe4hvIqn7fUt2T2wk+bW943TkIpGm5WzJbC5nno49oEk3MoJWlEnjtobL8OAMznLu8Y0onHLiJNFzmTouJMeMrxfIi8SwbdS4HaWY6L7I0m4+jAVn+zPD66Icoc+8k4Rkd/8iLN9djJ07CkmM61iDgISVb5TW9eptOc753jZ7Pqfonv84GkIiLUwpOWdFzUi3dMnirea3bYo3f1L3s28wzNey6Q2MdkgciskZXMN6brZ/EPmq4c5GWvNE79b4AYitEhGn8u8vbCWYO4QFroydL2uEllX8/OrX2zJr6/NKgC0d9ONsPotHjxeW1aWS2VVtGO7F8V2KgDoXTTs4BnJyI7Eh9+RoOfWXWEZfxrQesRD3N6Qcz83GGnuIIozb3JaQbrbpXp+EnVyFW7gfir+eqBtYO3bTczbEyaAqQbxJsvrTmRYJfxlrS1bXjTez2+3AUg3Tqc1wMUpCN0RRHmWV0ipqRxuESocrDIn8MsA1Hw3zlyi/zkUwR2+8FhrXS2QDADPfs9yXZYaCtezctmVwwGu7MWbvYYDSprlerA/50KkPkOu/6ugC41YcHbtslU10RQBgFCwJVFKpkb9gIRTB9KQRV4IUPNPlFr5HtREH4oaKILG8dv3xcNkYcyHNpjdugM8l174uL82zSWZy6YTaYB3weWoslRpMoNavABkrrx9K49dXqmWDRbfHwfgvepZcNa7xmzR3l/Wuinx8zAy42NOZC9ZTmQHE2IfAHDr5MHX5DRZj2XNp1ZPZBKTQbTRxhtlIOify4KldDX7tcG5CwBKOt7oEvwZrzs7tsE1IUOi396SgBH6NHThOF+qJs80Ken8PG4ALrvQ8TfSO+Yxf23ryNDijnWee3HXdO+UYpzNExQ73dYL7B8hzwgj8LB6vwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wNy0yMFQxMDo0MDo0MyswODowMNh2t8IAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDctMjBUMTA6NDA6NDMrMDg6MDCpKw9+AAAAAElFTkSuQmCC";
img_404.hidden=true;
document.body.appendChild(img_404);
ctx_404.drawImage(img_404, 0, 0, width, height);
const img_404_on_canvas = ctx_404.getImageData(0, 0, width, height);
const img_404_data = img_404_on_canvas.data;
var color = [1, 1, 5];
const delayTime = 50, colorDiff = [5, 7, 9];
function changeColor() {
for (var i = 0; i < 3; i++) {
color[i] = (color[i] + colorDiff[i]) % 254 + 1;
}
for (var i = 0; i < img_404_data.length; i += 4) {
var have0 = 0;
for (var j = 0; j < 4; j++) {
if (img_404_data[i + j] == 0) {
have0 = 1;
}
}
if (have0 == 0) {
img_404_data[i] = color[0];
img_404_data[i + 1] = color[1];
img_404_data[i + 2] = color[2];
img_404_data[i + 3] = 80;
}
}
img_404_on_canvas.data = img_404_data;
ctx_404.putImageData(img_404_on_canvas, 0, 0);
setTimeout(() => {
changeColor();
}, delayTime);
}
changeColor();
}, 0);
function ifRefresh(){
const href = location.href;
var temp = href.split('?');
if (temp.length == 1){
return true;
}
temp = temp[1];
if (temp == 'reload'){
return false;
}
return true;
}
if(ifRefresh()){
location.href = location.href.split('?')[0]+'?reload';
} // 我也不知道为什么需要刷新一下才能显示404小图片
}
addA404Pic();
</script>

<canvas id="canvas"></canvas>

<script>
function project3D(x,y,z,vars){

var p,d;
x-=vars.camX;
y-=vars.camY-8;
z-=vars.camZ;
p=Math.atan2(x,z);
d=Math.sqrt(x*x+z*z);
x=Math.sin(p-vars.yaw)*d;
z=Math.cos(p-vars.yaw)*d;
p=Math.atan2(y,z);
d=Math.sqrt(y*y+z*z);
y=Math.sin(p-vars.pitch)*d;
z=Math.cos(p-vars.pitch)*d;
var rx1=-1000;
var ry1=1;
var rx2=1000;
var ry2=1;
var rx3=0;
var ry3=0;
var rx4=x;
var ry4=z;
var uc=(ry4-ry3)*(rx2-rx1)-(rx4-rx3)*(ry2-ry1);
var ua=((rx4-rx3)*(ry1-ry3)-(ry4-ry3)*(rx1-rx3))/uc;
var ub=((rx2-rx1)*(ry1-ry3)-(ry2-ry1)*(rx1-rx3))/uc;
if(!z)z=0.000000001;
if(ua>0&&ua<1&&ub>0&&ub<1){
return {
x:vars.cx+(rx1+ua*(rx2-rx1))*vars.scale,
y:vars.cy+y/z*vars.scale,
d:(x*x+y*y+z*z)
};
}else{
return { d:-1 };
}
}


function elevation(x,y,z){

var dist = Math.sqrt(x*x+y*y+z*z);
if(dist && z/dist>=-1 && z/dist <=1) return Math.acos(z / dist);
return 0.00000001;
}


function rgb(col){

col += 0.000001;
var r = parseInt((0.5+Math.sin(col)*0.5)*16);
var g = parseInt((0.5+Math.cos(col)*0.5)*16);
var b = parseInt((0.5-Math.sin(col)*0.5)*16);
return "#"+r.toString(16)+g.toString(16)+b.toString(16);
}


function interpolateColors(RGB1,RGB2,degree){

var w2=degree;
var w1=1-w2;
return [w1*RGB1[0]+w2*RGB2[0],w1*RGB1[1]+w2*RGB2[1],w1*RGB1[2]+w2*RGB2[2]];
}


function rgbArray(col){

col += 0.000001;
var r = parseInt((0.5+Math.sin(col)*0.5)*256);
var g = parseInt((0.5+Math.cos(col)*0.5)*256);
var b = parseInt((0.5-Math.sin(col)*0.5)*256);
return [r, g, b];
}


function colorString(arr){

var r = parseInt(arr[0]);
var g = parseInt(arr[1]);
var b = parseInt(arr[2]);
return "#"+("0" + r.toString(16) ).slice (-2)+("0" + g.toString(16) ).slice (-2)+("0" + b.toString(16) ).slice (-2);
}


function process(vars){


if(vars.points.length<vars.initParticles) for(var i=0;i<5;++i) spawnParticle(vars);
var p,d,t;

p = Math.atan2(vars.camX, vars.camZ);
d = Math.sqrt(vars.camX * vars.camX + vars.camZ * vars.camZ);
d -= Math.sin(vars.frameNo / 80) / 25;
t = Math.cos(vars.frameNo / 300) / 165;
vars.camX = Math.sin(p + t) * d;
vars.camZ = Math.cos(p + t) * d;
vars.camY = -Math.sin(vars.frameNo / 220) * 15;
vars.yaw = Math.PI + p + t;
vars.pitch = elevation(vars.camX, vars.camZ, vars.camY) - Math.PI / 2;

var t;
for(var i=0;i<vars.points.length;++i){

x=vars.points[i].x;
y=vars.points[i].y;
z=vars.points[i].z;
d=Math.sqrt(x*x+z*z)/1.0075;
t=.1/(1+d*d/5);
p=Math.atan2(x,z)+t;
vars.points[i].x=Math.sin(p)*d;
vars.points[i].z=Math.cos(p)*d;
vars.points[i].y+=vars.points[i].vy*t*((Math.sqrt(vars.distributionRadius)-d)*2);
if(vars.points[i].y>vars.vortexHeight/2 || d<.25){
vars.points.splice(i,1);
spawnParticle(vars);
}
}
}

function drawFloor(vars){

var x,y,z,d,point,a;
for (var i = -25; i <= 25; i += 1) {
for (var j = -25; j <= 25; j += 1) {
x = i*2;
z = j*2;
y = vars.floor;
d = Math.sqrt(x * x + z * z);
point = project3D(x, y-d*d/85, z, vars);
if (point.d != -1) {
size = 1 + 15000 / (1 + point.d);
a = 0.15 - Math.pow(d / 50, 4) * 0.15;
if (a > 0) {
vars.ctx.fillStyle = colorString(interpolateColors(rgbArray(d/26-vars.frameNo/40),[0,128,32],.5+Math.sin(d/6-vars.frameNo/8)/2));
vars.ctx.globalAlpha = a;
vars.ctx.fillRect(point.x-size/2,point.y-size/2,size,size);
}
}
}
}
vars.ctx.fillStyle = "#82f";
for (var i = -25; i <= 25; i += 1) {
for (var j = -25; j <= 25; j += 1) {
x = i*2;
z = j*2;
y = -vars.floor;
d = Math.sqrt(x * x + z * z);
point = project3D(x, y+d*d/85, z, vars);
if (point.d != -1) {
size = 1 + 15000 / (1 + point.d);
a = 0.15 - Math.pow(d / 50, 4) * 0.15;
if (a > 0) {
vars.ctx.fillStyle = colorString(interpolateColors(rgbArray(-d/26-vars.frameNo/40),[32,0,128],.5+Math.sin(-d/6-vars.frameNo/8)/2));
vars.ctx.globalAlpha = a;
vars.ctx.fillRect(point.x-size/2,point.y-size/2,size,size);
}
}
}
}
}

function sortFunction(a,b){
return b.dist-a.dist;
}

function draw(vars){

vars.ctx.globalAlpha=.15;
vars.ctx.fillStyle="#000";
vars.ctx.fillRect(0, 0, canvas.width, canvas.height);

drawFloor(vars);

var point,x,y,z,a;
for(var i=0;i<vars.points.length;++i){
x=vars.points[i].x;
y=vars.points[i].y;
z=vars.points[i].z;
point=project3D(x,y,z,vars);
if(point.d != -1){
vars.points[i].dist=point.d;
size=1+vars.points[i].radius/(1+point.d);
d=Math.abs(vars.points[i].y);
a = .8 - Math.pow(d / (vars.vortexHeight/2), 1000) * .8;
vars.ctx.globalAlpha=a>=0&&a<=1?a:0;
vars.ctx.fillStyle=rgb(vars.points[i].color);
if(point.x>-1&&point.x<vars.canvas.width&&point.y>-1&&point.y<vars.canvas.height)vars.ctx.fillRect(point.x-size/2,point.y-size/2,size,size);
}
}
vars.points.sort(sortFunction);
}


function spawnParticle(vars){

var p,ls;
pt={};
p=Math.PI*2*Math.random();
ls=Math.sqrt(Math.random()*vars.distributionRadius);
pt.x=Math.sin(p)*ls;
pt.y=-vars.vortexHeight/2;
pt.vy=vars.initV/20+Math.random()*vars.initV;
pt.z=Math.cos(p)*ls;
pt.radius=200+800*Math.random();
pt.color=pt.radius/1000+vars.frameNo/250;
vars.points.push(pt);
}

function frame(vars) {

if(vars === undefined){
var vars={};
vars.canvas = document.querySelector("canvas");
vars.ctx = vars.canvas.getContext("2d");
vars.canvas.width = document.body.clientWidth;
vars.canvas.height = document.body.clientHeight;
window.addEventListener("resize", function(){
vars.canvas.width = document.body.clientWidth;
vars.canvas.height = document.body.clientHeight;
vars.cx=vars.canvas.width/2;
vars.cy=vars.canvas.height/2;
}, true);
vars.frameNo=0;

vars.camX = 0;
vars.camY = 0;
vars.camZ = -14;
vars.pitch = elevation(vars.camX, vars.camZ, vars.camY) - Math.PI / 2;
vars.yaw = 0;
vars.cx=vars.canvas.width/2;
vars.cy=vars.canvas.height/2;
vars.bounding=10;
vars.scale=500;
vars.floor=26.5;

vars.points=[];
vars.initParticles=700;
vars.initV=.01;
vars.distributionRadius=800;
vars.vortexHeight=25;
}

vars.frameNo++;
requestAnimationFrame(function() {
frame(vars);
});

process(vars);
draw(vars);
}
frame();
</script>
</body>
</html>

Loading

0 comments on commit 40d1640

Please sign in to comment.