一亩三分地 标签 标签 careercup 相关帖子

标签:
careercup (#careercup)

318个主题 | 4192个回复 | 最后更新: 2023-5-27 03:23

相关帖子

版块 回复/查看 最后发表
【第三轮】8.3-8.9 CareerCup 9.8

9.8 Given an infinite number of quarters (25 cents), dimes (10 cents), nickels (5 cents) and pennies (1 cent), write code to calculate the number of ways of rep ...

刷题 4 1593 Jason_Yuan 2015-8-20 16:26
【第三轮】8.3-8.9 CareerCup 9.10

9.10 You have a stack of n boxes, with widths w1, heights h1 and depths d1. The boxes cannot be rotated and can only be stacked on top of one another if each b ...

刷题 5 2033 地梩的匿名用户 2015-5-20 10:20
【第三轮】8.3-8.9 CareerCup 9.11

9.11 Given a boolean expression consisting of the symbols 0,1, &, /, and ^, and a desired boolean result value result, implement a function to count the number ...

刷题 4 2002 bitcpf 2014-9-26 01:23
【第三轮】8.3-8.9 CareerCup 9.9

9.9 Write an algorithm to prim all ways of arranging eight queens on an 8x8 chess board so that none of them share the same row, column or diagonal. In this cas ...

刷题 4 1542 bitcpf 2014-9-24 00:34
我的这段很简单的反转链表哪里错了?

刷题 1 1403 christy.zhang 2014-9-22 12:32
【第三轮】8.3-8.9 CareerCup 9.7

9.7 Implement the "paint fill" function that one might see on many image editing programs. That is, given a screen (represented by a two-dimensional array of co ...

刷题 3 1289 bitcpf 2014-9-22 01:00
文科生向文科生讲解递归递归(1)

已1->4->6 + 2->7->9=4->2->5为例,①sum=1+2+sumHelper(result,list1,list2);②sum=4+7+sumHelper(result,list1,list2);③sum=6+9+sumHelper(result,list1,list2) ...

刷题 9 1922 TonyJang 2014-9-21 10:04
【第三轮】8.3-8.9 CareerCup 9.6

9.6 Implement an algorithm to print all valid (i.e., properly opened and closed) combinations of n-pairs of parentheses.回复解法可以按照以下格式来 ...

刷题 4 1266 bitcpf 2014-9-20 23:34
Create two Linkedlist,空间复杂度是max(M,n)?

为啥不是M+N?

刷题 4 1572 Ferrix_5 2014-9-20 11:15
【第三轮】8.3-8.9 CareerCup 9.5

9.5 Write a method to compute all permutations of a string回复解法可以按照以下格式来【解题思路】【时间复杂度】【空间复杂度】【gist link】----- ...

刷题 4 1233 bitcpf 2014-9-19 23:22
【第三轮】8.3-8.9 CareerCup 9.4

9.4 Write a method to return all subsets of a set.回复解法可以按照以下格式来【解题思路】【时间复杂度】【空间复杂度】【gist link】------------- ...

刷题 4 1544 bitcpf 2014-9-19 01:01
【第三轮】8.3-8.9 CareerCup 9.3

9.3 A magic index in an array A[1.. .n-1] is defined to be an index such that A =i. Given a sorted array of distinct integers, write a method to find a magic in ...

刷题 5 1386 bitcpf 2014-9-18 10:18
Career Cup 2.4ListPartition我这个一运行Eclpse就崩溃了,咋回事啊

[code]package Chapter2;public class partition {public static void partition(MyLinkedList list,int k){Node BeforeStart=null;//左边是Node的引用,这个 ...

刷题 0 1539 TonyJang 2014-9-17 16:25
实现单链表(JAVA)

创建节点:this(nodeValue, null)这句是不是this.nodeValue = nodeValue; this.next = null; 的意思啊?为什么这里的null不用大写呢?

刷题 4 1343 sqzhang17 2014-9-13 02:36
我发现CC150里都没有实现代码,没有testcase

哪里有源代码下载啊?就是可以编译的

刷题 5 2565 huangyu 2014-9-12 21:20
讨论一下10.3

题意是一个文件里面有1G的不重复的非负整数,只有10M的内存,找出一个不在文件里面的非负整数。解法和他一样,划分区间再统计,但是智商拙计没有看懂他后面对区间大 ...

刷题 0 1236 sally216 2014-9-2 22:39
CC150 1.7把矩阵元素为0的行和列清空

[code]public class Q1_7{public static void SetZero( int[][] matrix){boolean [] row= new boolean[ matrix. length ]; //二维矩阵的长度指行数,并且和 ...

刷题 7 2324 jxzhuge12 2014-8-29 10:08
帮忙找bug.....多谢,matrix旋转90度那题

LZ卸了eclipse,装了个新的操蛋IDE,还没摸索完,这玩意不提示错误,就说了非法表达式,你妹![code]public class Q1_5{public static void rotate(int matrix[][],int n ...

刷题 4 1784 TonyJang 2014-8-25 16:28
CC150 1.2 翻转字符串

有几个问题:第一行:一般字符数组的末尾是‘\0’吧,这个因为是char *str,所以最后一位是NULL?第四行: 感觉外面这个if(str)可以不要吧

attach_img
刷题 11 2289 水逼一枚 2014-8-20 06:44
CC150里的1.1第二种解法哪个大牛给说说

实现一个算法来判断一个字符串中的字符是否唯一(即没有重复).不能使用额外的数据结构。 (即只使用基本的数据结构)[code] public boolean isUniqueChars2(String str) { ...

刷题 7 1718 jetfish1900 2014-8-17 15:50
>
返回顶部