Agenda
Number System Problems:
- Swap two numbers in java using third or temporary variable (example)
- Reverse number – Leet Code Challenge
- Program to convert binary number to decimal (java api, iterative & recursive)
- Program to check given input number is even or odd in java (example)
- Convert decimal to hexadecimal – java api, iterative & recursive
- Convert hexadecimal to decimal – java api, iterative & recursive
- Find factorial of number in java – recursive & iterative (example)
- Find LCM of two numbers using GCD in java (example)
- Find number of consecutive 1’s in a binary number in java (example)
- Find sum of all digits of given number/Integer (java /example)
- GCD of two numbers Euclidean algorithm in java (iterative/ recursive)
- Generate/ print fibonacci series in java – recursive & iterative (example)
- Program to calculate simple interest (Java & Example)
- Convert decimal number to Octal – (java api, iterative & recursive)
- Convert decimal number to hexdecimal – (java api, iterative & recursive)
- Convert decimal number to binary – (java api, iterative & recursive)
- Check whether given integer number is prime or not in java (example)
- Check integer number is positive, negative, zero in java (example)
- Check given number is palindrome using java (non-recursive/example)
- Calculate power of integer number in java (example)
- Swap two numbers without using third or temporary variable in java
- Program to add two binary numbers in java (example)
String Manipulation Problems:
- Program to convert String to Double in java (example)
- Program to convert String to Float in java (example)
- Convert String variable to Long in java (example)
- Program to print duplicate characters in String (Java8 /Example)
- Program to convert char to string in java (Character, String class)
- Program to convert String to char & char array in java
- Program to convert char array to string (Java Stream, StringBuilder, String)
- Convert String variable to Integer in java (example)
- Convert String object to lower case & upper case in java (example)
- Reverse each word of a string using StringBuilder in java (example)
- Reverse string word by word in java (stack/ stringbuilder /example)
- Java API, recursive & iterative algorithm to reverse string (example)
- Join or concatenate or combine multiple strings in java (example)
- Program to count & print vowels, consonant in String (java /example)
- Program to sort array of strings – Java 8 Lambda Stream
Basic Geometry Problems:
- Find area & perimeter of a square in java (with example)
- Find area of triangle (three sides) using hero formula ( java & example)
- Find area of triangle using base & height in java (example)
- Find area & perimeter of rectangle in java (with example)
- Given radius, find area & circumference of circle in java (example)