原创 python寫算法題:leetcode: 104. Maximum Depth of Binary Tree

class Solution(object): def maxDepth(self, root): """ :type root: TreeNode :rtype: int

原创 python寫算法題:leetcode: 107. Binary Tree Level Order Traversal II

class Solution(object): def step(self, root, ret, level): if root==None: return if level>=len(ret

原创 python寫算法題:leetcode: 111. Minimum Depth of Binary Tree

class Solution(object): def deep(self, node, level): if node==None: return level if node.left==No

原创 python寫算法題:leetcode: 101. Symmetric Tree

class Solution(object): def cmp(self, nodea, nodeb): if nodea==None and nodeb==None: return True

原创 python寫算法題:leetcode: 113. Path Sum II

class Solution(object): def pathSum(self, root, sum): """ :type root: TreeNode :type sum:

原创 使用Ghidra修改darwin系統裏面的用go生成的運行程序

由於某應用的認證是mac地址,而最新版的mac系統的mac地址無法修改,因此想到了修改應用方法解決修改mac地址。 該應用是使用go語言開發的,而在mac系統裏面,最好用的靜態逆向工具首推ghidra,整個使用體驗和ida pro差不多。

原创 應用後臺開發技能樹(提綱)

架構進化(總有一款適合你) 1,單機 (萬里長征第一步) 2,應用, 文件,數據庫分離 (分而治之) 3,緩存,cdn,NoSQL;JSON, RPC,REST,GraphQL; 前後端分離;(術業有專攻) 4,中間件; 負載均衡;讀寫分

原创 flutter下嘗試3d建模

library flutter_rubic; import 'dart:io'; import 'dart:math' as Math; import 'dart:ui'; import 'package:flutter/materi

原创 flutter之摩天輪轉盤選擇控件實現

import 'dart:math'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:

原创 短距離條件下,由經緯度獲取距離的近似計算公式

import math def rad(d): return (d * math.pi) / 180 def distance(longitude1, latitude1, longitude2, latitude2): l1

原创 DFS 求解金字塔10*10等腰直角三角形擺放

# -*- coding:utf8 -*- shape={ 0:[(0,0),(1,0),(1,1),(1,2)], 1:[(0,0),(0,1),(1,0),(1,1),(1,2)], 2:[

原创 原 python寫算法題:leetcode: 115. Distinct Subsequences

class Solution(object): def numDistinct(self, s, t): """ :type s: str :type t: str

原创 python寫算法題:leetcode: 114. Flatten Binary Tree to Linked List

class Solution(object): def step(self, node, prenode): if node==None: return

原创 python寫算法題:leetcode: 109. Convert Sorted List to Binary Search Tree

class Solution(object): def sortedArrayToBST(self, nums): """ :type nums: List[int] :rtyp

原创 python寫算法題:leetcode: 112. Path Sum

class Solution(object): def hasPathSum(self, root, sum): """ :type root: TreeNode :type s