Learned or Solved Something Today?

Dump it here! Let others learn from you

Showing 14 of 14 from page 1

tikev39 posted in #python #algorithms #code #recursion #interviewquestion #codingchallenge

Solution in python3 for 'River Sizes' problem on AlgoExpert

Solution in python3 for River Sizes problem on AlgoExpert s website. If you have any questions regarding my code, feel free to ask in the comments

bytebot posted in #java #codingchallenge #algorithms #hackerrank-solutions

Java Solution For HackerRank Problem: Sorting: Comparator

Sorting Comparator, is a HackerRank problem from Algorithms subdomain. In this post we will see how we can solve this challenge in Java Comparators are used to compare two objects. In this challenge,

bytebot posted in #java #codingchallenge #algorithms #hackerrank-solutions

Java Solution For HackerRank Problem: Sorting - Bubble Sort

Sorting Bubble Sort, is a HackerRank problem from Algorithms subdomain. In this post we will see how we can solve this challenge in Java Sorting Bubble Sort Consider the following version of Bubble S

bytebot posted in #java #codingchallenge #algorithms #hackerrank-solutions

Java Solution For HackerRank Problem: BFS - Shortest Reach in a Graph

BFS Shortest Reach in a Graph, is a HackerRank problem from Algorithms subdomain. In this post we will see how we can solve this challenge in Java BFS Shortest Reach Consider an undirected graph cons

nayeem posted in #javascript #algorithms #codingchallenge

Sieve of Eratosthenes algorithm in Javascript - finding all the prime numbers in [1,n] using O(nloglogn) operations

Full algo details https cp algorithms com algebra sieve of eratosthenes html Sieve of Eratosthenes is an algorithm for finding all the prime numbers in a segment  1 n O nlog⁡log⁡n  operations The algo

shihab posted in #python #snippets #beginners #algorithms

Insertion Sort Algorithm Implementation in python

Insertion Sort is another algorithm for sorting data In this we will implement insertion sort using python Insertion sort is a sorting algorithm that places an unsorted element at its suitable place i

mirlabibhossain99 posted in #java #snippets #beginners #algorithms

Program for CPU Scheduling FCFS in JAVA

I was looking for a program of CPU Scheduling FCFS in JAVA but the example i found was complex So i decided to write it by my own in simple syntax FCFS Scheduling First come first serve FCFS schedulin

shihab posted in #python #algorithms #snippets

Implementation of Selection Sort Algorithm in python

let s implement the selection sort algorithm using python Selection sort is an algorithm that selects the smallest element from an unsorted list in each iteration and places that element at the beginn

mirlabibhossain99 posted in #java #snippets #beginners #search #algorithms

How I implemented Linear Search in JAVA ?

In computer science, a linear search or sequential search is a method for finding an element within a list. It sequentially checks each element of the list until a match is found or the whole list has been searched. From my code, i tried to show the

mirlabibhossain99 posted in #java #snippets #beginners #algorithms

How I implemented Binary Search in JAVA

Binary search is used to search a key element from multiple elements. Binary search is faster than linear search. In case of binary search, array elements must be in ascending order. So after taking the value from the user we will sort the array that

shihab posted in #python #codingchallenge #algorithms #beginners

Implementation of Bubble sort in python

Let's implement the Bubble sorting algorithm using python . Bubble sort is an algorithm that compares the adjacent elements and swaps their positions if they are not in the intended order. The order can be ascending or descending. This code sort the

nuralam posted in #codingchallenge #javascript #algorithms #beginners

Array rotate to the right by k steps

Given an array rotate the array to the right by k steps where k is non negative Example Input nums 1 2 4 5 k 2 Output 4 5 1 2 Explanation rotate 1 steps to the right 5 1 2 4 rotate 2 steps to the righ

shihab posted in #python #snippets #algorithms #beginners

Calculate Root Mean Square(RMS) value using python

The task is to calculate the Root Mean Square (RMS) of the given numbers using python . Let's write a program in python to calculate the Root Mean Square (RMS) value . The Formula is : https://en.wikipedia.org/wiki/Root_mean_square How to run Applie

mirlabibhossain99 posted in #java #snippets #beginners #algorithms

Armstrong Number in Java

How to check a number is Armstrong Number or not using Java program. what is Armstrong Number ? Armstrong number is a number that is equal to the sum of cubes of its digits. For example 0, 1, 153, 370, 371 and 407 are the Armstrong numbers. Example

fb