TransWikia.com
  1. All Categories
  2. Code Review

Code Review : Recent Questions and Answers (Page 5)

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

Tail implementation using a dynamic queue library

As per K & R exercise 5-13Write the program tail, which prints the last n lines of its input. By default, n is 10, say, but it...

Asked on 12/15/2021

2 answer

Huffman Coding library implemented in C

I have written a small library for C that implements the Huffman coding algorithm as outlined in David Huffman's paper on Minimum-Redundancy Codes, and a small test...

Asked on 12/15/2021

1 answer

Compression Library for C using Huffman Coding

This is an update to a question I posed nearly two years ago about my implementation of Huffman Coding which I had written in C. Since then I have...

Asked on 12/15/2021

3 answer

IP address exclusion algorithm

The below algorithm is supposed to take a list of input IPs/networks and a list of IPs/networks to exclude, and return a list of networks that don't include any of...

Asked on 12/14/2021 by deed02392

1 answer

Type-safe Dictionary for various types

Assume the following situation: you have an object that can store any object based on a key (basically, IDictionary<string, object>). You want to store objects of various types into it...

Asked on 12/12/2021

5 answer

Custom exception for each invalid input value

I have backend project in which there's own "parent-to-all exception" exists, something like this (also I have InvalidArgumentException derived from this exception):class CaliException extends Exception { ...

Asked on 12/12/2021

1 answer

Correct flow between Kotlin, Realm and ViewModels using Coroutines

I'm stepping back into Android after being away from it for about a year. Trying to get an out of date app of mine back on its feet, and continuing...

Asked on 12/10/2021 by BHogan

1 answer

Changing the environment if it sees the incorrect environment in the setting

I am using the function below to change the environment. If it sees the wrong environment values, it clicks on it and it changes the environment. In this function, I...

Asked on 12/10/2021 by cva6

1 answer

Faster solution to pattern search in a large file

I have a file with over 2 million lines. I want to get the 8th column of the file and find the pattern that contains "DP=" and "QD=" and then...

Asked on 12/10/2021

1 answer

Improving efficiency of download code

I'm in the process of reviewing some old code released by an old colleague. We have a cronjob that executes once in an hour to download some thumbnails: the paths...

Asked on 12/10/2021

1 answer

Ask a Question

Get help from others!

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