This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Website: Arrayed.Net | |
* You decide to test if your oddly-mathematical heating company is fulfilling its All-Time Max, Min, Mean and Mode Temperature Guarantee™. | |
* Write a class TempTracker with these methods: | |
* | |
* insert()—records a new temperature | |
* get_max()—returns the highest temp we've seen so far | |
* get_min()—returns the lowest temp we've seen so far | |
* get_mean()—returns the mean of all temps we've seen so far | |
* get_mode()—returns the mode of all temps we've seen so far |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================ | |
// Name : AdjacencyMatrixGraphImp.cpp | |
// Author : Amritpal Singh | |
// Copyright : arrayed.net | |
// Description : Array based Adjacency Matrix Graph Implimentation | |
//============================================================================ | |
#include <iostream> | |
#include <vector> | |
#include <string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* DheapDriver.java | |
* Class - heap | |
* Authors - Amritpal Singh | |
* Website - arrayed.net | |
* Class description - Insert random priority integer values and random string values in heap and print out from max to minimum by using delete_max method | |
*/ | |
public class DheapDriver { | |
private static final String ALPHANUMERIC_STRING = "0123456789abcdefghijklmnopqrstuvwxyz"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* heap.java | |
* Class - heap | |
* Authors - Amritpal Singh | |
* Website - arrayed.net | |
* Description - Implement D-ary Heap (4-way in this case each node has 4 children) max heap, each node has priority level and string value associated. | |
*/ | |
public class heap { | |
private heapNode[] heapArray; // heap array of nodes | |
private int maxCapacity; // max capacity of heap set in constructor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================ | |
// Name : DLinkedListDriver.java | |
// Author : Amritpal Singh | |
// Version : v0.1 | |
// Copyright : arrayed.net | |
// Description : Linked List Based List Driver Software Implementation in Java | |
//============================================================================ | |
public class DLinkedListDriver { | |
public static void main (String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================ | |
// Name : DLinkedList.java | |
// Author : Amritpal Singh | |
// Version : v0.1 | |
// Copyright : arrayed.net | |
// Description : Linked List Based List Implementation in Java | |
//============================================================================ | |
public class DLinkedList<E> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================ | |
// Name : MaxSubarray.cpp | |
// Author : Amritpal Singh | |
// Version : v0.1 | |
// Copyright : arrayed.net | |
// Description : Find maximum of subarray. | |
//============================================================================ | |
#include <iostream> | |
using namespace std; |