leetcode with python:160. Intersection of Two Linked Lists

题目: Given the heads of two singly linked-lists headA and headB, return the node at which the two lists intersect. If the two linked lists have no intersection at all, return null. The test cases ar
leetcode with python:168. Excel Sheet Column Title

题目: Given an integer columnNumber, return its corresponding column title as it appears in an Excel sheet. example: A - 1 B - 2 C - 3 Z - 26 AA - 27 AB - 28 给定一个数,回传它在excel表示行数
leetcode with python:169. Majority Element

题目: Given an array nums of size n, return the majority element. The majority element is the element that appears more than (n / 2) times. You may assume that the majority element always exists in t
dJango template 和 view 沟通的新做法

主要是view中的函数可以直接返回,作为http的response: view中: return JsonResponse({'pathname': pathName, 'polygon': json.dumps(originGpxManager.GetPolygon(pathName))}) template中:
leetcode with python:171. Excel Sheet Column Number

题目: Given a string columnTitle that represents the column title as appears in an Excel sheet, return its corresponding column number. 给定字串,回传它在excel表示行数的规则中代表什么
常见的 Email 诈骗有哪些? 预防电子邮件诈骗的2个工具

Email 诈骗对大众来说应该不陌生,骇客也不断使用新手法透过电子邮件窃取资料,受害者不仅是一般民众,连企业邮件被攻击的案例也层出不穷,更导致大
leetcode with MySQL:175. Combine Two Tables

刷leetcode遇到SQL的题目,那也只能换个语言了 题目: Table: Person +-------------+---------+ | Column Name | Type | +-------------+---------+ | personId | int | | lastName | varchar | | fi
leetcode with MySQL:181. Employees Earning More Than Their M

题目: Table: Employee +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | name | varchar | | salary | int | | managerId | int | +-------------+---------+ id is t
Mac预设为python3 [个人笔记]

打开Terminal查询安装路径 which python3 变更权限 sudo su 输入密码新增档案 touch .bash_profile 开启档案 touch .bash_profile 编辑档案内容 # Setting PATH for Python 3.7# The o
LeetCode 144. Binary Tree Preorder Traversal (With Java)

先附上题目连结 题目说明:给定一棵树,要你用前序追蹤来储存每个节点的值 前一篇文章有提到树的遍历方式有四种,这次要介绍的是前序(Preorder)的遍历