Linked Questions

3
votes
2answers
86 views

LinkedList using Node Class in C++

I implemented Linked List data structure in C++ for practice purpose. The LinkedList.h uses Node.h as nodes. Creates and insert ...
1
vote
2answers
2k views

Remove the occurences of an element from array if it occurs more than n times

I wanted to remove the occurrence of an element from an array if it occurs more than n times. For example: ...
7
votes
1answer
4k views

Basic JavaScript template engine using replace, match and RegExp

To practice with regular expressions, I wrote this basic template engine in JavaScript in addition to a simple test case to make sure it works correctly. I am wondering if there is any improvements I ...
4
votes
2answers
84 views

Posting accounting data to a report

I have some buttons on an Excel report. 2 in particular are for posting all Budget numbers to the report and posting the Actual numbers. I currently have 2 separate subs, one assigned to each button. ...
3
votes
1answer
566 views

Tic Tac Toe with Python and Kivy

Accomplishment: Tic Tac Toe game with Python & Kivy I have created a simple tic tac toe game with a random bot logic (really random after a user selects a mark). Next step would be to insert the ...
5
votes
5answers
11k views

Checking if a given string is in alphabetical order

I wrote this function to check if a given string is in alphabetic order. How can I improve? ...
4
votes
2answers
125 views

Accelerate the process of filling the quality control table

I'm working on a report of quality control. I've got a table, with all the points of control inside, and each time, when I get a new test result, Excel should fill this table. My code already works, ...
8
votes
1answer
5k views

Encrypting strings in Golang

This is a an example application for testing some encryption and decryption functions in Golang. The functions encryptString(), ...
0
votes
1answer
181 views

Cleaning up 3D bin packing [closed]

This is a follow up question to 3D bin packing in Java I finished testing my code's result and started cleaning it up. Could anyone please tell me what I should do or fix to clean up this code more?...
15
votes
5answers
3k views

One program using three functions to compare two double-precision numbers

I am currently learning C++ though Bjarne Stroustrup book Programming Principles and Practices using C++. Going through the drills, I am trying to purposefully write efficient and readable code (good ...
0
votes
1answer
129 views

Calculating the prime numbers between two integers

I've wrote this code to calculate the prime numbers between two integers n and m, and I want to optimise it. ...
4
votes
1answer
67 views

Word Counter Project

I recently read K&R The C Programming Language and wanted to write a small program to count the occurrence of each word in the input (std-input - I piped a file with all shakespeare pieces in ...
3
votes
1answer
285 views

String tokenization and replacing a numbered field

I created various functions for string manipulation in Lua, where the strings are composed of tokens separated by an ASCII character (which may be the point, comma, semicolon etc.). One of these is ...
4
votes
1answer
2k views

Animal inheritance hierarchy

I'm trying to figure out if I'm doing superclasses right. Also, I welcome critique on Java structure/syntax etc. Animal.java: ...
5
votes
4answers
7k views

Simple BMI calculator in Java

A similar question must have been asked a thousand times, but for the life of me I can't figure this out. I am new to Java and I want to create a programme that asks a user for his or her height and ...

15 30 50 per page