Tagged Questions
7
votes
3answers
270 views
Number to words in left to right direction
I have faced one logical question in an interview:
If we enter a number it will convert into individual strings and display in same order.
Ex: If I enter 564 ...
3
votes
1answer
50 views
Infix to postix conversion
I'm looking for code review, optimizations and best practices.
Also verifying complexity to be O(n), where n is the string length.
...
10
votes
3answers
653 views
Is decimal, hexadecimal, octadecimal, binary converter efficient?
I have made a method which takes two parameters: the value to convert and the base. Based upon those two parameters my method is adjusted (with several helper methods) to change the desired decimal ...
2
votes
1answer
81 views
Refactor ConvertorToString class
Help me refactor this class that helps to represent an object state as String:
...
7
votes
2answers
384 views
Digit to words converter
This is one of the longest programs I have made with methods and I think I must be doing this rather inefficiently. Any comments to improve would be appreciated.
...
-1
votes
2answers
2k views
0
votes
3answers
92 views
Need help optimizing/making this code more efficient
So I'm working on a code where it converts shoe sizes and distance
...
3
votes
1answer
196 views
Convert tree to circular doubly linked list
I want you to pick my code apart and give me some feedback on how I could make it better or simpler. This code converts a binary tree to a doubly linked list (in order).
...
1
vote
2answers
115 views
Converting an image to a bitmap
What the code does is convert an image to a bitmap without having to create 3 arrays to make the conversion. It basically uses 1/3rd of the memory that it would normally use.
I'm trying to refactor ...
2
votes
2answers
2k views
Conversion of expression from Prefix to Postfix notation (Problem with precedence) [closed]
I have been attempting to write a code that converts Prefix expressions to Postfix expressions.
So far here's what I have made (note that I am new and hence it may not be efficient!)
...
5
votes
1answer
534 views
Writing the Word Equivalent of a Check (Cheque) Amount
I am looking for feedback on a solution to the following problem posed from a book that I'm working through (Java: How To Program 9th Edition) :-
Continuing the discussion in Exercise 16.20, we ...
6
votes
2answers
219 views
Converting an integer number into its word representation
I've written this code to convert an integer number into its word representation. I've tested it for many cases and it seems to be working as expected.
For example:
1000 displayed as "One Thousand"
...
1
vote
2answers
261 views
Time converter in Java
Can this time converter be written more efficiently? I'm new to Java, and I would like to know.
main
...
6
votes
2answers
278 views
Integer to String recursive method
I was experimenting with lists, sets, and finally maps when I spotted a pattern in my code to make it recursive. Now I haven't used recursion much in the past or at work and I was very excited to have ...
4
votes
1answer
3k views
Unit Converter App
Please review this Android UnitConverter App which has been designed using Strategy Pattern.
...
2
votes
1answer
1k views
Hibernate proxy converter for GWT
Here's a class that converts Hibernate proxies to normal classes. This is useful with GWT for example, when sending objects loaded from database to the GWT client.
Please review it.
...