instruction
stringlengths
71
71.9k
I am looking for some comments on an implementation of a singly-linked list in Python. What could I do to make it more reliable and readable? class LinkedList(object): class Node(object): """ Inner class of LinkedList. Contains a blueprint for a node of the LinkedList """ def __init_...
Here is a vanilla JS module that I wrote for sorting and searching an array. I would appreciate feedback on the design of the module as I'm new to writing javascript in modules and don't know if I'm missing the point. "use strict"; /** * Find is an outer function * @param {int} needle Value received from the...
I need a function that hashes a list of different inputs (integral datatypes, strings, bytearrays) in a recursive manner. def RecHash(v): isSingleElementOfList = False if type(v) is list and len(v) == 1: isSingleElementList = True if type(v) is not list or isSingleElementOfList: # if v i...
I have a 2 classes Armor and Weapon in my game, that inherit from the abstract class Gear: public class Gear { public int price; // Other common attributes between armors and weapons } public class Weapon : Gear { public int damage = 10; public int weight = 10; public int range = 10; } public clas...
What do you think about this code? I'm learning Python and I made this tool to code a plain text or decode it! inp = input('Input the text you want to code:\n') inp = inp.lower() key = int(input('Input the key you want to use from 2 to 25:\n')) def rot13(input,key): #Function to code a text with caeser chyper. if ...
I have a class in which I am populating a map liveSocketsByDatacenter from a single background thread every 30 seconds inside updateLiveSockets() method and then I have a method getNextSocket() which will be called by multiple reader threads to get a live socket available which uses the same map to get this info. publi...
Background I came up with this solution to a question that I posted on stackoverflow. It uses Tkinter to create a file select dialog window and raise it to the topmost position from jupyter notebook. Questions 1) Is there some kind of built in or canonical way to do this in jupyter notebook that I've missed in my sear...
I am attempting to solve the Kattis problem Recount. The recent schoolboard elections were hotly contested: a proposal to swap school start times for elementary and high school students, a controversial new dress code proposal that bans athletic clothes in school, and a proposal to raise real-estate taxes to pay for ...
Having only had experience with programming in Matlab I started this project to learn a real programing language, object-oriented programming and a proper coding style. I wanted to implement a numerical version of how I would solve a sudoku and stay away from the plenty of solutions using backtracking (as much as possi...
I was given a test to write a class that calculates a vehicle's average and expected mileage without using a database or framework. The mileages were to be calculated given some different types of events, which I've decided to implement in a flat way, as this is how I would store them in the DB. If you could let me kno...
I'm making a simple todo list app with ES6. I'm looking for some feedback on the code, I feel like there is some improvement possible. Maybe there is a better way to attach eventListeners to input and button, but to keep in mind they have to be set not just when a new element is added but on window load when the items ...
The objective of this piece of code is to get a message from a cryptocurrency daemon through RPC and extract the transactions object to pass it to the view. Is there a simpler / less ugly way of doing this? $transaction_pool = json_decode($rpc->getTransactionPool(), false); if(isset($transaction_pool->transactions)){ ...
I am looking for a review on this code, which is a simple static web server, with a small bit of error handling. It's feeling a bit "messy" / "imperative" at the moment, so advice would be welcome. import Network.Socket hiding (send, sendTo, recv, recvFrom) import Network.Socket.ByteString import qualified Data.ByteStr...
I managed to implement this question from Cracking the Coding Interview: Implement a method to perform basic string compression using the counts of repeated characters. For example, the string aabcccccaaa would become a2b1c5a3. If the "compressed" string would not become smaller than the original string, your meth...
I'm working on a real-time, embedded system image processing application for my group engineering capstone in undergrad. I'm receiving data at 60FPS, and have to isolate and detect the location of a flying object in each frame, if it exists, before the next frame. This gives me about 15ms to perform the entire image pr...
How can I optimize this algorithm to reverse strings inside parentheses? String reverseParentheses(String s) { String tmpCh = new String(""); String tmpChRe = new String(""); String tmp = new String(""); int l = s.length(); int n = 0; int j =0; for(int i = 0;i<l;i++){ if(s.charAt...
If given two arrays arrayOne = [3,6,-1,11,15,-1,32,34,-1,42,-1] arrayTwo = [1,10,17,56] Both the array's are sorted but array1 consists -1 in between the sorted numbers. Now to problem is to merge numbers present in array2 into array1 so that array1 should be sorted and should not contain -1. i.e. arrayOne = [ 1, ...
I have an assignment to create a method to retrieve the proper day of the week for any given date, without using the Java calendar. After countless hours of trying to implement the algorithm in the outline, I've finally finished it and it appears to work! I feel like it's really sloppy. Any tips on how to clean it up ...
Please let me know if any improvements could be made to my PHP PDO MySQL Class. /** * * Database. * * Version 1.2 (March 2017). * **/ class Database { // Connection information. private $connection; // SQL querey information. private $querey; // Connected to the database server. privat...
I'm wondering if my approach to creating a filtered array (filteredLaunches) from an array of data (launches) is an anti-pattern, or not? Is there a better way to go about it? Here is the code: const initialState = { launches: [], filteredLaunches: [] }; export default function(state = initialState, action) { ...
I just (almost) finished a Space-Invaders game in Javascript. I have a few bugs to clear out of the way but meanwhile I wanted to ask how I can improve the method I use to test if one of my 'Bullets' has killed an 'Invader'. I have a feeling I used too many loops and there must be a more elegant way. The whole program ...
I saw the editorial solutions for this problem, but they are written in an unfamiliar language. I'd like to post my code, which worked, and understand the timing of my solution. I don't understand how to judge Big-O time yet. def length_of_longest_substring(s) longest_sub,current_sub = "","" s.each_char do |c...
Following the successful review of my implementation of Bresenham's Line Algorithm, I've been asked to upload the full implementation of my project which creates a small animation of shapes moving around the screen and changing colours for a full review. Note that this code hasn't been edited to incorporate the comment...
I have been playing with JavaScript for some time now and made a simple canvas animation. I tried to make my code clean but I would like to hear your opinions about it. GitHub 'use strict'; var Ball = function (options = {}) { var self = {}; var x = options.x || 0; var y = options.y || 0; var width = options.w...
I have an OrderedDict and, given a key in it, need to find the previous and next keys accordingly. The implementation should wrap (i.e. if the given key is the first in the dictionary, the previous key should be the last one and vice versa). Here's what I've come up with so far (adapted from production code) which wor...
I came up with 2 different solutions in Java. First one is: public static void main(String[] args) { int[] array = new int[]{10,3,4,6,1,9,10,0}; int sum=0; for (int i=0;i<array.length;i++) { for (int j=i ; j<array.length;j++){ sum = array[i] + array[j]; if (sum==10){ ...
A highly composite number (HCN) is a positive integer with more divisors than any smaller positive integer ha according to Wikipedia. Here is a YouTube video about it. def get_divisors(number_range): divisor_list = [] divisor_list2 = [] for number in range(1,number_range+1): for e in range(1,number_range+1): ...
I am looking for an optimal producer-consumer implementation in Java with the following aspects: Producer reads from server1 socket, and writes to a shared buffer, as well as another server 2 socket: Server1 -> Server2 + shared buffer Consumer reads from a shared buffer, and writes to server3 socket: Shared Buffer...
I'm working through CLRS, and I'm hoping to get some pointers (ha!) on my C++ coding style and the way I've implemented recursive matrix multiplication. The code right now seems a bit complex for something that should be rather simple, but I'm avoiding using too many built in tools so I can strengthen my baseline C++ s...
I've found more than one implementation of the Singleton Pattern in Java (more like 5-6). I want to know if both of the following snippets of code (written by me) are valid implementations of Singleton Pattern in Java. //Eagerly intialization public final class LoggerEagerSingleton { private static final LoggerEagerSi...
Building on the answer in C++ class member callback simple examples, I've tried to put together a simple subject-observer pattern without needing to inherit a virtual Observer class. I also wanted to isolate most of the C++11 funny stuff within the Subject. bind and function are little-used features, so keeping the num...
I am writing a function that does a constant time compare of two byte arrays. I want it to be constant time to insure there is no side channel attacks possible. Does the code protect against timing attacks or other side channel attacks (of which I could fix) Any other suggestions for improvements Note: This code is ...
I would welcome feedback about this script to automate the building of docker images from a set of dockerfiles. The dockerfiles are provided to the script via stdin. The images are saved to the first (and only) argument of this script. In normal use either one or two specific images are removed manually from the mach...
The following function (function template rather) is to take a vector of any type and write it a file using a filestream object. template<class T> void Vec_WriteFile(const vector<T>& vec, ifstream file, char del = '\n') { for (const T& element : vec) file << element << del; file << "\b "; } This function is very...
For some context, I'm trying to write a streaming tokenizer in Haskell and noticed that I was writing a lot of functions with the type signature String -> Maybe Int that attempted to consume "the longest possible token matching a particular pattern" from the input stream. The pattern might be something like a quoted st...
This is my first Node module, as well as the first time using Promises in Javascript. It is a client for the KeePass plugin "KeePassHTTP" to expose passwords securely, which I am planning on using to pass credentials to gulp. All feedback welcome! // Code based on https://github.com/belaviyo/keepass-macpass-helper // K...
I'm trying to create an iterator, that will generate all the words that are one change away. For example, if my input is "sam", I should get the following words: "aam", "bam", ..."ram","tam",...."zam","sbm","scm",..."szm","saa","sab",..."san","sao",..."saz". Notice that there is no "sam" in the output, as it is 0 chang...
Below is a working program I wrote. Please provide comments to help me improve my coding and problem solving skills. I am learning C++ myself by reading Accelerated C++ by Andrew Koenig. #include <iostream> #include <vector> using namespace std; int main() { vector<string> words; cout<<"Please Enter words(Pre...
Using an Atmega328P clocked externally @ 16 MHz, this procedure is analogous to delay routines that use instructions to consume clock cycles. The intent of this algorithm is not to advocate any particularly usefulness, but rather an alternative method of implementing delays in an application. The caveat would be a reso...
I have an HTML list. The goal is that: When an li is clicked, the .my-list--selected class will be applied. And, since the inner div also has a border-bottom, the .border-bottom class must be removed (or else it appears as though there is a 2px wide border along the bottom if both classes are applied). When another li...
I have 3 spinners in my project named standard, division and age. They contain values from json data. When I select a value from each individual spinner it shows all data of students in a listview who are studying in that standard (fetched from JSON). I'm working with the following JSON data: [ { "name":"aaa", "surname...
I am building a web server from scratch and trying to make certain tasks faster by embedding C code into the mix for performance. Specifically I'm worried about how the std::string class with the .find() and other functions compare to straight pointer arithmetic. #include <iostream> #include <map> #include <string> st...
In my loading scene I want to run multiple functions (IO from the disk) and start the app after they are completed. This is in my loading class. (Note: This is unity 3d and the public variables to get access to other objects is based on Unity best practices). public Logger MyLogger; public Parser MyParser; // ... more ...
I made a recipe box with ReactJS. Please let me know what room for improvement you see. I did notice that with codepen, the list of components started to become lengthy to look at. Is it a best practice to separate the different components into different js files? Here is the codepen: https://codepen.io/capozzic1/pen/g...
Excuse please review my code. I am working in automation testing. I did a automation testing for my login page. I am using selenium with page object pattern. I wrote here my code. I am using java language and I am keeping my test data in property file. what should I need to improve ? and It will help me to go to next...
I am trying to create a dynamic Treeview in HTML using jQuery with following code, Code with data and working example : https://jsfiddle.net/8jt0crv7/ var Menu = function(data) { this.data = data; }; Menu.prototype.render = function(root) { var ul = $("<ul></ul>"); var li = $("<li></li>"); li.append($...
I have a requirement to generate a uniform distribution of cryptographically secure random numbers. To generate these numbers I only know of the RNGCryptoServiceProvider class, that has the method GetBytes(byte[] data). This is good, but I have to then change this discrete uniform distribution ranging from 0 - 256 to a...
A quick description of what I want: Loop through a particular cell row and it's columns If any cell contains 0, then delete the entire column So let's say 4,4 was 0, then delete that column (D) My code works but takes a while Dim lColumn As Long Dim iCntr As Long lColumn = 120 For iCntr = lColumn To 4 Step -1 If C...
SELECT SUM(CD.[Value]) AS [Value] FROM [{schema}].[CompanyData] CD INNER JOIN #Locations T ON T.LocationId = CD.CompanyId INNER JOIN ( SELECT CDM.CompanyId, MAX(CDM.[Date]) as MaxDate FROM [{schema}].[CompanyData] CDM INNER JOIN #Locations T ...
I'm currently enrolled in a further education with the topic database administration. Among other chapters it contains how databases can be accessed from application-software. Because it lacks programming exercises I have programmed a bit myself. Just for getting familiar with the techniques (mainly Java JDBC) shown....
I've been reading a lot about IoC and DI and I still haven't understood if it's a bad practice to make your Application IoC agnostic, but seems only logical to me that it should be IoC agnostic. Using a 4 layer approach I've coded a test project just to try and apply these concepts and this is what a came up with: Data...
I am playing around with building my own back end with python 2.7 and jinja2/cgi. Originally I was defining some of my environment and loader variables at the top but figured this was not the best practice. I then defined functions for each, but they'd only get called once or twice depending on which route it decided t...
Just for learning purposes i wrote an implementation of quicksort algorithm. I made some modifications to the algorithm to make it faster, that are: two pivots setted to the boundaries of the middle partition(<, =, >), to avoid having two other variables counting the equal elements the partitioning method checks firs...
This function takes a list of questions and list of answers provided by the user. The list of answers is always a list of booleans (for true and false) and the list of questions takes the following form: { quadrant: Number } If the user answers "true" to a question then they gain a point towards that quadrant. (Think...
import java.math.BigInteger; /** * Created by lungisani on 2017/02/25. */ public class Luhn { public Boolean getIdentitySummation(BigInteger identities){ String identify = String.valueOf(identities); int sumOdd = 0, sumEven = 0, _doubled; int summation; try { String id...
I'm trying to build a generic thing that will update a fixed menu button's color to either 'black' or 'white' depending on which contrasts better with the background color. I've got it working, but I want to optimize the code. I'm curious how I can improve organization. Am I optimally using ES6? Are there any opportuni...
Based on java.util.concurrent.TimeUnit class I wrote similar class to convert size units: public enum ByteUnit { BYTES("B") { @Override public long toBytes(long value) { return value; } @Override public long toKiB(long value) { return value / KIBI; } @Override public lon...
import string def charRange(mini, maxi, step=1): if mini in string.ascii_uppercase: strg = string.ascii_uppercase else: strg = string.ascii_lowercase return (strg[i] for i in range(string.ascii_lowercase.index(mini.lower()), string.ascii_lowercase.index(maxi.lower())+1, ...
I tried to do it by using ArrayUtils.reverse() but I couldn't figure out how to compare this with the other array. So I wrote this instead: public class Main { public static void main(String[] args) { int[] array = new int[] {1, 2, 3, 4, 5, 6}; int[] tempArray = new int[] {6, 5, 4, 3, 2, 1}; boolean result = true...
This is a follow-up to a question I asked a few days ago. I incorporated many of the suggestions on how to make the code more standardized and Python-like. If you see something else that can be improved, please let me know. In addition, I also wrote unit tests. Could someone tell me how I am doing with those? Can I im...
I have written a program that implements the ADI method and Crank-Nicolson method for solving Schrodinger equations. The program is working, but it takes a very long time to run. I am looking for tips on how to improve the performance of the program. #define _USE_MATH_DEFINES #include <cmath> #include <vector> #include...
I'm making a web API using web API 2. I have three layers: Business - Stores models and service classes. Data - Just EF. Currently one DB. But will include 3 when complete. Web API - Presentation layer. I'm not making a UI to consume the API at the moment. The intention is for other internal apps to be able to consum...
Following Database Class is what I'm using as a wrapper to connect with MySqli in a application, and below the class is how i'm implementing it currently I'm not sure if this is the right way to handle it or how I can further improve. class Database { /** * @var $conn: type Mysqli **/ private $conn = null; private $...
Why is my code lagging? It gets those lagspikes that will ruin the whole game. I know JavaScript in the browser maybe isn't the best for games, but it doesn't have to lag? var canvas; var gameInterval = false; var gameSpeed = 250; var xTiles = 200; var yTiles = 200; var xScale = 40; var yScale = 40; var tiles = []; ...
I am doing an android side project, and I was wondering if I could have my code reviewed to get feedback on improving its efficiency and overall elegance. Particular classes to focus on would be Dashboard, the two fragment classes. Here is Dashboard.java, and the rest of my code on GitHub. public class Dashboard exte...
I built a DLL Injector with User-Interface. The program lists all processes, the user chooses one of them and a DLL, and inject it. It's my first project in C++, and I know it's not exactly C++ because it runs with .NET, but still. Please look for efficiency problems, memory leaks, or irregular coding standard. Full Co...
Ordinarily I'm fairly confident in my own code, but seeing as how this pertains to security and I don't want to have overlooked anything that might cause security problems, I figured I should have this checked. A little background here is that I needed some way to authenticate users of my API against an Active Director...
I've been looking for an implementation of Comparator that provides a "natural order". I found a couple but they were buggy or poorly designed. I wrote my own with 3 goals: efficient (in terms of execution time) well-designed (in terms of re-usability) readable (in terms of maintainability) Natural Order Here is a m...
I have two sets of toggles that need to "uncheck" each other. This is my current solution which is working. Can it somehow get more functional/elegant? let unscheduledLayerToggles = [unscheduledLayerToggle, unscheduledLayerToggleToolbar]; let availableLayerToggles = [availableLayerToggle, availableLayerToggleToolbar];...
I am currently writing some generic functions to make working with vectors a little "cleaner". Working with the "erase-remove idiom" can be a little confusing sometimes, and make the code look a little dirty, so why not throw it into a function? I have four individual function I wish to have reviewed and made better. I...
I made a little toy project last semester. I would like to get some insights about my code, particularly the part of handling the database. It is a CRUD kind of traditional API. def fword(lon,lat,radius,ids): try: result = {} c, conn = connection() c.execute("SELECT * FROM wordlocation WHERE...
I'm looking at porting a simple logger I wrote a while back in Python to a language which would result in less runtime overhead from logging. As an informal benchmark, I try to log a message, including the current time, 10,000,000 times to a given file, and to record the time. The original Python version, under CPython...
Problem statement Given an n-digit positive integer, count and print the number of subsequences formed by concatenating the given number's digits that are divisible by 8. As the result can be large, print the result modulo 109 + 7. Input Format The first line contains an integer denoting n. The second line contains a ...
My requirement is to convert a time (long) to a String with this date format: yyyy-MM-ddThh:mm:ss.SSS For instance: 2017-03-07T03:52:31.298 My implementation: private final static String DATE_FORMAT = "yyyy-MM-dd_hh:mm:ss.SSS"; private final static DateFormat DF = new SimpleDateFormat(DATE_FORMAT, Locale.ENG...
I've developed a script to randomly select 50 elements from a list of .txt files. This process is repeated 100 times. The script joins the randomly selected text files to one long string and then filters out the longest substring. I want to run this script on a Droplet on Digital Ocean. The server, however, kills the s...
I'd like to have a code review for a component which is supposed to be animatable on its height. It's supposed to be a transitioning element. I find it quite laggy on my phone. private void init(AttributeSet attrs, int defStyle) { // Load attributes final TypedArray a = getContext().obtainStyledAttributes(attrs...
The following code is from the DataAccess layer that calls the SQL stored procedure and returns the result set back to the calling code. public class CoffeeDataAccess : ICoffeeDataAccess { private readonly Database coffeeDatabase; public CoffeeDataAccess(ICoffeeShopDatabaseFactory factory) ...
I currently work as a Junior QA tester for a small software business. Before I joined, they had no automation in place to help assist them. I then got hired and resolved this by implementing Robot Framework to their system and juggle between manual testing and creating Robot scripts to assist in regression. Instead of ...
I have a table named Asset and each Asset has schedules. I create a method like this for copying an entity: public bool Copy(CopyAssetViewModel copyAssetViewModel,out string message) { var source = _equipments.AsNoTracking().FirstOrDefault(row => row.Id == copyAssetViewModel.AssetId); if (source...
I have a database from which I'd like to return a tuple of two elements (ID and URL) with check digit to see if operation was successful. Is correct this code to return this tuple and control? public function getManufacturer($id) { $stmtManufacturer = $this->dbConnection->prepare("SELECT ID, URL FROM ERP.MANUFACTUR...
I wrote this piece of code for a GUI i am making, which is a playlist interface. I was wondering if I could write all of this code out differently, but to the point where it functions exactly the same, as I am intrigued in learning different ways to write java to boost my flexibility and knowledge in the language. pac...
Edit: How should I interpret the silence? On a scale from 0 to 10 where 0 means "Bloody awful" and 10 means "Nothing to complain about". I'm mainly concerned about readability and things I don't seem to be aware of. If the code is readable, I won't need to explain it. #!/usr/bin/python import os import sys import sub...
I know I could achieve this using System.out.println(Integer.toBinaryString(num)); in Java. However, I wanted to do it this way. private static void toBinary(int x) { Scanner in = new Scanner(System.in); int num = in.nextInt(); String s = ""; while (num >= 2) { s = s + valueOf(num % 2); ...
I made an interface for constructing an abstract query against a data set. For example if I have an array of objects, and I want to filter it and return only the objects that match certain criteria, I would need to go foreach and type my conditions in, or use array_filter. What if I could declare my intentions as a dat...
This is a second iteration on an earlier review - cURL based REST client library I have done some refactoring to split out the REST HTTP response into it's own class from what was in the previous review and implement. You might find it useful to read the library's README file before performing this review for further b...
I'm writing a programming language. It's something I've been working on and off on for the last year or so, but recently, I've decided to buckle down and do it. As part of the language, I wrote a tokenizer. Its job is to turn a stream of human-readable characters into data the language can do something with. That allow...
This code review request relates to this code review which covers the basic single REST call use case in this REST client library. This code review covers the classes and unit tests for the multiple parallel REST call functionality provided by the library, which leverage the PHP cURL extension's curl_multi_* functional...
The problem: generating a CSV file that is too large be stored in memory in a 3 tier architecture, without the complexity of saving the file to storage. The solution: I've managed to write something that will stream directly from the database into the user's browser, through two WebApi controllers (simulating two tiers...
I wrote this demo just for practice purpose, I would like to get some helps that could further improve my code quality. This code is a simple demonstration of 1-D and 2-D array. User will be asked for the option of a function to demonstrate. Once user made the choice (either 1-D or 2-D), the corresponding function ...
This is a toy example where we have 3 tables: Student(snum, sname) Enrolled(snum, cname) Class(cname, meets_at) and we want to find the sname of the students that are enrolled in at least two classes that meet at the same time. Here are three attempts, which one is best and why ? select sname, (count(distinct cname)...
Project Euler #11 What is the greatest product of four adjacent numbers in the same direction (up, down, left, right, or diagonally) in the 20×20 grid? I've seen some of the solutions of the problem and although they are in Python3, my solution has some differences. Pylint rates it 7.27/10 and I will add docstring...
A getter and a setter for managing our digitalData object. Has the ability to get and set a value within the digitalData object based on the path. This is to allow developers to work with the data layer when the entire schema may not already be implemented on the page. I appreciate feedback on best practices and perfor...
I am attempting to complete the "Journey to the Moon" problem described below: There are N trained astronauts numbered from 0 to N-1. But those in charge of the mission did not receive information about the citizenship of each astronaut. The only information they have is that some particular pairs of astronauts ...
I wrote this solution to Kattis problem Amanda Lounges in Scala. TL;DR: It's a graph theory problem where I read in a list of edges from stdin and try to compute the minimum number of nodes that should be "lounges," given that each edge has a weight of 0, 1, or 2, and an edge with a weight of n must have n of its endpo...
I've done a bit of modifications and finally got it working, and did a lot of reading about @ vs @@ vs just declaring and I came up with. It goes to Steam's API to return information (JSON Format) based on the endpoint. A list of games they own, a list of games they recently played, profile information, etc. class Stea...
I have created a simple function to determine if a container contains a value. It allows for certain conditions to be set as well: where to to start searching for value, which way to search, whether to find the first or the last occurrence of the value, and whether or not to include the starting point. I want its retur...
I have a following schema, I would like to query user and all timezones belongs to it including timezone name. Could you please validate if my schema constructed correctly and most efficient way? class Timezone(Base): __tablename__='timezone' id = Column(Integer, primary_key=True) name = Column(String(40)...
I have a class Feature as such: public class Feature { public string Name { get; set; } public string DisplayName { get; set; } public List<Feature> SubFeatures { get; set; } public bool Enabled { get; set; } public string[] DependsOn { get; set; } public bool IsRole { get; set; } publ...
My Macro that I wrote is running really slowly and I'm not sure why. The Macro deletes the area, then reproduces one column of locations as a row, deleting any duplicates, then copy's across a column of dates, then puts the corresponding Mean value for each date under the correct functional location. Sub Macro1() ' ' M...
I'm currently working through "Algorithms in java" by Robert Sedgewick (3rd edition, german version) on my own and am trying to solve one of the exercises there. One of these involves taking a singly linked list (type not specified) and rearranging the nodes. The sorting involves first having all nodes appear that wer...