排序
Palindrome Program in Java for Reversing String
Palindrome Program in Java for Reversing String, Palindrome is nothing but any number or a string which remains unchanged when it is reversed. For example: 121 or RAR. It is observ...
Bubble Sort in Java with Example
Bubble Sort in Java with Example,We will create Java program which will sort Java array, Bubble sort is one of the simplest algorithm. Basically In bubble sort we travel through al...
Top Data Structures and Algorithms every developer must know
Top Data Structures and Algorithms every developer must know,This article was written by Aaron Xie and was originally published at Educative, Inc. Many shudder at the thought of a ...
Finding similarity using Edit Distance-Information Retrieval
Finding similarity using Edit Distance-Information Retrieval,Edit distance is a way of quantifying how dissimilar two strings are to one another by counting the minimum number of o...
2 ways to Two Sum
2 ways to Two Sum,Question: Given an array A and a target T, check if there exists a pair in A which sum to T. If you're starting out on you're interview prep journey, this is usua...
Checking If An Undirected Graph Is Bipartite
Checking If An Undirected Graph Is Bipartite, CS Level Up Series (30 Part Series) 1 CS Level Up Series Introduction 2 Dynamic Arrays ... 26 more parts... 3 Linked Lists 4 Stacks 5 ...
Java Luhn algorithm Card Number Generator
Java Luhn algorithm Card Number Generator, import java.util.List; import java.util.Stack; import java.util.Vector; public class RandomCardNumberGenerator { public static final Stri...
Heap Sort
Heap Sort,The heap sort is useful to get min/max item as well as sorting. We can build a tree to a min heap or max heap. A max heap, for instance, keeps a parent being not smaller ...
Traversing Graphs
Traversing Graphs,As developers, we are frequently dealing with lists, arrays, and sequence of values. But have you ever had to deal with related data, which are connected to other...
!Stacks && Queues… Stacks || Queues!
!Stacks && Queues... Stacks || Queues!, Stacks and Queues Stacks and Queues are sometimes verbally used interchangeably or together with an 'and' and do somewhat of a s...
When to actually use linked lists
When to actually use linked lists, We've all learned in school or in our bootcamps about different complex data structures. Linked lists, hash maps, binary trees and sea...
Programming Algorithms 20+ Algorithms Problems from Coding Interviews
Programming Algorithms 20+ Algorithms Problems from Coding Interviews,Disclosure: This post includes affiliate links; I may receive compensation if you purchase products or service...