由买买提看人间百态

topics

全部话题 - 话题: error
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)
h******3
发帖数: 351
1
来自主题: JobHunting版 - leetcode Parlindrome Partition run time error
complain runtime error
Last executed input
"a"
public int minCut(String s){
int count = 0;
ArrayList> res = partition(s);
for(ArrayList subpa : res)
count += subpa.size();
return count;
}
public ArrayList> partition(String s) {
if(s == null || s.length() == 0)
return new ArrayList>();
boolean[][] isPa = new boolean[s.length()][s.length()];
for(int i = 0; i < s.length(); i++){
isPa[i][i] = true;
... 阅读全帖
k*******2
发帖数: 84
2
来自主题: JobHunting版 - leetcode internal error?
仲么提交完突然internal error了? 不要啊 我leetcode上最后一题。。。
b********6
发帖数: 97
3
来自主题: JobHunting版 - LeetCode Jump Game [Runtime Error]
神奇的是
Old OJ 大集合通过
new OJ Runtime Error Last executed input: [0,2,3]
百思不得其解, code 如下。
public class Elem {
int index;
int step;
}
public boolean canJump(int[] A) {
// Start typing your Java solution below
// DO NOT write main() function
int len = A.length;

if (len == 0) return false;
if (len == 1) return true;
if (len == 2) return A[0] != 0;

Stack s = new Stack();
... 阅读全帖
r*******n
发帖数: 3020
4
运行 Best Time to Buy and Sell Stock I 两次
第一次运行完把 把相应的最小值和最大值从prices里删掉,
再进行第二次。
我不确定这么做对,但是【1,2,4】这个case没有通过说run time error
我在自己的机子上能出结果,结果是3
r*******n
发帖数: 3020
5
错了的话,应该给wrong answer而不是run time error.
c********w
发帖数: 2438
6
第二个while循环
copy random的时候
如果原random是null怎么办
不就run time error了
所以要处理
if(pointer.random!=null)
b*******m
发帖数: 10
7
来自主题: JobHunting版 - wildcard matching 大case runtime error
如下代码,大case 会runtime error 这是什么原因?
哪个大牛帮忙看下
bool isMatch(const char *s, const char *p) {
int lens = strlen(s);
int lenp = strlen(p);
vector> dp(lens+1, vector(false, lenp+1));
dp[lens][lenp] = true;
for (int i = lenp-1; i >= 0; i--) {
if (p[i] == '*' && dp[lens][i+1]) {
dp[lens][i] = true;
} else {
break;
//dp[len][i] = false;
}
}
for (... 阅读全帖
c********l
发帖数: 8138
8
compile error怎么说的?
r****t
发帖数: 10904
9
求如何看 compile error 细节? 我看到的就只有这两个词,没有 trace.
l******9
发帖数: 579
10
I need to access IBM Netteza database from C# in Visual Studio 2013 on win 7
.
connectionString="Driver={NetezzaSQL}; Server=xx.x.xxx.xxx;Database = my_db;
Uid=my_user_id;Pwd= my_password; ReadOnly=true;
I got exception:
An unhandled exception of type 'System.Data.Odbc.OdbcException' occurred in
System.Data.dll
Additional information: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data
source name not found and no default driver specified
I have installed 32/64 bits data base driver.
Thanks
e*******s
发帖数: 1979
11
来自主题: JobHunting版 - LeetCode RunTime Error一问
一段程序 中间有一只vector num
num[index-1]= tmp;
自己电脑上跑没问题, index也检查过了, 在range之内.
不知道为什么在leetcode的server上会出runtime error呢
l******9
发帖数: 579
12
I am designing a SQL Server 2008 R2 query.
If I used string concatenation to insert into table, it does not work.
DECLARE @s1 varchar(MAX);
DECLARE @s2 varchar(MAX);
DECLARE @s3 varchar(MAX);
DECLARE @s4 varchar(MAX);
SET @s1 = 'SELECT a.id, b.name as new_name, a.value FROM ['
SET @s2 = '].[dbo].[table1] as a, '
SET @s3 = 'a_temp_table as b ' -- a_temp_table is a table variable. No
matter I put "@" or "#" in front of a_temp_table, it doe snot work.
SET @s4 = 'WHERE a.id = b.i... 阅读全帖
A*****i
发帖数: 3587
13
你这题解法有错误
第一个runtime error是因为没有考虑vector为空的时候情况
然后逻辑错误是你只是计算每一天和前一天差的和,并不是最大值。
l******9
发帖数: 579
14
I am compiling C# (designed by others) on Visual Studio 2013.
But, in one of the projects, it has two key files that are password
protected.
The compiling (for debug) cannot be done because the key file cannot be
imported.
In the project property, I unchecked the "Sign the assembly" and then
deleted the two key files.
But, it still cannot be compiled because of the error of "cannot import the
key files" .
Any help would be appreciated.
Thanks !
b******g
发帖数: 3616
15
那个很长的zigzag test case我记得两个月前就有了。你这个解法是不是run time
error而不是time limit exceeded?
应该不是剪枝的问题,而是stack overflow了。因为你的dfs是用递归来做的,数据大
了就不行了。改成用stack的dfs或用queue的bfs就行了。

,T
d********m
发帖数: 101
16
多谢2位回答!后来改用queue的bfs才能通过
上面的代码在10个月前确实能通过,现在出的新的test case确实runtime error,而不
是time limit exceeded
如果用stack的dfs跟上面的递归会有区别吗?
b******g
发帖数: 3616
17
有区别。用stack的dfs不会造成rum time error,你试下,写个stack DFS也就一分钟
的事情。
recursion的问题在于是消耗call stack,很容易stack overflow。用iteration消耗的
是heap。
z***y
发帖数: 73
18
大概有三个问题:
1.
while (tmp.length() + words[i].length() + 1 应该i 2.
int pos = words[start].length() + perspace + extraspace+1;
我理解空格应该是均摊,比如4个词有5个空格,应该是2 2 1, 而不是 3 1 1
3.
最后一行要特殊处理,尾部加空格即可。
l******9
发帖数: 579
19
I am working on Visual Studio 2013 C# win 7.
I am doing ASP.NET WEB API development by following the instructions on
http://www.asp.net/web-api/overview/older-versions/build-restfu
At step 4 of Exercise 1: Create a Read-Only Web API, I got :
I pressed F5 to debug the application. The default home page for a Web API
project did not appear.
I got error of
Process with an Id of 14940 is not running.
Why I got this ?
Thanks
l******9
发帖数: 579
20
【 以下文字转载自 Programming 讨论区 】
发信人: light009 (light009), 信区: Programming
标 题: error draw map from shape file Python 3.2 basemap
发信站: BBS 未名空间站 (Sat Feb 14 13:51:37 2015, 美东)
I am working on drawing map from shape file in Python 3.2 basemap.
But, the longitude values at the bottom axis are only shown partially. Also,
all latitude values are missing.
Here is my python code.
import shapefile as sf
import sys
import numpy as np
import matplotlib.pylab as plt
from mpl_toolkits.basemap import Basemap
ma... 阅读全帖
l******9
发帖数: 579
21
I am working on RESTful Web services design in Visual Studio 2013 on Windows
7.
I need to run the command of Update-Database to create the database in code-
first migrations in a project.
But I get an error:
System.Data.SqlClient.SqlException : Cannot attach the file 'C:MyPathApp
_DataProductReview_newContext-20150216131927.mdf' as database 'ProductReview
_newContext-20150216131927'.
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(
DbConnection owningObject, UInt32 waitForM... 阅读全帖
i*****h
发帖数: 1534
22
run time error一般就那几个原因,但我不懂C,帮顶一下。
你把代码贴上来让懂的人给你看看。
l*********e
发帖数: 261
23
n^2 solution:
int twoSum(int numbers[], int n, int target)
{
int i,j;
if(n<2) return 1;
for(i=0;i {
for(j=i+1;j {
if(numbers[i] + numbers[j] == target)
{
printf("index1=%d, index2=%d", i+1, j+1);
return 0;
}
}
}
return 1;
}
Submission Result: Runtime Error
Last executed input: [3,2,4], 6
谢谢
p**********7
发帖数: 122
24
睡前发一贴,求大神指点~~~
面试一个math programmer的职位。
电面一周后,公司发了几个问题让我用c++ code,并且在规定时间内提交。。。
第一个问题是编个程序求解linear regression
第二个第三个问题都是线性规划的optimization
于是我拿出了几年没有用过的c++,熬夜把程序写出来,用他们给的data测试完后发给
公司,过了半天,公司的人回信让我改进code,要for better error handling, re-
usability, readability, testability, and OOP?
小弟不是cs背景。。。不太明白他们要改进的东西要怎么做。。。
知道这个版大神多,求指教。。。
另外,最后一个OOP是什么意思啊?完全不懂
s*********0
发帖数: 2045
25
来自主题: Living版 - 请教:Roomba 500 series error 6
cliff sensor坏了。其实就是一个IR LED,自己拆下来焊一个新的上去,要不了几块钱:
http://www.pottsland.com/roomba/Roomba_5xx_Cliff_Sensor.html
或者不愿意焊接的话,上ebay买现成的cliff sensor,几十块刀:
http://www.ebay.com/itm/iRobot-Roomba-5xx-Series-Cliff-Sensor-S
这个其实不很常见。500系列最常坏的是bumper sensor,就是著名的9 beep error,原
地打转,那个网上有很多卖LED教你怎么焊的教程:
http://www.ebay.com/itm/ROOMBA-IROBOT-5xx-7xx-9-BEEP-CLIFF-AND-
I**********e
发帖数: 811
26
After so many hours of search, trial and error, finally! The solution is
here:
https://ttlc.intuit.com/questions/3039734
不过网上遇到这样的问题的真多,怎么都解决不了的也有。真心觉得是软件的一个bug!
Thanks for all who have helped!
d*****2
发帖数: 91
27
I received a letter informing me that my checking account is not going to be
free a couple of days ago. I planned to close it and contacted them today.
However, the guy in customer service told me that the letters were sent in
error. They did not change their no fee policy. ???!!!
l*****b
发帖数: 144
28
Error
•Unfortunately our systems are not responding, so we are unable to
process your request at the moment. We apologise for this inconvenience and
suggest you try again later.
试了好几天了,总是这样。都这样吗?
有人最近用里程在网上订成功过吗?
i*********e
发帖数: 5295
29
其实oder一下也无伤大雅,大不了退回去
以前US airway也出现过redeem mileage error后来航空公司也只能承认了
f**********n
发帖数: 3081
30
来自主题: Money版 - 在ATM存cash,ATM error 钱没了
这兄弟说的对:
Re: Chase ATM error.. please help me
Postby mikecdisi » Tue Jun 08, 2010 9:45 pm
These experiences are why I would never deposit cash or checks at an ATM. I'
ll make the time to go into a branch and see a real person....that way if
they screw up I'll have someone that I can hold accountable.
b********n
发帖数: 32
31
我申请citi forward,填好信息了点submit。结果在我焦急期盼出现instant approve
的时候,居然跳出了error。查了邮箱没有收到citi来的确认提交的邮件。
请问一下,这样子会被hard pull一个吗?万分感谢!
g**n
发帖数: 25142
32
来自主题: Money版 - vanilla reload error message
是按24小时算
如果你昨晚load过
今天没满24小时又load
就会error
K****l
发帖数: 861
33
这个error code是CVS系统出现的code(cashier告诉你的)
还是在reload页面上出现的错误code?
a****p
发帖数: 177
34
Error occured during your request. Please contact customer service
这个是不是关卡的节奏?唉
c********1
发帖数: 256
35
来自主题: Money版 - 关于paypal error code=26
刚冲500到账户内,出现以下信息,有人遇到过吗?
以前冲的时候出现其他错误,结果500没有了,但是每天电话自动查询会出现一次,一
充就消失,说是已经redeemed,但是第二天又会出现,如此反复,结果打以下电话,
paypal和香草扯皮了无数次,把我当皮球踢来踢去,过了很久才解决。所以实在不敢再
打以下的电话。记得那次出现的错误和这次唯一相似的是第一次冲的时候会有个“null
”,但是没有code=26
sorry, the redemption of your my cash card could not be complted at this
time, please call customer service at 888-221-1161 so that we can resolve
this issue for your
paypal error code=26
G**k
发帖数: 344
36
换了浏览器也不行,一直是error,有人遇到过吗
d********0
发帖数: 202
37
我这边也出现了同样的问题,error 203,打电话给incomm,他们让我把收据及给他们
,然后他们会寄支票还给我钱,真不知道他们搞什么鬼,已经CFPB了,貌似没用
n*********d
发帖数: 1603
38
来自主题: Money版 - Error code: 70245 有解么
买gc的limit肯定没到啥6个月5000之类的,不知道为啥就时不时遇到这个error code,
paypal digital gift家的gc就不让买了
n*********d
发帖数: 1603
39
来自主题: Money版 - Error code: 70245 有解么
Something went wrong. Please try to check out again.
Error code: 70245

this
y****i
发帖数: 17878
40
来自主题: Money版 - Error code: 70245 有解么
this is a different error
for 70245, try another browser, or check out at ebay.ca

this
s*********g
发帖数: 189
41
你们是不是刚刚开的mpx帐号?我也收到这个error,搜了一下,好像有7天的waiting
period.要开户七天之后才能购买。
s*********g
发帖数: 189
42
我根本就没有到Amx,error message 里是要跟mpx联系
i******8
发帖数: 446
43
来自主题: Money版 - PayPal error 601
Trying to checkout on ebay when log in to PayPal it says can not process
payment error 601, called PayPal customer service, can not solve the problem
.....
C******8
发帖数: 602
44
来自主题: Money版 - 求助mycash error 203
在cvs买了张paypal mycash, 死活load不了,说是error code 203
偶尔买mycash,最近因为药店5%才买了一张。。。结果这么麻烦
换了浏览器也是一样的结果,这是卡的问题么?还是paypal帐号问题?
能不能appeal信用卡?

发帖数: 1
45
来自主题: Money版 - 求助mycash error 203
异地买的?
自己Google payPal mycash error 203
d*y
发帖数: 355
46
我想把我的chase freedom点数转到我ld的chase csp账户里,我们一个billing
address,不同last
name, 我转的时候出现error。 一个household不同last name的可以转吗?
az
发帖数: 16686
47
祝福,不懂
应该问题不大吧,要不然医生是不是该第一时间联系你们了?

anaylists
errors
c*******u
发帖数: 12899
48
☆─────────────────────────────────────☆
lemonader (好久没锻炼了) 于 (Tue Apr 20 16:51:41 2010, 美东) 提到:
在宝宝1,2个月的时候,闻到宝宝小手和耳后有汗脚的味道,当时没有太在意。怕宝宝
挠自己的脸,mist总会掉,所以手上带的是小袜子;耳朵后面以为吐奶没擦干净造成的
。因此发现味道后,就勤给宝宝洗手洗脸,之后味道也越来越淡。小手几乎闻不到,耳
朵后偶尔还有些淡淡的
一个月前,在宝宝4个半月的时候,偶尔看到一篇文章说,宝宝身上的异味不容忽视,
其中包括汗脚味,说有可能影响宝宝的智力发育。于是立刻带宝宝去检查,医生当时也
说没有闻到什么abnormal odor, 但还是做了尿样检查。
今天初步结果出来(没有见到医生,护士给的诊断书,说还要等metabolism anaylists
interprete),但在Associated Diagnoses 上写:screen metaolism, inborn errors
[v77.7].
有姐妹知道这是最后诊断吗?
还有,如果有这种inborn
q**y
发帖数: 64
49
【 以下文字转载自 ebiz 讨论区 】
发信人: qbcy (qbcy), 信区: ebiz
标 题: Price Error? Evenflo Aura Select Sweet Pea Baby Travel System @ Kmart
发信站: BBS 未名空间站 (Fri Nov 5 13:15:06 2010, 美东)
http://www.pricetrace.com/?pick=4798&do=q&upc=032884161515&keywords=Evenflo+Aura+Select+Sweet+Pea+Baby+Travel+System
Evenflo Aura Select Sweet Pea Baby Travel System
降了$100. 原价$153
c*****a
发帖数: 3965
50
8w mile是个error
我就去买了,碰碰运气
给我5000mile补偿好像也还行
不过那个耳机超贵,我看到有的地方只卖一半的价。。。
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)