Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts
Sunday, April 16, 2017
Tuesday, April 11, 2017
Reverse a string containing Japaneese and chinese characters
Problem statement: We need to reverse the sentence containing Japanese and Chinese character.
Ex "ABCabcDEFdef . Here we need to assume that the capital letters are Japanese and smaller letters are Chinese.
We need to get an o/p as "defDEFabcABC"
Steps involved
- Write function to identify if the character is Chinese or Japanese character
- Check if previous character is different than the current. If it is different then add a space
- Use split and then reverse the string
- Remove the empty space
Subscribe to:
Posts (Atom)
Labels
- Algorithms (52)
- Apache Kafka (7)
- Apache Spark (21)
- Architecture (8)
- Arrays (23)
- Big Data (98)
- Cloud services (6)
- Cognitive technologies (12)
- Data Analytics (3)
- Data Science (6)
- Design (1)
- Hadoop (26)
- Hive (11)
- Java (2)
- JavaScript (65)
- JavaScript Run-time (12)
- Machine learning (11)
- Maths (6)
- MySQL (1)
- Networking (3)
- No SQL (2)
- Node (20)
- Python (28)
- SQL (40)
- Security (4)
- Spark Grpahx (1)
- Spark MLlib (1)
- Spark Sql (3)
- Spark Streaming (4)
- Sqoop (2)
- Strings (13)
- devOps (1)
- mongoDb (2)
- ssis (3)