-
Even Words
Print Even length words within a String Program : Print even length words within String using Java
-
Heap Sort
Heap Sort in Java Heap sort is a comparison-based sorting technique which is based on Binary Heap Data Structure. Heap Sort is an optimization of selection sort where we first find the max (or min) element swapping it with the last (or first). and we repeat the same process for the remaining elements. In Heap…
-
Merge Sort
Merge Sort in Java The merge sort is a divide and conquer algorithm that divides the input array into equal subarrays and then merges back those subarrays into a sorted array. The process of merge sort is to divide the array into two equal subarrays, sort each subarray, and then merge the sorted subarrays back…
-
Quick Sort
Quick Sort in Java Quicksort algorithm is based on the divide and conquer approach where an array is divided into subarrays by selecting a pivot element.The pivot element is positioned in such a way that elements less than pivot are kept on the left side and elements greater than pivot are on the right side.The…
-
Selection Sort
Selection Sort in Java Selection Sort is a comparison-based sorting algorithm that sorts an array by repeatedly finding the minimum element (considering ascending order) from the unsorted part and putting it at the beginning. The process is continued until the entire array is sorted. Algorithm for Selection Sort Step 1 : Set the first element…
-
Insertion Sort
Insertion Sort in JavaInsertion sort is a sorting algorithm that places an unsorted element in a sorted list in each iteration.Insertion sort works similar to sorting cards in our hand in a card game in which we place the first card which is already sorted then, we select an unsorted card. If the unsorted card…
- January 2025
- December 2024
- November 2024
- April 2024
- December 2023
- November 2023
- October 2023
- August 2023
anagram (1) anagramstring (1) android (2) array (2) arraycomparator (1) arrayssort (1) callbyreference (1) callbyvalue (1) chararray (1) collections (1) continue (1) controlstatements (1) decisionmaking (2) decisionmakingstatements (2) dowhileloop (1) dynamicbinding (1) evenlengthwords (1) forloop (2) goto (1) hashmap (1) if (1) ifelse (1) ifelseif (1) ifelseifladder (1) insertstring (1) iteration (2) iterations (1) java (39) javaarray (1) javacallbyreference (1) javacallbyvalue (1) javacharactercount (1) javacollections (1) javacontinue (1) javacontrolstatements (1) javadowhileloop (1) javahashmap (1) javaif (1) javaifelseif (1) javaifelseifladder (1) javainsertstring (1) javaiteration (1) javaiterations (1) javajumpstatement (1) javajumpstatements (2) java keyword (4) javakeyword (2) javakeywords (2) javaloop (1) javaloopingtstatements (1) javaloops (2) javaloopstatements (1) javamethodoverloading (1) javamethodoverriding (1) java oops (2) javapalindrome (1) javaprogram (28) javaprogramming (20) javareturn (1) javareversestring (1) javareversingstring (1) javasearching (2) javasorting (6) javastring (7) javastringcount (1) javastringintostring (1) javastringpalindrome (1) javastringprogram (6) javastringsort (1) javaswitchcase (2) javawhileloop (1) jumpstatement (1) jumpstatements (2) keyword (5) label (1) loop (3) looping (1) loops (1) mergesort (2) methodoverloading (1) methodoverriding (1) nestedif (1) oops (2) palindrome (2) recursion (2) return (1) reversestring (1) reversingstring (1) searching (2) set (1) sort (1) sorting (7) staticbinding (1) string (7) stringbuffer (1) stringbuilder (2) stringintostring (1) stringpalindrome (1) switchcase (2) whileloop (1)