Skip to content
sneppets

sneppets

  • Privacy
numbers repeated or duplicates

Find Numbers Repeated in Array in O(n) Time and O(1) Space

December 5, 2018December 8, 2018 Editorial StaffLeave a Comment on Find Numbers Repeated in Array in O(n) Time and O(1) Space

Given an input array of integers, your goal is to find the numbers repeated or duplicates present in the array in an effective way without using Java Collections. Note, you need to achieve this in O(n) time i.e., you should… Read More!

Algo, Java Algorithms, arrays, time complexity
smallest and largest number

Find Smallest and Largest Number in Unsorted Array – O(n) Time

December 5, 2018December 8, 2018 Editorial StaffLeave a Comment on Find Smallest and Largest Number in Unsorted Array – O(n) Time

Given an input array of integers, your goal is to find both smallest and largest number present in the array in an effective way. Note, you need to achieve this in O(n) time i.e., you should be able to find… Read More!

Algo, Java Algorithms, arrays, time complexity
second biggest

Find the second biggest element in an unsorted array – Single Traversal

December 5, 2018December 8, 2018 Editorial StaffLeave a Comment on Find the second biggest element in an unsorted array – Single Traversal

Given an input array of integers, your goal is to find the second biggest element present in the array in an effective way. Note, you need to achieve this in O(n) time i.e., you should be able to find result… Read More!

Algo, Java Algorithms, arrays
Array Vs Linked List Performance

Array Vs Linked List Performance : Datastructures

November 25, 2018December 8, 2018 Editorial StaffLeave a Comment on Array Vs Linked List Performance : Datastructures

In our previous articles Simple Linked List and Double-Ended List we have seen how fast and easy it is to insert and delete at the beginning of the linked list. You only have to change one or two references as shown in… Read More!

DS, Java arrays, arrays vs linked lists, linked lists efficiency, linked lists performance

Posts navigation

Newer posts
Copyright © 2018 Sneppets. All Rights Reserved