43 docs tagged with "Java"
View all tagsBidirectional Tree
Binary To String
Given a real number between 0 & 1 (eg. 0.72) that is passed in as double, print the binary representation.
Bit Utils
Boolean Evaluation
Build Order
Check Balanced
Check BST
left <= current < right
Check If Sub Tree
Check if a tree is a subtree of another
Coins
Conversion
Number of bits you have to flip to convert bits A to bits B
Dynamic Grow Shrink Array
Eight Queens
First Common Ancestor
Fizz Buzz
Flip Bit To Win
Find the largest sequence of 1 that can be obtained by flipping a 0 to 1.
Group Anagrams
Write a method to sort an array ot strings so that all tne anagrams are next to each other.
Insertion
Is One String Permutation Of Other
List Of Depth
Given a binary tree, design an algorithm which creates a linked list of all
Minimal Tree
Given a sorted (increasing order) array with unique integer elements, write
Paint Fill
Implement the"paint fill" function that one might see on many image editing programs.
Pairwise Swap
Write a program to swap odd and even bits in an integer with as few instructions as
Parens
Implement an algorithm to print all valid (i.e., properly opened and closed) combinations
Path With Sum
Peaks And Valley
Permutation Count
Permutation With Duplicates
Video
Permutation Without Duplicates
Pick Random Node
Power Of2
Random Set
Rank From Stream
Imagine you are reading in a stream of integers. Periodically, you wish
Recursive Multiply
Multiply without using *.
Routes Between Nodes
Shuffle
Sorted Matrix Search
Sorted Merge
You are given two sorted arrays, A and B, where A has a large enough buffer at the
Sorted Search No Size
You are given an array-like data structure Listy which lacks a size
Sparse Search
Given a sorted array of strings that is interspersed with empty strings, write a