Quantcast
Channel: Search Results For: domain:blog.pengyifan.com
Browsing all 27 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How to fix Gedit LaTex Plugin error while saving BibTex

Gedit (3.4.1) gives the error below while saving a BibTex file (Ubuntu 12.04). The saving works fine, apart from the error popping up. How to fix it?

View Article


Image may be NSFW.
Clik here to view.

Two algorithms to find the nth to last element of a singly linked list

This is one of frequently asked questions on the programming interview. There are two kinds of solution: iteration-based and recursion-based.

View Article


Image may be NSFW.
Clik here to view.

Given a binary tree, create a list of all the nodes at each depth --...

Another FAQ on the programming interview.Cracking the Coding Interview (4ed) (see page 126) provided a non-recursive algorithm. For me, a recursive version is neater and much easier to understand.

View Article

Image may be NSFW.
Clik here to view.

Sort a stack in ascending order in O(n log n)

Write a program to sort a stack in ascending order. You should not make any assumptions about how the stack is implemented. The following are the only functions that should be used to write this...

View Article

Image may be NSFW.
Clik here to view.

Java.io in nutshell: 22 case studies

This post attempts to cover a comprehensive set of operations in java.io. Compared with other books and blogs related to this topic, my motivation is to show “how-to” through case studies.

View Article


Image may be NSFW.
Clik here to view.

How to build PDFsam enhanced

PDFsam (PDF Split and Merge) is a free and open source desktop utility designed to perform pdf documents manipulation (pdf merge, pdf split, page rotation etc). PDFsam Enhanced is its Pro version.....

View Article

Image may be NSFW.
Clik here to view.

Using regex to hanging indent a paragraph in Java

This post shows how to hanging indent a long paragraph using regular expression. The method will consider word boundaries, which means it will not break words for the indentation.

View Article
Browsing all 27 articles
Browse latest View live