given是什么意思

发布网友

我来回答

5个回答

懂视网

Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted. public class StringManipulation { public static void main(String args[]) { String s

Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

public class StringManipulation {

public static void main(String args[]) {

String s1 = "ba";
String s2 = "cbaaaabbcaaaa";


for (int i = 0; i < s1.length(); i++) {
for (int j = 0; j>=0 && s2.length()>0 &&j < s2.length(); j++) {

while(s1.charAt(i) ==s2.charAt(j)){//处理连续状况
s2 = s2.substring(0, j) + s2.substring(j + 1);
j--;
System.out.println(s2+s2.length()+" "+j);
if(j<0){j=0;}
if(s2.equals(""))break;
}
}
}

System.out.println(s2+"!!!");

}

}

热心网友

given1

(give的过去分词)

given2
形容词 a.

1.规定的,特定的[B]
You have to finish the work within the given time.
你们必须在规定时间内完成这项工作。
2.有癖好的;有倾向的[F][(+to)]
He is given to boasting.
他喜欢吹牛。
3.已知的;假设的;作为前提的
The given radius being 4 ft., find the circumference.
已知半径为四英尺,求周长。

名词 n.

1.假定的事实;已知的事实(或情况)[C]
It is taken as a given.
这事被认为是已知事实。

介词 prep.

1.如果有;假如;考虑到[+(that)]
Given the same treatment again, he is sure to get well.
如果照样再给他治疗一次,他肯定会痊愈。

热心网友

given 考虑到,鉴于, 相当于介词的用法
类似的词还有:considering, concerning, providing, provided
e.g.
Given his age, he did it quite well.
考虑到他的年龄,他做得相当好

热心网友

given1
(give的过去分词)
given2
形容词 a.
1.规定的,特定的[B]
2.有癖好的;有倾向的[F][(+to)]
3.已知的;假设的;作为前提的
名词 n.
1.假定的事实;已知的事实(或情况)[C]
介词 prep.
1.如果有;假如;考虑到[+(that)]

热心网友

付出

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com