原创 題目68:三點順序

題目鏈接: http://acm.nyist.net/JudgeOnline/problem.php?pid=68 描述 現在給你不共線的三個點A,B,C的座標,它們一定能組成一個三角形,現在讓你判斷A,B,C是順時針給出的還是逆時針給出

原创 LeetCode 137: Single Number II

題目鏈接: https://leetcode.com/problems/single-number-ii/description/ 描述 Given an array of integers, every element appears

原创 題目54:小明的存錢計劃

題目鏈接: http://acm.nyist.net/JudgeOnline/problem.php?pid=54 描述 小明的零花錢一直都是自己管理。每個月的月初媽媽給小明300元錢,小明會預算這個月的花銷,並且總能做到實際花銷和預算的

原创 題目90:整數劃分

題目鏈接: http://acm.nyist.net/JudgeOnline/problem.php?pid=90 描述 將正整數n表示成一系列正整數之和:n=n1+n2+…+nk, 其中n1≥n2≥…≥nk≥1,k≥1。 正整數

原创 題目117:求逆序數

題目鏈接: http://59.69.128.203/JudgeOnline/problem.php?pid=117 描述 在一個排列中,如果一對數的前後位置與大小順序相反,即前面的數大於後面的數,那麼它們就稱爲一個逆序。一個排列中逆序的

原创 LeetCode 349: Intersection of Two Arrays

題目鏈接: https://leetcode.com/problems/intersection-of-two-arrays/description/ 描述 Given two arrays, write a function to co

原创 LeetCode 136:Single Number

題目鏈接: https://leetcode.com/problems/single-number/description/ 描述 Given an array of integers, every element appears twi

原创 LeetCode 120: Triangle

題目鏈接: https://leetcode.com/problems/triangle/description/ 描述 Given a triangle, find the minimum path sum from top to bo

原创 LeetCode 32:Longest Valid Parentheses

題目鏈接: https://leetcode.com/problems/longest-valid-parentheses/description/ 描述 Given a string containing just the charac

原创 LeetCode 155: Min Stack

題目鏈接: https://leetcode.com/problems/min-stack/description/ 描述 Design a stack that supports push, pop, top, and retrievi