TransWikia.com
  1. All Categories
  2. Code Review

Code Review : Recent Questions and Answers (Page 13)

Find answers to your questions about Code Review or help others by answering their Code Review questions.

XOR Encryption, Decryption, and Cracking in Python

I have recently been working through a number of the Cryptopals Cryptography Challenges to try and improve my knowledge and understanding of both cryptography and Python. As...

Asked on 10/27/2021

1 answer

Hailstone Sequence in NASM

For practice, I wrote some NASM code that prints out the hailstone sequence of a (unfortunately, hardcoded) number. This is by far the most complex code I've ever...

Asked on 10/27/2021

1 answer

Simple square root calculator

Very simple square root calculator. I am sure it's terrible and can be made much better. I feel it's way too many lines.import random## ask user for a number...

Asked on 10/27/2021 by John Test

2 answer

My first project in Python: Tic Tac Toe

I just finished coding a Tic Tac Toe game for my first Python project. I need some advice on things I can improve; please help. Everything seems to be running...

Asked on 10/27/2021 by Alaa mihoub

2 answer

First project in Javascript: NearestNeighbor Calculator

I just finished my first project in Javascript. It takes an array of locations (with coordinates on position 6 and 7) as Input, then the first location is checked against...

Asked on 10/27/2021 by Herbo

3 answer

Optimizing a linked list

I wrote a linked list class and don't know how to optimize it, please suggest some ideas for optimizing and fixing possible memory leaks.#define indexTooLarge -1template <typename T>class LincedList{public:...

Asked on 10/27/2021 by qela

3 answer

A simple error messaging and logging system via macro(s) in C++

I'm just trying to build a quick and crude error messaging system. It currently looks like this:#include <exception>#include <fstream>#include <iostream>#include <string>#include <sstream>#include <map>enum MsgTy { OK...

Asked on 10/27/2021 by Francis Cugler

2 answer

Simulated WeakReference class

I've created a fake WeakReference class for VBA by chance. A Weak Reference is not counted (i.e. IUnknown::AddRef method is not called). I knew about the Weak Reference concept from...

Asked on 10/27/2021

3 answer

Scan a directory for files and load it in memory efficiently

I am working on a little project where I need to scan all the files present in a folder on the disk and load it in memory. Below is my...

Asked on 10/27/2021

2 answer

A program with a function that converts a string of digits into an integer value

Here is a programming task:Write a program with a function that converts a string of digits into an integer value. Do not use the strtol() function or any other standard...

Asked on 10/27/2021

3 answer

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP