Student Interview Report
- 0of 0 votes
AnswerGiven the Java 8 Function interface:
- krish December 03, 2016 in United States
interface Function<T,R> {
R apply<T t>;
}
Provide code that will apply the composition of the following implementations and would have the type
Function<String, Integer>:
class GetBytes<String, byte[]> {
byte[] apply<String value> {
return value.getBytes<>;
}
}
class ArrayLength<byte[], Integer> {
Integer apply<byte[] value> {
return value.length;
}
}
If the input is “hello world” what would the expected result of the function be?| Report Duplicate | Flag | PURGE
Student freshers Algorithm - 0of 0 votes
AnswersFor a linked List p1 ->p2 ->p(n-1)->p(n) shuffle it to be p(1) -> p(n) ->p(2) ->p(n-1)....p(n/2)
- krish December 03, 2016 in United States| Report Duplicate | Flag | PURGE
Student freshers - 0of 0 votes
AnswersFunction to find if the characters of the sample string is in the same order in the text string. They need not be
- krish December 03, 2016 in United States
consecutive.
Eg.. TextString: Redmond, Washington
Sample string :Rdd Waitn| Report Duplicate | Flag | PURGE
Student freshers Programming Skills