instruction
stringlengths
71
71.9k
This looks quite verbose to me, using the command substitution and echo: # Source file source=$( [[ ! -z "$1" ]] && echo "/home/$1" || echo '/root' ) source="$source"/.bash_history [[ ! -f "$source" ]] && echo "History file '$source' not found." 1>&2 && exit 1; # Am I dealing with root isRoot=$([[ "$source" =~ ^/root ...
I am a newbie and I am using basic HTML to render and check. No JSON at the moment. With that said, I’m having a hard time conceptualizing organization of a group of matching series (e.g. a series that falls under a given number, say 1) into a single link that expands into the subseries (say, 1a, 1b, 1c...) for a detai...
I'm trying to respect the Ruby principle of keeping my code dry; however, in my conditional, I have different constants set to different days. But that's the only thing different. They're pretty much the same code minus the evaluation of days from_now. if term_type == TERM_MONTH subscription.suspended_at && subscript...
I would really appreciate a general review of my Tic Tac Toe game in Python as I have spent a lot of time on it. Any improvements or suggestions? def print_board(board): print "The board look like this: \n" for i in range(3): print " ", for j in range(3): if board[i*3+j] == 1: ...
I wrote a short script in Python 3 that connects to the Stack Exchange API, gets all questions on Programming Puzzles & Code Golf over the past two weeks, and determines the average number of questions per day as well as the average number of answers per question. The number of questions per day is intended to match th...
First, the context: I'm working with a student to build a web frontend for a star cluster simulation package called starlab. Typical starlab usage involves chaining sequences of commands together with Unix pipes. We want to store both the output and the set of commands (and arguments) used to generate the output in a d...
I'm working on a project where I have to prompt a user a enter several dates. This is the code I came up with for prompting the user for the day, month, and year. Console.WriteLine("Day: "); var dateDay = Console.ReadLine(); var dateDayInt = Convert.ToInt32(dateDay); Console.WriteLine("Month: "); var dateMonth = Conso...
I've solved the Google Jam store credit problem. but there's some inefficiencies that I want to get rid of them to improve the algorithm and reduce the multiple iteration. What are other better ways to do so? Problem: You receive a credit C at a local store and would like to buy two items. You first walk through the s...
I made this resource queue in Love2D. function GameState:queue(file, arg) self.res.loaded = self.res.loaded + 1; self.res.queue[self.res.loaded] = {f = file, t = game.getResourceType(file), id = self.res.loaded, s = arg}; game.log("Resource Queued: "..file); return {f = self.res.loaded, t = game.getReso...
I need to analyze shell-sort. Currently I am working with it having an increment of N/2. I will then go on to try more efficient increments. However, my count for comparisons/exchanges seems too low for an array of 2000 elements. I've tried changing it around some but still everything seems too low. Could someone look ...
This question is an extension of this one, which is my implementation of a coordinate system using the Java learning software Karel J. Robot. With the below code, I created a way to automatically make the robot place beepers on spots on the coordinate plane to imitate drawing letters. Here is the code that is the basis...
I'm a bit new to Python and sort of learning on my own. I wrote a small function to help me find the latest file in a directory. Taking a step back, it reads a bit janky and I was curious what steps or what resources I could look into to help me make this more friendly. Should I be returning False? Or 0? Inside my exam...
I'm trying to create a graph representation in Adj Matrix in Python. I'm not sure if this is the best pythonic way. class Graph(object): def __init__(self, edge_list): self.edge_list = edge_list def add_edge(self, edge_list): self.edge_list.append(edge_list) def adj_mtx(self): v =...
How do you handle AggregateException? It is really useful in many TPL or business scenarios, but handling is a real pain. I defined the following three extensions to help myself a little bit. They can be used this way: try { throw new AggregateException( new ArgumentException(), new DivideByZeroException()...
In mobile phones technologies, a SectorId is a 128-bit value broadcast by a 1xEV-DO BTS system. That is a 16 bytes data. I made a structure to store them: using System; using System.Globalization; using System.Linq; using System.Text; public struct SectorId { readonly byte[] id; SectorId(byte[] id) { ...
I use 2 methods in order to parse those 2 lines: flux=rp_evtmedprev_out partitions=a054010a,a054020a,a054030a,a034040a,a054050a,a054060a,a054070a,a054080a,a054090a This is the call: BufferedReader reader = new BufferedReader(new InputStreamReader( httpConn.getInputStream())); StringBuilder buf = new StringBuil...
After learning the basics (isolated state, communication and computation) of the the Actor-Model, I wrote my own implementation and I'm ready for a thorough code review. You will be able to see that in the test code I've created 2 tasks which are simultaneously sends multiple messages to an instance of the Actor class....
Below is the code to a Message Service. Does anyone have any ideas on how to improve the methods. It doesn't feel clean to me. public enum MessagesType { Standard, LocationTargeted, Scheduled, Expired } public class MessageService : GenericService<PushMessage> { public MessageService(IGenericReposi...
I have written a small Hello World application that uses Python's C-API. The C library requires some functions to be called for global library (de-)initialization and the objects created by the library eventually need to be released by passing the pointer to a specific function. I think this is a fairly common pattern ...
I'm trying to implement a memory scanner in python. The problem is, it's too slow. What it does it gets a number from the command line and compares it to every address, then writes it to an output file. How can I improve my algorithm? import ctypes as c from ctypes import wintypes as w from struct import * from time im...
This is a Python program that requires the user to type the colour of the text and not the name of the colour. They have a set time limit and a scoring system. If you have any improvements or suggestions I would greatly appreciate them. #import the modules we need, for creating a GUI... import tkinter #...and for creat...
I want to remove/add classes when the user is at different distances from the top by using jQuery. I have successfully done it, and it works fine, but I think I'm doing it wrong, and I would like your help to optimize the code. The html is simple, basically the sections(including the header), have 100% width. and diffe...
Today I'll demonstrate a simple function that searches for a item in all sublists of a list. For this it uses iteration, and keep in mind that it can be slow because of this. How can I improve it? Linked lists? I doubt __contain__ can do the same. def ListContainWSublist(searchfor, *args): Result = False for ...
In an exam question I need to output some numbers self.random_nums with a certain probability self.probabilities: I have written the following program that successfully returns the correct answer and also a test at the bottom which confirms that everything is working well. Here my questions: Are there any better ways ...
I've tried my best (I'm new to JS) to write a script that make an image fit to its parent div with respect of the ratio and overflowing when needed. For example, if the height of the image is smaller than the window's height, I set the height equal to the window's height and the width overflow the window's width. I the...
I've tried to roll out my own HyperScript implementation. I would be interested in any suggestions to improve it or point me to any other better implementation which is still maintained. I checked the HyperScript project, but it doesn't seem to have any recent updates, so I tried this: var DOM = { h: function(tagNa...
I've made a working version of Connect Four in Python. I'm pretty new to Python so it's decently primitive. Please take a look and let me know what you think! import random board = [["." for x in range(7)] for x in range(6)] symbol = "" winCondition = "" fullCols = [] def boardLogic(pick, user): if user == "user"...
I've made a nice little Python program using the requests module using the Trade.tf Developer API and the Steam WebAPI allowing the user to look up the price of Team Fortress 2 items through Trade.tf's spreadsheet. For those of you that may not know, Team Fortress 2 is a free-to-play team-based shooter game which also ...
I've spent the last few evenings learning PHP, CSS and HTML through Codecademy and now on Team Treehouse. My goal is to progress with PHP over the next year or two and perhaps obtain Zend cert. Anyway, I've worked on a simple calculator to test what I've learned. I'd like to see, (given the same 'functionality')what mo...
#pragma comment(lib, "sfml-network.lib") #include <iostream> #include <SFML/Network.hpp> const unsigned short PORT = 5000; const std::string IPADDRESS("192.168.0.100");//change to suit your needs std::string msgSend; sf::TcpSocket socket; sf::Mutex globalMutex; bool quit = false; void DoStuff(void) { static st...
I have the following program running. It has so far been taking several days straight and has yet to finish. So, I'm just wondering if there is any way it can be optimized or better structured to reduce how long it takes to run (yes, I realize there's a lot of calculations). struct NumberSets { std::vector<double> ...
Business rules: This application is for internal employees to request supplies. All requests must be approved my the persons manager. In the database, a manager is an employee, with a self referencing key joining an employees managerid to the managers employeeid. The database does not pull employee records from anywh...
A working label expression for ArcGIS 10.3. I was using dictionary key:values but sometimes the keys would have the same value so my items were 'disappearing' out of the dictionary. Now I use this simple counter to group my values from a list (0,1) (2,3) (4,5). I think the if functions might be able to be combined, as ...
SPOJ problem #0074 DIVSUM - Divisor Summation requires computing the sums of proper divisors in bulk (200000 test cases, time limit 3 seconds): Given a natural number n (1 <= n <= 500000), please output the summation of all its proper divisors. Definition: A proper divisor of a natural number is the divisor that is st...
I have written a function that builds an array of paging options for rendering on the view. I have modelled it after DataTables for jQuery, a live example with lots of data is available here: http://www.companieshousedata.co.uk/a/490 Is there a better way to write this? The function also returns ellipsis (as strings) ...
This is just a simple function to convert seconds to days, hours, minutes and seconds for a larger app I'm going to be building. I'm just looking for thoughts on it. import math def convert_seconds(x): # Day's days = x / 86400 fraction, whole = math.modf(days) days = int(whole) # Hours hours...
I wrote a function that adds items in a list, but my professor says to try and write it in a simpler way because he says I take too many steps. Is there any other way to write this? def additems(self, item): """Add <item> to this PriorityQueue. @type self: PriorityQueue @type item: object @rtype: None ...
This is a very basic text-based operating system I've been working on. I started working with python a few weeks ago and this project only a few days ago, so there are probably better ways I can do things, but I was wondering what people think of it. NOTE: I know that the edit function doesn't work. import os def user...
So I'm writing a program that compares Bubble, Selection, Merge, and Quick Sort. All 4 methods are given a randomized array of 1000 elements and I count to see how many times it takes a method to perform to fully sort the array. My question revolves around the placement of my counts. I know I should look at the Big ...
I need to convert a string using these rules: Downcase the string Replace spaces, a blacklist of "invalid" chars, and non-ascii letters (like é) with - Replace repeated hyphens (ie --) with one hyphen (-) For example, Is my résumé good enough? should convert to is-my-r-sum-good-enough-. This Swift function converts t...
I was trying to keep it SRP. I'm new into PHP OOP and I'm wondering how I can make it better. Route.php class Route { private $_url; private $_callback; private $_name; public function __construct($_url, $callback) { $this->_url = '/^' . str_replace('/', '\\/', $_url) . '$/'; if (i...
I just redid Rubberduck's About window in XAML: I do not like my XAML very much. The way I place the StackPanel for the white pane over two rows, only to provide a margin to keep the copyright text out of it seems very hackish. Just as bad is the way I put the Hyperlink elements in a textbox (they are not allowed to...
The code below is the .emacs file, which is the initial configuration file for Emacs. I use Emacs version 24.5.1 on a computer running Ubuntu 14.04 as OS. I primarily use C/C++ for coding and LaTeX for writing documents. I love to use Emacs but I feel I could do much more with it and in a refined way. ;;(server-start) ...
Created this little config class, any room for improvements? Think I have done an alright job but would like to know if any improovements could be made? <?php defined("SECURE") or exit('Please define SECURE keyword to continue.'); class config { private $configValues; private $configFile; public function _...
I have made a connection method which returns TCPMasterConnection. public Class Connect{ String ipAddress; int port; TCPMasterConnection tcpCon; public TCPMasterConnection OverTCP(String ipAddress, int port) { this.ipAddress = ipAddress; this.port = port; TCPMasterConnection tcpConnection =...
From the array $data, I place a price for each month for one category in the first array. If no data is found for the particular category for a month, I insert 0, another category in the second array and finally place the arrays in a single array. This code does so, but I believe there is a better and simpler way. $dat...
As a self-taught student of Web-Development and Web Technologies, I created a simple sign in/out form in PHP, just for practice purposes and some fun! I read the O'reilly's book about PHP and I found one sentence there (I really don't remember where it was though): A novice web developer will program procedurally, but...
Over the weekend I built a fairly simple allocator: struct FreeOnes { //data structure holding the pointers to free blocks int len; void** array; int capacity; }; void append(struct FreeOnes* f, void* what){ //add a free block to FreeOnes if (f->len < f->capacity){ f->array[f->len++] = what; ...
ACM ICPC Team You are given a list of \$N\$ people who are attending ACM-ICPC World Finals. Each of them are either well versed in a topic or they are not. Find out the maximum number of topics a 2-person team can know. And also find out how many teams can know that maximum number of topics. Note: Suppose a, ...
In my code, there is a chain of functions call where the deepest function may throw an exception. I catch and handle it according to the business logic. The problem is that all other functions in the call chain are dependent on this function, thus, if the deepest function returns null all others function will throw the...
I am trying to implement page objects with Page factory using TestNg and selenium. Please advice improvements in it. Classes: LoginPageObjects extends LoginPageLocators { private WebDriver driver; public LoginPageObjects(WebDriver driver) this.driver=driver; public HomePageObjects loginFunction(){ /...
While implementing classes composed of various collections, I've found that it's pretty hard to completely hide the type of collection used, while still allowing C++ style operations on iterators. For example, the following two classes allow the client to easily iterate through the collection, but require that all the ...
Would like to ask for a code review for my DAL. I use Entity framework 6 and Autofac for dependency injection. All comments will be appreciated. public interface IBaseEntityObject { public int Id {get; set;} } public abstract class BaseEntityObject : IBaseEntityObject { [Key] ...
I have done exercise 1.7 in SICP (calculate square root precision when change in guesses is under a certain value), but I am calling the change-in-precision function twice in each iteration, which disturbs me. I wonder if there is a better way to implement this. (define (average . ns) (/ (apply + ns) (length ns))) (de...
I want to be able to print timestamps with milliseconds precision and time_t doesn't provide this. I also want the code to be portable, so operating specific functions are out. ftime seems to be deprecated but there doesn't seem to be a general-purpose alternative to using ftime. How could this be improved? #include ...
I have a task to make a checkout line controller. First it receives, as input, an amount of checkouts and commands. Then commands that are C for coming and L for leaving, and after those the number of the checkout they are coming/leaving. Also, if there is someone at the checkout, they should be sent to the nearest emp...
I am using mod and my code works. I am wondering if there is a more efficient way to write a method that returns the total number of divisors for an integer. function getDivisorsCnt(n){ var divisors = 0; mod = n; while (mod > 0){ if(n % mod === 0){ divisors++; } mod--; } r...
Rubberduck 2.0 will feature a "Search Results" dockable toolwindow that will be used for displaying the results of Find all references, Find all implementations, and whatever else we need to find. It replaces the ugly 1.x "SimpleList" view: It all starts with a command. Here, the FindAllReferencesCommand: /// <summary...
One of my assignments was to create a chessboard. In this assignment I could not use an array, or a form of list or what not. Below is my code for the creation of the chessboard: import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.Color; public class Checkerboard { private int xPositions; pr...
I wanted to know how I can improve it. I mainly want to look at speed and performance, but if there are any improvements please give a suggestion. <?php defined("SECURE") or exit('Please define SECURE keyword to continue.'); class template { private $templateParams; public function __construct() { ...
I have recently started writing C# from a strong JavaScript background, and found myself wanting to do something I do all the time in JavaScript: events. Since I have a type system at my disposal, I figured I'd make use of it and make the event system type safe. A quick note on existing options: C#'s built-in event lib...
I want to get the feedback this code about the best practice I should follow and if I am using the connection pooling properly. I have classes as follows: DAOConnectionFactory- to fetch pooled connections from the Datasource WatcherService- the REST WS WatcherDAO- called by WatcherService to insert data in DB Watcher- ...
I'm trying to set up a system where I can have an arbitrary number of parallel tasks, all of which wait for a go signal, do their work, and then stop while a manager collects the results, prepares for the next batch of work, and so on. The easy way I know to do this is to launch a packaged_task for each job, for each i...
I have 3 variables and each one has their own percentage to win out of 99.99...%. (The 3 percentages don't act up to 100% perfectly) When button1 is clicked, it will go through 100,000 simulations and afterwards it will output how many times each variable "won" in a MessageBox. I would like some help optimizing my code...
I have refactored this. Once again, the running time can be anything between \$\Omega(n)\$ and \$\mathcal{O}(n^2)\$, yet it adapts to "smoothness" of the input array. AdaptiveCountingSort.java: package net.coderodde.util.sorting; /** * This class implements an adaptive counting sort that adapts to the input. * * @...
Okay, so simple enough task - I'm using Ionic/Angular2 to develop an auditing app. Using angular I can map Objects into the DOM rather easily, so what I need to do is create an object - but I would like some suggestions or advice on how I can do this in a modular way. The app displays a table of input fields with some ...
I answered a question on SO today, however it did't receive any up-votes, so I want to know what's wrong with my code. The requirement is to compare the input numbers(granted to be positive) without logical, relational or bitwise operators, and insert the corresponding comparison sign between them. For example: input: ...
I have this algorithm for sorting integer arrays. Basically, it's a balanced tree sort which creates a tree node for each distinct integer, and in each tree node it maintains a counter counting how many times the integer key appeared so far in the array being scanned. After the array is scanned, and the tree is complet...
Here is my OrderBy method which includes concatenated column names. Can this be achieved more efficiently? public static IQueryable<T> Sort<T>(this IQueryable<T> query, List<SortationDto> sortations) where T : BaseEntity { sortations.ForEach(s => { Expression value = null; ParameterExpressio...
Design a STRING class. Provide support for: Assigning one object for another Two string can be concatenated using + operator Two strings can be compared using the relational operators Modify the String class so that assigning/initializing a string by another will not copy it physically but will keep a reference co...
My main interest is in how I have handled the generics and if it's idiomatic. I want the user to be able to specify what kind of integer type they would like to use for the encoding (u8, u16, u32, u64). I want to keep the hex string -> vector of numbers and vector of numbers -> base 64 string conversions separate. My ...
I want to get a second-opinion on my use of goto. SqlCommand and SqlDataReader only read the RETURN-value of a Stored Procedure after the SqlDataReader has been closed. This is a problem if you want to interrogate the return-value to make a decision regarding how you want to read the data. In my case, the stored proced...
I am using a class which is taking care of minimum value so far. Please let me know of any improvements or suggestions. class MinStack { Stack<Node> s1 = new Stack<>(); public void push(int x) { if(s1.isEmpty()) { s1.push(new Node(x,x)); } else { s1.push(new Node(x,Math...
The task in question allows a user to re-rate a film such that only the latest rating from the user should remain in the database. Initially I solved this problem in a very basic manor? This was my result: type Rating = (String, Int) type Film = (String, String, Int, [Rating]) --Example ("Blade Runner","Ridley Scott",...
I want to play some audio of two byte arrays. I was wondering whether it would be better to play them as two separate arrays both calling the method, or to put them into one array and play it from there. Note: The starting from position 4 because the first 4 bytes are saved for the sequence number in the array. All in ...
This week I started reading "The Rust Programming Language". As I reached the chapters on enumerations and pattern matching I felt I had enough material to put together a simple representation of JSON in Rust, just to play around and get a better feeling of the language. This is what I came up with: use std::fmt; pub ...
I am developing a unit converter application for Android. The application is working correctly, but my problem is with the optimization. Is there a way to somehow optimize the code? I have different categories - speed, weight, length and so on, and for each of them I have separate activities. Here, for example, is the ...
I want to get some practice in writing C libraries and so started with something I can use straight away, a logging library. It is very basic and only has two levels: log everything and log only errors. Use logd (log debug) to log any low level thing and if log everything level set, that item will be logged. Use log...
I have a list of images in a folder where num denotes the index of image and I used num to run the iterations in a "for loop". The code is supposed to segment brain part from the brain CT images. Here is the link for region growing algorithm. How do I increase the performance of my region-growing algorithm? % CORD_XY(1...
Are the conditions which I have included for insertion and deletion from front and rear sufficient and necessary? Have I missed some condition check? Or have I included some redundant condition? import java.io.*; class Dequeue { int arr[]; int lim; int front; int rear; public Dequeue(int l) { lim=l; front=rear=...
I have a data stored in .mat files, each .mat contains a cell array of vectors of length ~70. I'm trying to read these .mat files in to Python with h5py, but reading just 1000 cells takes about 7 seconds, and I have in total about 10^8 cells to read... Is there any way I could simplify this process? I'm pretty sure th...
I want to limit the request rate in a spray/akka-http route. I'm not an expert with both scala and spray/akka but learning. So I came up with the following custom directive: trait RequestRateLimiter[T] { def check(ctx: RequestContext, realIp: Option[RemoteAddress], proxiedIp: Option[RemoteAddress]) : RequestRateR...
This is one of my first times writing Python. I'm most curious about style and whether while 1: x,y = socket.accept() is an acceptable way to wait for new connections. #!/usr/bin/pythonw import socket import os class Server: def __init__(self, directory, host="", port=8123): print("Server running on port "...
Here is a simple Phase Locked Loop, which is a circuit used in radio communications for synchronisation between transmitter and receiver. The loop works by calculating the (phase) difference between the input signal, and a reference oscillator, and then adjusting the reference until the phase difference is zero. In th...
I have a few custom components, some bigger ones and some smaller ones. I'd like to know if the structure is correct. As in: Is the code to do x in the right places. For starters, I'd just like to show a very small one, take your feedback and adjust my other components accordingly. It can be found here. Before you clic...
I'm a beginning C programmer. I need a function that will take a string and determine if it's a number. The data is coming from files created by different people and the number formats WILL vary. So the function needs to decide if it was Supposed to be a number and if so, I will call the right conversion function (atoi...
In a C project I want to reuse curl easy handles. The flow of program is like: Client --> C Application --> Call URL1, do something, Call URL2, do something, Call URL3... In short, for each client request, the same set of URLs are called. I initially create the curl easy handle when the program starts. The main program...
I have just started out learning C++ and I am trying to write out a simple bills' dispenser machine as an exercise. Upon user input, the system is to check if it can pay out the amount but only in 20 and 50 bills, and it should return with the minimum number of bills. I need someone to point out and tell me if the foll...
The code below is a attempt to create a persistent login cookie. I am an amateur and not professional so this is the first attempt to have secure remember me cookie. Now I want you guys to review two things: I am trying to create a system like best way to implement remember me but I am not sure if I have done the same...
Being new to VBA, and many years removed from college programming courses in Java, I'm seeking opinions about design, implementation, readability and general better practices using VBA to tackle complex problems. There are probably other programming languages much better suited to this problem, but I'm limited by the ...
Working from a C# and EntityFramework background. Jimmy Bogard makes the point of modelling your domain model correctly, such that an Email Address is not a simple string but should be of type EmailAddress. Also known as Primitive Obsession. I've come to this part of a piece of software where a Application form is to b...
I went from manually outputting escape codes in each string to creating a utility struct/class full of static functions and variables that needed to be initialized in source files (static private members are required to) which was a bit ugly for me. Then I was searching for something different and while playing with en...
The following code executes asynchron on the SQL database. Is the closing of the connection implemented in the right way? Are there any missing features regarding connection handling which need to be added? public void deleteData(Node node, User user) { SqlConnection connection = getConnection(); ...
I am working in Maya using PyMEL (my goal is to leverage PyMEL to create more readable, object-oriented, Pythonic code than if I'd used maya.cmds). I need to set an attribute value on an arbitrary node. The attribute may not exist or, if it does exist, may be locked. I found that setAttr with force=True did not account...
I build/maintain an IT support self-help app and recently had the need to include some registry key manipulation when users experience certain issues. I create the Reggie class to handle the general registry key manipulation: using System.Windows.Forms; using System; using Microsoft.Win32; namespace Reggie { class...
Do I need to restructure for readability? public HttpResponseMessage Post([FromBody]BoatProperties props) { // model validation if(ModelState.IsValid) { // check if guid is set, else set it; don't set when user is admin if(props.Guid == null && !User.IsInRole("Admin"...
I have coded a very simple distributed system simulator in Python. It uses multiprocessing to assign tasks, and queues to communicate between processes. The code is shown below. from functions import * import multiprocessing import time try: with open("config.txt") as f: lines = f.readlines() max_inst...
I have a nested hash of symbols like this: { a: { b: :c, d: { e: :f } }, g: :h } I want to build an array that contains all symbols used in the hash, both keys and values, in any order. For the example above: [:a, :b, :c, :d, :e, :f, :g, :h] Is there any simple, fast and ruby-friendly way to d...
I have to write a collection of methods for performing linear, bilinear and trilinear interpolation. I have also to write some tests to show that interpolation is exact for polynomials (which should be the case using these interpolation methods). I ended up writing the following classes as core for my interpolation He...
Can someone help me optimize speed for my code? I tested it via stopwatch in milliseconds. I've implemented my own ArrayList and I would like to improve its speed without using C# built-in structures. Mylist.cs using System; using System.Collections; using System.Linq; using System.Text; using System.Threading.Tasks; ...