TransWikia.com
  1. All Categories
  2. Code Review

Code Review : Recent Questions and Answers (Page 15)

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

Website parser for advertisements

I'm new to Python and I have written the spider on the Scrapy framework which parses some advertisement websites and proceed data further. The spider works as I expect but...

Asked on 10/27/2021 by Viktor V.

1 answer

Knuth Morris Pratt substring search algorithm

Below you can find a Kotlin based implementation of the Knuth-Morris-Pratt substring search algorithm.class KnutMorrisPrat(R: Int, private val pat: String) { private val...

Asked on 10/27/2021 by gil.fernandes

0 answer

XMLGregorianCalendar to LocalDateTime

From some generated code I get ajavax.xml.datatype.XMLGregorianCalendar and I want to convert it to a LocalDateTime without any zone-offset (UTC). My current code accomplishes it, but I think it...

Asked on 10/27/2021 by MrSmith42

1 answer

Multiplying numpy arrays

I have written a function to multiply two numpy arrays.def ra(self): """Multiply Rotation with initial Values""" rva = self.r_array() * self.va_array() ...

Asked on 10/27/2021 by GalacticPonderer

2 answer

Sum of integers in an interval

Here is my solution to a series of problems in JS fundamentals. I've made it pass but I know this could be more efficient. I'm not looking for anyone to...

Asked on 10/27/2021 by James Ross

6 answer

First-time F#: A simple Rock Paper Scissors

This is my first F# program. It's a simple Rock-Paper-Scissors implementation. I am looking for feedback of all sorts, e.g. the choice of types (e.g. List vs Array), whether there...

Asked on 10/27/2021 by cimnine

1 answer

C++ : Red-Black Tree with std::unique_ptr

This is my C++ implementation of a Red-Black Tree, referring the CLRS book.Half for fun, half for studying.As implementing child node, I chose std::unique_ptr over std::shared_ptr because std::unique_ptr is...

Asked on 10/27/2021 by frozenca

1 answer

Checking if an integer is a palindrome using either a string or a dict

I have solved the palindrome question on LeetCode today, but I wasn't happy with the original solution - I used strings, it worked slowly and used a lot of memory....

Asked on 10/27/2021

6 answer

get-release npm module

Solved, question with improved code I've created a simple npm module and CLI program to get the latest GitHub and Bitbucket release from their APIs using Node.js. Please tell...

Asked on 10/27/2021 by Khushraj Rathod

1 answer

Sending a CSV file for a client list from a database

What can I improve about this code in order to be production-ready? I'm not worried about security but about errors that could occur. What exceptions should I catch? I feel...

Asked on 10/27/2021 by escarta

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