Showing posts from 2023Show all

Engineer Know
February 01, 2023

Bubble Sort in Python Bubble sort is an algorithm for sorting an array by repeatedly swapping adjacent elements if they are in the wrong order. It works by iterating thr…

Read more
Engineer Know
January 31, 2023

Rearrange a given array of int values so that the even numbers appear first, followed by the odd numbers. Here is an example of how you might implement the orderEvenBef…

Read more
Engineer Know
January 30, 2023

Insertion sort in Java Insertion sort is an algorithm for sorting an array by iterating through the array and inserting each element into its correct position in a sorte…

Read more
Engineer Know
January 29, 2023

Bucket Sort in Java Bucket sort is an algorithm for sorting an array of elements that are uniformly distributed across a range. It works by dividing the range into a nu…

Read more
Engineer Know
January 28, 2023

Selection sort in Java Selection sort is an algorithm for sorting an array by repeatedly selecting the minimum element (considering ascending order) from the unsorted p…

Read more
Engineer Know
January 27, 2023

Quick Sort in Java Quick sort is an efficient, general-purpose, comparison-based sorting algorithm. It works by selecting a "pivot" element from the array and…

Read more
Engineer Know
January 26, 2023

Merge Sort in Java Merge sort is an efficient, general-purpose, comparison-based sorting algorithm. It works by dividing an array into two halves, sorting each half, and…

Read more
Engineer Know
January 25, 2023

Convert it into a sorted linked list. You have to return the head of LL The first and only line of input contains data of the nodes of the tree in level order form. The…

Read more
Engineer Know
January 24, 2023

Breadth First Search tree in Java Breadth-first search (BFS) is an algorithm for traversing or searching a graph, tree, or other data structure. It starts at the root n…

Read more
Engineer Know
January 23, 2023

Write a java code to find the height of a binary tree To find the height of a binary tree in Java, you can use the following recursive approach: If the tree is empty (i…

Read more
Engineer Know
January 22, 2023

Find all possible palindromes in a String in java To find all palindromic substrings in a given string in Java, you can use the following approach: Iterate over the cha…

Read more
Engineer Know
January 21, 2023

Finding all possible combinations of numbers to reach a given sum Java To write a Java method allCombinationsWithValue that determines all combinations of digits and op…

Read more
Engineer Know
January 20, 2023

Write a program to encode and decode a string in java To write a Java program that encodes and decodes a string, you can use a simple substitution cipher. In a substitut…

Read more
Engineer Know
January 19, 2023

Longest common subsequence Program in Java To write a Java method lcs that recursively processes two strings from the back and returns the longest common suffix, you ca…

Read more
Engineer Know
January 18, 2023

How to search in binary sort tree in Java To search for a specific value in a binary search tree (BST), you can use a recursive or iterative approach. In a recursive ap…

Read more
Engineer Know
January 17, 2023

Sum of Binary Tree in Java To calculate the sum of all the values in a binary tree in Java, you can use a recursive traversal to visit each node in the tree and add its…

Read more
Engineer Know
January 16, 2023

How to take input in Binary Tree in Java To write a Java program that takes input for trees, you will need to use a data structure that is suitable for representing tre…

Read more
Engineer Know
January 14, 2023

How to take input in linked list in java To take input for a linked list in Java, you can use a loop to read in the values and create the nodes one at a time. Here is a…

Read more
Engineer Know
January 14, 2023

How to print ith node in Linked List in Python To print the i-th node in a linked list in Python, you can use a loop to iterate through the list until you reach the des…

Read more
Engineer Know
January 13, 2023

3d mexican Graph hat animation in python matplotlib In this blog we are going to learn how to plot 3d graph animation in matplotlib.pyplot Code : import numpy as np imp…

Read more- Engineer Know
- i am a mechanical engineer who don't know what i am doing with life so i am trying to earn some bucks with this blog

Designed with by Way2Themes | Distributed by Gooyaabi Templates

## Social Plugin