原创 960. Delete Columns to Make Sorted III(DP)

We are given an array A of N lowercase letter strings, all of the same length. Now, we may choose any set of deletion i

原创 778. Swim in Rising Water(使用最小堆的優先級隊列,BFS)

On an N x N grid, each square grid[i][j] represents the elevation at that point (i,j). Now rain starts to fall. At time

原创 linux下多線程模擬TCP客戶端向服務器端發送消息數據報並解析收到的回覆報文

前言: 實習剛好一個月,今天做個總結:剛來前兩週沒什麼事,熟悉一下公司,配置一下編程環境,適應廈門的生活。後兩週跟着小組的老哥們(哈哈)一邊學習一邊寫寫測試腳本和測試文檔,畫畫業務流程圖。總之,工作還沒有那麼繁忙,然後5.1後就得返校寫論

原创 Linux下socket簡單通信

服務器端: #include<stdio.h> #include<stdlib.h> #include<string.h> #include<errno.h> #include<sys/types.h> #include<s

原创 PAT 甲級 :1035 Password (20 分)

  To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are

原创 Add One Row to Tree

Description: Given the root of a binary tree, then value v and depth d, you need to add a row of nodes with value v at

原创 Django框架學習

<<寫在前面:    本篇博客爲鄙人學習python的django框架所做的筆記,因爲第一次寫這個東西,所以有很多地方需要注意的,所以在這裏把所有需要自己修改設置的地方都寫出來了,作爲自己的學習經歷,也希望能給大家一點提示。裏面包含了一些

原创 Treemap(基於RBtree)詳解

  原文出自:http://cmsblogs.com/?p=1013。尊重作者的成果,轉載請註明出處!          個人站點:http://cmsblogs.com----------------------------------

原创 Android編程之Sqlite數據庫的建立與使用

主Activity: package edu.hrbeu.SimplePreferenceDemo; import edu.hrbue.SimplePreferenceDemo.R; import java.io.File; impo

原创 Android 簡易計算器

package com.example.calculate; import java.util.ArrayList; import java.util.List; import java.util.Str

原创 關於安裝XAMMP後刪除原來的mysql服務,之後又需要重新使用本地的mysql的問題

因爲XAMMP自帶有mysql的後臺管理,當需要啓動他的mysql服務的時候必然會與你原來本地的mysql服務衝突,因而需要關閉掉原來的mysql服務,如果你是使用sc delete mysql命令直接將原來的mysql服務禁用,那麼原來

原创 使用javacc實現語法生成器(基於miniC語法)

/********* WRITEN BY ZZG *********/ /******** DATE: 12,4,2017 ********/ /** * JJTree template file created by SF

原创 My Calendar II

Implement a MyCalendarTwo class to store your events. A new event can be added if adding the event will not cause a tri

原创 654. Maximum Binary Tree(最大二叉樹)

Description:Given an integer array with no duplicates. A maximum tree building on this array is defined as follow:The r

原创 Qt+OpenGL實現簡單的粒子效果(新年qi)

前幾天在學習unity的時候做的一個飛行器的尾焰的粒子效果還不錯,如下圖 於是乎想着能不能自己實現這種效果,查閱相關資料後根據NeHe的教程自己弄了個類似煙花的爆炸小程序,效果還看得過去,但是在最後想加入背景圖的時候出現了一些問題,下面