原创 libpython2.7.a(abstract.o) recompile with -fPIC

安裝condor時遇到這個錯誤,/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `a local symbol

原创 Leetcode之super ugly number

和ugly number II的思路很類似,要使得super ugly number 不漏掉,那麼用每個因子去乘第一個,當前因子乘積是最小後,乘以下一個…..以此類推。 python令人難以接受的代碼實現: class Solution(

原创 LeetCode之Median Of Two Sorted Arrays

題目描述如下:There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arr

原创 Leetcode之first missing positive

轉自http://blog.csdn.net/nanjunxiao/article/details/12973173 Given an unsorted integer array, find the first missing p

原创 LeetCode之Longest Palindromic Substring

題目描述如下: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is

原创 Java內存泄露的理解與解決

轉自http://developer.51cto.com/art/201111/302465.htm Java內存管理機制 在C++ 語言中,如果需要動態分配一塊內存,程序員需要負責這塊內存的整個生命週期。從申請分配、到使用、再到

原创 Leetcode之Next Permutation (Medium)

題目描述: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of n

原创 關於初學者上傳文件到github的方法

轉自http://blog.csdn.net/steven6977/article/details/10567719 【第一步】建立先倉庫   第一步的話看一般的提示就知道了,在github新建一個repository(谷歌可以解

原创 java.util.Stack類簡介

轉自http://blog.csdn.net/a19881029/article/details/9408649 Stack是一個後進先出(last in first out,LIFO)的堆棧,在Vector類的基礎上擴展5個方法而來

原创 Leetcode之Sort List

Sort a linked list in O(n log n) time using constant space complexity. Subscribe to see which companies asked thi

原创 ClassLoader源碼分析

轉自http://blog.csdn.net/vking_wang/article/details/17162327 層次結構和類圖 ClassLoader層次結構:       UML類圖:     sun.mis

原创 JAVA的一次編譯,到處運行,你知道多少?

轉自http://blog.csdn.net/wangyongxia921/article/details/28117155 一、對JAVA的迷茫   以前只是一味的學習VB,.NET,c#。現在輪到學習java了。迷惑了?書

原创 CloudSuite之Graph Analytics集羣安裝

官方安裝文檔: https://github.com/dato-code/PowerGraph/blob/master/TUTORIALS.md#cluster 操作系統:centos6.5 64 1. 首先在一個節點上安裝graphla

原创 Leetcode之Divide Two Integers

題目描述: Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT

原创 Leetcode之Reverse Nodes in k-Group (Hard)

題意: 把一個鏈表每 k 個分爲一組,每組內進行翻轉。 只能用常數級的空間。 看到這道題首先想到要分組考慮,通過記住連續三個node來求得結果,寫的很複雜。。public class Solution { public List