Three color sort
Posted by Jothi Basu
on November 09, 2017
with
No comments

Swap every two nodes in a single linked list
Posted by Jothi Basu
on November 09, 2017
with
No comments

Base2 number system conversion
Posted by Jothi Basu
on November 09, 2017
with
No comments

Reverse words in a line
Posted by Jothi Basu
on November 09, 2017
with
No comments

Next immediate greatest number which has all the digits
Posted by Jothi Basu
on November 09, 2017
with
No comments

Given a integer, find the next immediate greatest number which has all the digits in the given number
public class Answer implements NextLargeNumberInterface {
@Override
public int GetNextLargeNumber(int num)
{
// WRITE YOUR CODE HERE
return ;
}
public static void main(String [] args)
{
// write code here to test
}
}
Example1:
Input:...
Run length encoding of a string
Posted by Jothi Basu
on November 09, 2017
with
No comments

Given a string, you need to count the consecutive characters and show the count in the string for each character.
If there is only one character, you dont need to show the count.
public class Answer implements RunLengthEncodingInterface {
@Override
public String DoRunLengthEncoding(String str)
{
// WRITE YOUR CODE HERE
return ;
}
public...