Run-length encoding Program. ORGiven an input string, write a function that returns the Run Length Encoded string for the input string. ORCompress a given string inplace and with constant extra space.
Compress a given string "aacccddd" to "a2c3d3"...
Home
»
Archives for July 2016
Compress a given string in-place and with constant extra space.
in
Interviews,
Strings
- on 12:44:00
- No comments
Type Casting Interview Questions In Java
in
Interviews,
Java
- on 22:42:00
- No comments
Type Casting Interview Questions In Java
Type casting helps calling methods of a class using generic reference thereby maintains Polymorphism.
Question 1. We have a requirement to display all the features of a Bird and a class is designed...
Command Design Pattern.
in
Design Pattern
- on 11:19:00
- No comments

Command Design Pattern.
Command Design pattern is used to decouple Sender and Receiver.
Sender is totally unaware of Receiver's interface and Receiver is unaware of Sender.
Sender and Receiver communicates using command.
Command Design Pattern...