« first day (3563 days earlier)      last day (445 days later) » 

12:08 AM
REFRESH! There are 7472 unanswered questions (90.2447 answered)
 
12:43 AM
0
Q: I am trying to Write a program that inputs the number of days in January, (C++ beginner) (from 1 to 31) (separ. at tens), and outputs #'s written out

TjGoSwiddly// January // This program inputs the # of days in January 1-31 // Brandon Summerlin // 2/03/2023 #include <iostream> using std::cout; using std::cin; using std::endl; int main() { //inputs the numbers cout << "input the number from 01 to 31: "; int number; cin >> number; const int singles = n...

 
 
2 hours later…
2:26 AM
 
 
3 hours later…
5:47 AM
0
Q: Solution to Codejam 2022 1C (Letter Blocks) in Ruby

PanicThe following is my solution to the Letter Blocks problem from Codejam 2022: https://codingcompetitions.withgoogle.com/codejam/round/0000000000877b42/0000000000afe6a1. In summary, we have towers of wooden cubes, each with a letter printed on one side. Given n different towers of letter blocks, we...

 
 
1 hour later…
6:48 AM
Please remember that this is not a general help forum: if you have a programming problem, follow the posting guidelines and explain what you need to do, what code you wrote, how that code didn't do what it's supposed to, and what you already did to try to fix things. If your code already works, and you just want to improve it, SO is not the right place for that (the codereview stackexchange might be, but read their rules before posting there, too) — Mike 'Pomax' Kamermans 14 secs ago
 
 
2 hours later…
8:44 AM
It could be simplified to if (s.charAt(i) != ' ' && (i == 0 || s.char(i - 1) == ' ' )) { count++; }; In short, it is counting word start characters ... or words. Explanation: whoever wrote the original version didn't have their code reviewed for clarity :-) — Stephen C 45 secs ago
 
9:35 AM
0
Q: Best way to conditionally add classes to a react element?

temporary_user_nameI've been adding classes to my react components like this and it feels sloppy. Suggestions for a neater formulation? const componentClasses = `roomsList ${showEmptyState ? 'emptyState' : ''} ${hasJoinedRoom ? 'halfSizeList' : ''}`; return ( <div className={componentClasses}> {/* etc */} </div> );

 
 
4 hours later…
1:48 PM
0
Q: Need feedback if my Laravel 9 Vue 3 project is following best practices/is efficient for search/sort/filtering data returned from api

Tove CI made a vue 3 laravel 9 project, where I have a list of cards displayed in front of user. User can search dynamically from search bar. Sort alphabetically and country wise. Can filter data country wise. Since I'm new to vue 3 and laravel 9, it took me a lot of trial and errors to reach this poin...

 
Monking
 
 
2 hours later…
3:40 PM
I think this question belongs on the Code Review StackExchangeRubenSmn just now
Before posting on Code Review please read A guide to Code Review for Stack Overflow users and How do I ask a good question?. The question will need a new title. — pacmaninbw 10 secs ago
 
 
2 hours later…
6:01 PM
0
Q: Quick Sort Program

Strange AlchemistQuick sort is a sorting algorithm in which we select any random element as pivot from the array and we do the partition of the array around that pivot. Basically we place all the elements smaller than pivot on its left side and the elements greater than it on its right side. So following is the c...

 
 
1 hour later…
7:17 PM
0
Q: Powershell file parsing very slow

Cell-oI am using Powershell 7. We have the following PowerShell script that will parse some very large file. I no longer want to use 'Get-Content' as this is to slow. The script below works, but it takes a very long time to process even a 10 MB file. I have about 200 files 10MB file with over 10000 lin...

 
8:08 PM
0
Q: extract numbers from string in c++

zeycan someone identify what im doing wrong here? i cant understand the errors #include <vector> #include <iostream> #include <cmath> using namespace std; vector<int> parseInts(string str) { int sum = 0; int j = 0; int z=0; vector <int> arr; for(int i=1; i<=str.size();...

0
Q: Delphi KD-Tree implementation returns alternating Values when close to the actual point

KdzI'm trying to implement a simplistic KD-Tree in Delphi, to find nearest neighbours faster. But as soon as I come closer to the objects, the found "closest object" seem to alternate in a strange almost pseudorandom manner. At least I can't get behind it. Maybe someone spots an obvious mistake here...

 
8:43 PM
Surely this is opinionated? And should be moved to codereview? — evolutionxbox 13 secs ago
 
9:24 PM
0
Q: Add Extension with selenium

James BloomI am trying to make selenium open a new window and then install an extension but I can't seem to make it accept the confirm popup. here is my code: const { Builder, By, Key, until, Alert } = require("selenium-webdriver"); const { WebDriver, WebElement, WebElementPromise } = require('selenium-we...

 
 
1 hour later…
10:29 PM
possible answer invalidation by Todd Takala on question by Todd Takala: codereview.stackexchange.com/posts/179359/revisions
possible answer invalidation by Todd Takala on question by Todd Takala: codereview.stackexchange.com/posts/179359/revisions
possible answer invalidation by Todd Takala on question by Todd Takala: codereview.stackexchange.com/posts/179359/revisions
 
11:13 PM
For Code Reviews, use Code Review. This site is primarily for fixing broken code. — Carcigenicate 32 secs ago
 

« first day (3563 days earlier)      last day (445 days later) »