Peinan Weng

永不放弃 直到做对为止

Web聊天室开发 - 多媒体呈现与文件下载

待补充

MySQL Character Problem

今天使用MySQL时发现无法使用jdbc插入中文等UTF8字符,尝试了修改MySQL设置中的编码选项,但仍无法显示。 解决方法:MySQL不仅本身有默认编码格式,而且每个database,每张table,每个字段,都有默认编码格式,虽然修改了全局的默认编码,但是由于之前的数据仍然使用的是非UTF格式,因此仍然不能显示。手动设置全部数据格式为UTF8MB4后可以正确显示UTF8字符。 另外...

split Different Behavior in Java and C#

In Java In C#

Json Helper

A slight JSON object tool for C++, Java and C#. Github Repo - C++ Github Repo - Java Github Repo - C#

LeetCode - Sieve of Eratosthenes

An algorithm to find all prime numbers from 1 to n, with O(n) time complexity. Brute force solution costs O(sqrt(n)) for each number from 1 to n. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 int countP...

LeetCode - 1000 MARK - A Small Step


LeetCode - Fisher-Yates Shuffle Algorithm - N/A


554 HW8

Visualization program of homework 8, card game. Android available. Download Link

LeetCode - 900 MARK


LeetCode - DFS or BFS - N/A