-
Sum of Array Elements: Write a program to find the sum of all elements in an array.
-
Largest Element in Array: Find and print the largest element in an array.
-
Even or Odd Numbers: Check if a given number is even or odd using if-else. (also count in an array)
-
Reverse an Array: Reverse the elements of an array.
-
Factorial Calculation: Write a program to calculate the factorial of a given number.********* + recursive solution.
-
Palindrome Check: Check if a given string is a palindrome. (use char string)
-
Prime Number Check: Determine whether a given number is prime.
-
Fibonacci Series: Generate and print the first N elements of the Fibonacci series.******** + recursive solution.
-
Linear Search: Implement a linear search algorithm to find an element in an array. (true or false return type)
-
Binary Search: Implement binary search for a sorted array.
-
Duplicate Elements: Find and print duplicate elements in an array. (true or false return type)
-
Count Vowels and Consonants: Count the number of vowels and consonants in a given string. (a, e, i, o, u)
-
Multiplication Table: Print the multiplication table for a given number. (2 x 1 = 1, 2 x 2 = 4)
-
Matrix Addition: Add two matrices and print the result. 5x5 5x5 (return 2d array)
-
Calculate Average: Calculate the average of elements in an array.
-
Leap Year Check: Determine whether a given year is a leap year.
-
Pattern Printing: Print a pattern (e.g., a pyramid) using loops. (google patterns of loop)
-
String Reversal: Reverse a given string without using built-in functions. apple, elppa
-
Armstrong Number: Check if a number is an Armstrong number.
-
Find Minimum and Maximum: Write a program to find the minimum and maximum values in an array.
-
Notifications
You must be signed in to change notification settings - Fork 0
imashiqe/java_problem_solving
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Standard Level Questions Solved With Java