Skip to content
sneppets

sneppets

  • Privacy

Ordered Array Data Structure Example

May 28, 2018December 8, 2018 Editorial StaffLeave a Comment on Ordered Array Data Structure Example

The following is the example code for an ordered array data structure. OrderedArrayDataStructure class encapsulate the array and its algorithms. We could have used binary search to find the position where we can insert element into the array. But for… Read More!

DS Algorithms, core java, Datastructure

Array Data Structure Java Example

April 5, 2018December 8, 2018 Editorial StaffLeave a Comment on Array Data Structure Java Example

The following example shows how to abstract array data structure functionality and make it easier to design a program. The user life is made easier and the user doesn’t even need to know what kind of data structure the ArrayDataStructure… Read More!

DS Algorithms, core java, Datastructure

Find all possible combinations of numbers to print given sum

April 2, 2018December 8, 2018 Editorial Staff1 Comment on Find all possible combinations of numbers to print given sum

The following program will print all possible combinations of additions from a given set of numbers so that they sum  up to a given target number Sum Problem: Input: X={n1,n2,n3,..n(s)}, G Output= various combinations of X(n1..n(s)), where sum of X(n)… Read More!

Java core java, interview

Folder Health Monitor Java Program

March 29, 2018December 8, 2018 Editorial Staff2 Comments on Folder Health Monitor Java Program

Write a Java program to monitor the health of folder called ‘secured’. Monitoring includes folder size should not exceed 100 MB, archive older files to another folder called ‘archive’ if entire file size exceeds 100 MB but it should retain… Read More!

Java core java, interview, java sneppets

Enums in Java

March 19, 2018December 8, 2018 Editorial StaffLeave a Comment on Enums in Java

An enum type is a special data type in java used to define collections of constants. More precisely as of Java 5, Java lets you restrict a variable to have one of only a few pre-defined values – in other… Read More!

Java core java, enums

Posts navigation

Older posts
Copyright © 2018 Sneppets. All Rights Reserved