Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upadded a new program to convert 12 hour time format to 24 hour time format #1979
Conversation
Faster way to check whether a string is palindrome or not
Conversion of 12 hr time format to 24 hr time format
added a program to find Binomial Coefficient of two given numbers
Travis tests have failedHey @hrithik-13, TravisBuddy Request Identifier: 46d3b0e0-1962-11eb-a6ec-b9eb403ed3be |
|
|
||
| // Pointers pointing to the beginning | ||
| // and the end of the string | ||
| int i = 0, j = str.length() - 1; |
AkMo3
Oct 29, 2020
Make variable name a little bit more understandable like
int startIndex =0, endIndex = str.length()-1;
| import java.util.Scanner; | ||
|
|
||
| public class Solution { | ||
|
|
AkMo3
Oct 29, 2020
Add javadocs comments explaining different parameters. Follow the correct coding guidelines with proper description of the methods. Refer to DecimalToAnyBase.java and DecimalToAnyBaseTest.java for the algorithms and tests coding standards, respectively.
|
|
||
| public static void main(String[] args) throws IOException { | ||
|
|
||
| Scanner in = new Scanner(System.in); |
| hour =""+h; | ||
| } | ||
| System.out.println(hour+":"+min+":"+seconds); | ||
| } |
Travis tests have failedHey @hrithik-13, TravisBuddy Request Identifier: 0e782430-19e2-11eb-a6ec-b9eb403ed3be |
added a new program to convert 12 hour time format to 24 hour time format