J Engine Team
Friday, January 31, 2014
Software Rendering with JPCT and java2d together
›
package com.jengine.kevinchwong; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; impor...
Test for XML Import and MOXy + EclipseLink
›
package kcwobjectxmljsontest; import javax.xml.bind.*; import javax.xml.bind.annotation.*; import java.io.FileOutputStream; import java.ut...
1 comment:
Test for XML and perst.jar
›
package kcwxmltest; import org.garret.perst.*; import java.io.*; public class TestXML { static class Record extends Persistent { ...
Test for the access to DB2
›
package kcwdb2test; import com.ibm.as400.access.AS400JDBCConnectionPoolDataSource; import java.sql.Connection; import java.sql.PreparedSta...
Leetcode: triangle
›
public class Solution { public int minimumTotal(ArrayList<ArrayList<Integer>> triangle) { int n1=triangle.size(); ...
Thursday, January 30, 2014
LeetCode : Search insert position
›
It is easy to do by O(N)... But this solution is by O(logN) public class Solution { public int searchInsert(int[] A, int target) { ...
Tuesday, January 28, 2014
Leet Code: search in rotated sorted array with duplicate...
›
Search in Rotated Sorted Array II What if duplicates are allowed? Would this affect the run-time complexity? How and why? Wr...
›
Home
View web version