Cracking code pratice
文章平均质量分 77
dymom
当爱生活遇上程序猿-爱生活的程序媛
展开
-
determine if a string has all unique characters
public class UniqueChar{ public static void main(String[] args) { String s1="abcd124"; String s2= "abacd234gaf"; String s3="abcd"; String s4="abcdeb"; System.out.println("unique1: true?原创 2014-08-31 16:02:05 · 716 阅读 · 0 评论 -
矩阵旋转90度
Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees Can you do this in place?原创 2014-09-03 20:17:39 · 1321 阅读 · 0 评论 -
剑指offer题三:二维数组中的
题目描述:在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。输入:输入可能包含多个测试样例,对于每个测试案例,输入的第一行为两个整数m和n(1输入的第二行包括一个整数t(1接下来的m行,每行有n个数,代表题目所给出的m行n列的矩阵(矩阵如题目描述所示,每一原创 2014-11-09 11:30:09 · 986 阅读 · 0 评论