Pylon's Blog


  • 首页

  • 分类

  • 归档

  • 标签

  • 关于作者

  • 搜索

Leetcode-100 —— Same Tree

发表于 2019-07-10 | 分类于 Fundamental , Algorithm

Description

Given two binary trees, write a function to check if they are the same or not.

Two binary trees are considered the same if they are structurally identical and the nodes have the same value.

阅读全文 »

Leetcode-67 —— Add Binary

发表于 2019-07-10 | 分类于 Fundamental , Algorithm

Description

Given two binary strings, return their sum (also a binary string).

The input strings are both non-empty and contains only characters 1 or 0.

阅读全文 »

Leetcode-35 —— Search Insert Position

发表于 2019-07-09 | 分类于 Fundamental , Algorithm

Description

Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.

You may assume no duplicates in the array.

阅读全文 »

Leetcode-21 —— Merge two sorted lists

发表于 2019-07-09 | 分类于 Fundamental , Algorithm

Description

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.

Example:

1
2
Input: 1->2->4, 1->3->4
Output: 1->1->2->3->4->4
阅读全文 »

Leetcode-20 —— Valid Parentheses

发表于 2019-07-09 | 分类于 Fundamental , Algorithm

Description

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

An input string is valid if:

  1. Open brackets must be closed by the same type of brackets.
  2. Open brackets must be closed in the correct order.

Note that an empty string is also considered valid.

阅读全文 »

Leetcode-01 —— Two Sum

发表于 2019-07-09 | 分类于 Fundamental , Algorithm

Description

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

You may assume that each input would have exactly one solution, and you may not use the same element twice.

阅读全文 »

Windows 10 配合 Ubuntu 搭建舒适开发环境不完全指北

发表于 2019-07-02 | 分类于 Experience , Guide

零、背景

Mac Book Pro (MBP)一直是极客开发者首选的操作系统,然而在工作中,并不是每个公司都会为开发者配备 MBP 的,然而,相信有强迫症的程序员都无法忍受 Windows 的命令行工具,我也不例外。好再微软在 2019 年 5 月推出了一款 Windows Terminal(截至作者撰稿时,仅 Preview 版可用),可以说给基于 Window 开发的程序员带来了福音。

阅读全文 »

JavaScript 执行机制(不完全指北)

发表于 2019-03-24 | 分类于 Fundamental , Programing-language , JavaScript

前言

本文试图讲解 JavaScript 的执行机制,理解事件循环,读完这篇文章,本文围绕以下两个问题讲解:

  1. 为什么 JavaScript 是单线程和异步?
  2. JavaScript 如何实现异步?
阅读全文 »

常用负载均衡算法

发表于 2019-03-18 | 分类于 Experience , Practice

背景

项目开发时,调用第三方服务集群,集群有多台机器,当机器之间没有主从之分时,需要应用层自己做负载均衡以保证各机器之间的流量均衡。

负载调度算法介绍

分布式系统中,常用负载调度算法有轮询、加权轮询、哈希、随机、加权随机、最小连接数。

阅读全文 »

Wireshark 使用说明

发表于 2019-03-08 | 分类于 Fundamental , Network

通俗来讲,Wireshark 是一个免费的抓包工具(分组嗅探器),它可以显示协议栈不同层级封装的消息内容,Wireshark 有盘大的用户群体,它可在Windows,Mac和Linux / Unix计算机上运行。

阅读全文 »
1…456…9
Pylon, Syncher

Pylon, Syncher

85 日志
14 分类
86 标签
GitHub GMail LeetCode
友情链接
  • 东阳兄
© 2023 Pylon, Syncher
由 Hexo 强力驱动
Hosted by GitHub && Coding.net
主题 - NexT.Mist