« first day (1489 days earlier)      last day (2823 days later) » 

00:00
RELOAD! There are 3910 unanswered questions (91.2291% answered)
This question might be better at Code Review, since your code already works and you're looking to improve performance. — yellowantphil 49 secs ago
00:40
On the downside, using Variable Length Arrays are a great way to overrun the stack and introduce mystery bugs. Finally, the lack of descriptive names in int t,i,j,k,n,m; makes your program much harder to read than it needs to be. I'd fix that up before heading to CodeReview or you'll get some sarcastic nagging. — user4581301 36 secs ago
01:00
I was initially skeptical of @Jean-FrançoisFabre's close vote, but skimming the code and seeing the sheer number of improvements to be made, I agree that this question is much better suited for Code Review. The issues go far beyond the single question that's been focused on, and the code would benefit greatly from a full review. — jpmc26 53 secs ago
1
Q: Powerset (all subsets of a set) in Java

satyspectiveI am trying to get a powerset (all subsets of a set) in Java. So my logic for that is: A given set is one subset, so add so it as it is to result. Remove each element of set from given set and we will get all the combinations for 1 element less. Add these results to final result. Recursively fi...

0
Q: Make each element equal to it's neighbouring (all 8 ,including diagonal) element which is maximum in a matrix

AlfranI have a matrix and I want to make each of its element equal to the maximum of its neighbouring element and each time I increase number of counts till all the elements in the matrix becomes equal to the maximum element of the initial matrix. Note that this increase in element will happen simultan...

01:33
0
Q: Light house and programming

pallabThere are some light house's placed on a field can be rectangular.Each light house has base luminous intensity L. Now the intensity diminishes as the light moves further away from the respective light house. In the Figure below light source is 2 and has intensity at light house 2 and then dimin...

0
Q: Drawing a board for the board game GO (html canvas)

Rachelim working on a go game in javascript and drawing the board is important to be efficiant because it gets ran multiple times a second, as when the user moves their mouse it will simulate where their game peice is going to go so the board must rebuild lots of times. It looks ok at the moment, abi...

01:49
@SimonForsberg Azure does that based on CPU time used by your program, or something like that.
Not at all sure whether it supports Java.
02:28
I'm voting to close this question as off-topic because this is working code and asking for a code review. So it belongs on codereview.stackexchange.comJarrod Roberson 32 secs ago
02:53
1
Q: Raw text positional parser PHP

davidbonacherait's my first time on code review. So I'm parsing a raw text file with my parser and a defined template (basically an array) to create a formatted array out of it. The idea is that each line can have different templates and can be identified with the first characters of the lines. A template me...

03:24
0
Q: React.js with Ramda functions- hiding rather than removing from DOM

YconI would like to make this function more efficient. Currently, its performance is lacking. From my understanding, for large list that is being kept locally- I may might be better doing display:none on the hidden ones rather than removing them from the DOM. This could dramatically cut down on int...

03:38
0
Q: Very long if statment to check if a checker can move

Rachel Dockterimagine a game of checkers but you can move left right up down instead of diagonally. I have made an array to store liberties(avaliable moves) and use if statement to update if a checker can move there. checkers can share liberties, ill include a picture below so you can see what i mean So the...

Question is better suited for Code Review. — kaylum 29 secs ago
04:00
I think that you want a code review: codereview.stackexchange.comsynchronizer 39 secs ago
Do the code work? Then you should post on codereview as mentioned. If it doesn't work then please elaborate on how it doesn't work. And please take some time to read about how to ask good questions. — Some programmer dude 29 secs ago
 
1 hour later…
05:25
If your code is working, submit it to codereview.stackexchange.comuser2296177 just now
05:51
0
Q: Generic Json parser c++

DipakI am implementing json parser in c++, i have written some code and i wanted to share it on stack overflow, While writing this program i have assumed as the json will have only objects and array are of string. Also i have used stack to find corresponding closing ']' or '}' Also i have used ...

06:15
I wrote the following code for this program. It seems to work well,...then, my friend, you should change your way to Code ReviewSourav Ghosh 7 secs ago
06:36
Probably belongs to codereview.stackexchange.com. The rule of thumb is that if you can't read code without thinking, then it can be improved. — Sulthan 22 secs ago
Heyho everbody, hope you had a good time
0
Q: NAddOdd - Topcoder - Single Round Match 714 Round 1 - Division I, Level Two

BeardAspirantI am interested in DP problems from the past couple of days and am trying to solve various problems on topcoder. To be very frank could not even solve a single one till now. I went through https://community.topcoder.com/stat?c=problem_statement&pm=14408 question and thought to try this. I could c...

07:20
0
Q: A Simple Weather ForeCast App

Azdren YmeriThis is a very simple weather app where you can get weather details based on search and location services. Weather info: Humidity Pressure Wind Speed etc. Check it out on GitHub (There is a lot of code so I uploaded it on GitHub) T The Weather ForeCast Any: Suggestions, Fixes?

07:55
0
Q: RxJS Observable with initial value

sevevesIs it possible to get rid of the BehaviourSubject to have an Observable with an initial value? Another thing I don't like is that I'm using getValue() and then modify this value and push it with next back to the Observable. Maybe there is a more elegant way to get the same thing? import { Inject...

08:14
0
Q: if 4 if statements fail, run this code

Rachel Dockterim trying to check 4 things, 1 of them things might happen, maybe 2 or 3 or 4 but if none of them occur, i want to run some code. I cant do an else statment because that only applies to 1 and i cant do else if because more than 1 can happen. at the moment ive resorted to this: function checkChai...

Kaz
Kaz
Monking
Monking
I'm voting to close this question as off-topic because this is really much too broad for Stack Overflow, which deals with more focused coding problems than this. For advice on improving working code, consider Code Review instead - but do read A guide to Code Review for Stack Overflow users first, as some things are done differently over there!. — Toby Speight 57 secs ago
08:41
What is wrong with your current code? If you'd like someone to review your code: look at codereview.stackexchange.comLanting 36 secs ago
08:55
possible answer invalidation by Arturo on question by Arturo: codereview.stackexchange.com/posts/164591/revisions
0
Q: java ide can't find main member issue

Lan...My android java ide can't find the main member,the setview code is R.layout.main.This issue appeared after i had fixed the "unknown entity R" issue by import it.How can i fix this?isn't main mean MAIN.XML?

0
Q: Remove trailing comma from a Js file

pallaviI want to read Js file..remove all trailing commas from it and write this content in another Js file.

09:17
0
Q: Word Jumble game on python using CodeSkulptor

opharmos19I am attempting to code a basic Jumble game in Python utilizing the web-based environment CodeSkulptor and I could not quite find solutions to problems I encountered. 1- I don’t understand why the first word repeats itself upon pressing “new word” and why displayed scrambled words are offset wi...

09:51
0
Q: Blocking Queue implementation with std::unique_ptr

Jonas KI implemented, somewhat closely based on this implementation, a blocking queue with emphasis on filling up first. So if one producer and one consumer thread are using the queue, the producing queue gets prioritized. Code // BQueue.hpp //#pragma once #ifndef _BQUEUE_HPP #define _BQUEUE_HPP #inc...

10:13
I would answer if I would understand the problem. The question is too broadly worded and contain many parts which can be answered individually. Again, PropertyGrid can replace settings form, it's dynamic and very flexible. But database? MVP? Concerns like "another programmer may find it difficult to understand" only adding uncertainty. It's not possible to answer unless you clarify better your requirements, show what you have now and why it doesn't work for you (though that's rather code-review question). — Sinatr 1 min ago
10:37
0
Q: How to use attribute and reflection to get data from sql database using asp.net?

Boom ClickNormally I would use data reader with column index to get data from database but now, i wanted to integrate attribute and use reflection so that i can just loop the properties, as opposed to updating every single connection whenever there are changes on the database. I also thought about using OR...

0
Q: STL insert iterators and assignable

Toni Homedes i SaunPlease have a look at the following class, it works but I'm not too happy with it: template<typename T, typename Container = std::vector<T> > class SortedVector { public: ... class insert_iterator { public: class assignable { private: SortedVector<T> &v_;...

10:54
@EBrown Do you want feedback, if any, here or as gist comments? I'm reading through it, and have one nitpick, and one concern myself so far
0
Q: C++ class for aligning objects on the stack

cruppstahlI wrote a short class which allocates objects on the stack and aligns them to a specific memory address. Alignment makes sense for some objects (i.e. some SIMD intrinsics require aligned data). I wrote this mostly as an exercise. Tests are included. If someone has time to skim over this: thanks i...

0
Q: Write a program to compare the monthly fuel cost of two vehicles

Jake ShineProgram Specifications: Use the following guidelines to write your program. Find the EPA miles per gallon (MPG) for two vehicles you want to compare. Estimate the number of miles you or your family drive a car each month. Determine the current cost of gas where you live. Name the class Vehicl...

@Hosch250 I think it supports Java. I was at a Java meetup not long ago where someone from Microsoft talked about Azure. Then the biggest question is if I can get an open port and have it work as a Minesweeper Flags game server the way I want to, for a reasonable price.
@Peilonrayz Make an edit then. :)
@SimonForsberg IIRC Azure binds to DNS names (though you can get a sub-domain from Microsoft on the platform for free).
@EBrown What's the difference between accepting entries and challenge begins?
@SimonForsberg Accepting entries should be suggestions
Updated
11:09
> You may not reuse any previous community challenge suggestions as normally required, but you may suggest challenges that are somewhat large in scope.
Why not?
It just seems unfair. People who completed the previous challenge have a head start.
@EBrown I don't think I can, ones a question anyway. Under 'How does one win?' How does the split work? 1 winner get 500, 2 250 each, 3 500 each, 4 500 each, ...?
I'm just taking the regular community challenge rules and applying them to a more competitive challenge.
@Peilonrayz 3 = 250 each
And so on
So if there's only one winner, they get the full 500, more than one winner gets 250 a pop.
Ah, just "This means that if there is a 2+-way tie, then each person who ties will receive 500 rep." makes it read the way I said above, :)
Of course other community members have indicated they wish to contribute reputation, so if @Vogel612 (and you even) contribute then we can give all winners 500 rep bounties
@Peilonrayz Ah yes, typo. :) Fixed
@SimonForsberg I edited that verbiage, I meant to say 'you cannot use any previously selected challenges', you can resuggest losers like normal.
11:18
@EBrown I think there's there's definitely 1500 rep people are happy to give, you, Vogel612, and me, I don't know the upper limit from Kaz. So I think that's definitely a possibility. Currently we can support a 6+ way tie at 250, :)
Well I'm fully planning on supporting the winner(s), but if others wish to help then we'll divide them up when the time comes.
I can't (yet) afford 500 rep to many winners, but I can afford 250 rep to the winners.
Kaz
Kaz
@Peilonrayz I will gladly give 1,000 rep to anything that generates some community engagement.
@Peilonrayz @SimonForsberg @Kaz Should just the winner get a bounty, or should we award a top 3, I.e. first = 500, second = 250, third = 100?
Kaz
Kaz
@EBrown I think that should be somewhat discretionary based on how much rep goes into the pool, and how many entries we get and how we feel about them.
Hello everyone
11:24
@Kaz Alright, that's fair.
Kaz
Kaz
By all means put some minimums in there, but leave plenty of room to adjust.
@scripter Hi.
So I have this project I'm working on, and I wanna see what stack exchange ppl think of it
Is it OK to link to the github repo on codereview?
Kaz
Kaz
@scripter Yes and no. The rule is that the relevant code must be embedded in the question itself, but you are free to also link to the repo for wider/fuller context.
Wider fuller context is what I want ppl to critique
It's a forensic toolkit, and I have used procedural instead of oop
11:28
@scripter Then you should embed all the code in the question, however in the case you simply want a 'does this project structure/architecture make sense', then this may not be the place for that.
Cause most scripts are rather small, with one containing utilitarian functions
We're more about reviewing the code itself, not about reviewing the project structure (though sometimes that comes with a review of the code).
Understandable
I believe Software Engineering does project-level questions, though you should be certain to check their help centre and ask in their chat if you like just to make sure.
Kaz
Kaz
@EBrown I would just take this bit out: "the details of which will not yet be revealed.". It sounds, sinister.
11:30
Done
Thanks EBrown
Appreciate the help
No problem, @Kaz helped too. :)
I'm voting to close this question as off-topic because none specific problem with this code was specified. Consider to ask refactoring questions at codereview.stackexchange.comSergey Berezovskiy 8 secs ago
12:07
codereview.stackexchange.com — OH GOD SPIDERS 5 secs ago
12:30
I would suggest to move this over to codereview.stackexchange.com , as this will not turn into a good format for this site, but you could do a lot of things (e.g. use serverside sessions instead of just this id in the cookie). — Nanne 40 secs ago
12:44
0
Q: a program that reads simple data declarations and responds with the amount of memory that would be allocated to that variable

NoaRothEach input line should consist of - A type name, which must be one of the following: char, int, short, long, float, or double. - One or more individual declaration specifications separated by commas. - A semicolon marking the end of line. I wrote the following code for this program. It seems t...

13:00
Questions about improving already-working code belong on Code Review, not Stack Overflow. — jwodder 11 secs ago
This might be off topic for SO - since you seem to have managed to write some code, but want a better wya to do it. Try the code review site? Also, don't be shy about looking at open source implementations to see how they do this kind of thing — doctorlove 30 secs ago
13:31
Greetings, Programs.
@MartinDreher I worked in a place where it was deemed normal for a SSRS report to take 30 minutes to process... People have varying standards I guess. Still, I would recommend you put your SQL up for review on Code Review if you can - you never know, maybe there's a chance it can be tweaked to run in under 10 seconds =) — Mat's Mug 52 secs ago
14:02
0
Q: Load images to a CNN with tflearn using “image_preloader”

Josemaria Bello de HaroGood afternoon, i have a dataset of 112 images (80x24x1 --> greyscale)(Jaffe dataset) that i want to use as training for a CNN. The code i am using is this: def vgg16(num_class, placeholderX=None): x = tflearn.input_data(shape=[None, 24, 80, 1], name='input', placeholder=placeholderX) x...

@Captain Obvious, this needs 4 votes to close codereview.stackexchange.com/questions/164678/…
0
Q: Best practice for handling DbContext (Entity Framework)

Coding4FunI have recovered a project in ASP.NET MVC 5 uses a SQL database SERVER 2016 and Entity Framwork 6. In this code we will create a new instance of the DataContext whenever he wants to use an entity. Which is not optimal ... please tell me what you should not do. And that you proposed as correction ...

0
Q: Check if variable is empty on php

tzvika ofekI'm doing a code review on PHP and i've found this kind of code: $charset or $charset = 'utf8' Which i believe is equal to: if (empty($charset)) { $charset = 'utf8'; } For me the first one looks not clear and not a good practice. What do you think?

See the help topic for What topics can I ask about here?. Since you have working code, and are asking for potential improvements, that is a more appropriate question to ask on the Code Review site. — CoryKramer 45 secs ago
0
Q: Is there documentation?

pacmaninbwIs it documented anywhere that I can lose a point for answering a bad question in the same comment where I tell the user that they are off topic?

14:52
I'm voting to close this question as off-topic because I think this question might belong on codereview.stackexchange.comroberto06 42 secs ago
@Feeds Please delete my question.
@pacmaninbw IIRC you should be able to do that yourself. There should be a delete button under it, near close.
15:16
@pacmaninbw @Peilonrayz is correct. You should be able to delete it yourself.
I guess it would be more suitable for code review ... I'll post the link if you'd like to take a look! — tushar 41 secs ago
15:34
I love reading a bug report that starts with "Hey guys, I've accidentally bricked the site in question..."
0
Q: Finding the number of capital letters in a word grouped by letter

w0051977Please see the code options below: Clent App - this is the same for both options LetterCounter lc = new LetterCounter("HeLLo"); Option 1 class LetterCounter { string _Word; List<LetterQuantities> letterQuantities; //Other functions will be here. public L...

Welcome to Stackoverflow, while this is a programming question it is somewhat outside of the scope of the questions we usually help with. Questions about code syntax and best practices are better asked on codereview.stackexchange.comKeith M 58 secs ago
15:56
0
Q: Any elegant way to do something like class static field in golang?

rogerAccording to code, as you can see, my problem is this: type struct bar init depends on data in type struct foo. I want to avoid to use too many arguments in init method newBar, so I have to use a globVal. I have to say, this method is not that elegant. If in Java, I will use static block in fo...

For starters, some variable names that actually means something normally helps. That said this really sounds like a question for CodeReview.SE, not Stack Overflow. — NathanOliver 42 secs ago
0
Q: Count has_many relationships

Graham SlickI have 3 models: Import, Product, Values. An import has_many products. A product has_many values. I want to find the product with the highest values count and the sum of all values for all those products. My current method is very expensive. @import = Import.find(params[:id]) @products = @impor...

16:15
possible answer invalidation by Coal_ on question by Coal_: codereview.stackexchange.com/posts/164187/revisions
If the code works, maybe this is more suited for code review (?) — FirstOne 17 secs ago
Monking
@DanPantry :D
@Duga Doesn't seem to me mentioned by answers
I'm voting to close this question as off-topic because its more suitable on another site, for example codereview.stackexchange.comQirel 14 secs ago
16:37
0
Q: MVC RESTful API MODEL

Arslan.HBased on the reply on my previous question, I have tried to shape my model so that it could fit the MVC pattern structure(thanks to @Mike Brant). This this project is the Model part only and views and controllers are not yet added to it.I have planed to use Simple for the routing.... I use YAML...

0
Q: Game of battleship (2-player) Python

zalidaelI have been working on a 2-player battleship game and have finally got it working, bug free. I'm posting this here to ask you what you think of it. Are there any changes that could be made to improve the performance/general layout of the code? If you come across any issues with the code itself,...

Monking
17:15
possible answer invalidation by BeardAspirant on question by BeardAspirant: codereview.stackexchange.com/posts/164659/revisions
@Duga rolled back
0
Q: Python Brainf*ck interpreter

enedilWhat do you think of my Brainf*ck interpreter? What else can be done to increase speed? #!/usr/bin/env python3 class InfiniteArray: def __init__(self): self.pstack, self.nstack = [], [] def __getitem__(self, index): s = self.pstack if index >= 0 else self.nstack ...

@CaptainObvious Why would you ever write such a thing?
@CommitStrip Well, that's not really optimistic
0
Q: Iterative n choose k combination generator

user3362964I wrote this as an attempt to create a non-recursive solution to project euler 60 which is basically finding a specific n choose k combination. The difference is that partial combinations can be invalid so this algorithm can reject whole swaths of combinations if the first part of the combination...

"SELECT 'temp_1' FROM logs.temperature_logs;"
Result:
[{u'temp_1': 'temp_1'}, {u'temp_1': 'temp_1'}, {u'temp_1': 'temp_1'}, {u'temp_1': 'temp_1'}, {u'temp_1': 'temp_1'}, {u'temp_1': 'temp_1'}, {u'temp_1': 'temp_1'}, {u'temp_1': 'temp_1'}, {u'temp_1': 'temp_1'}, {u'temp_1': 'temp_1'}]
I probably screwed something up here, there's supposed to be a lot of integers there :P
likely the single quotes around temp_1 is telling it to select the string "temp_1" for every row rather than the value
@DanLyons Exactly
The correct query would've been "SELECT temp_1` FROM logs.temperature_logs;"`
And markdown breaks due to usage of `....
"SELECT temp_1` FROM logs.temperature_logs;"
Cheats
18:44
0
Q: Basic Go http router

TravisI know Gorilla and others have packages that accomplish this, but I'm trying to learn Go by making stuff. In the router below, the first route / is for all http methods, the second route /hello is only for GET, and the third route hello/:name has one parameter for all http methods. func main() {...

@skiwi To me it sounds interesting :)
19:09
remonking
monking
@janos Brainfuck is always interesting.
@janos I would never do such a thing
0
Q: How do you pass a parameter with a variable? Python

Blake LarsonI am not sure if this is possible, but I am wondering if you can pass a variable expression as a parameter that does not get evaluated until the function. For Example: construct_corner_tile([0, (1/3), (2/3)], xCoordinate + 1 - j, yCoordinate + 1 - i]) def construct_corner_tile(jList, x1, y1): ...

19:33
0
Q: Get closest Entity from the Player on a 2d battlefield

Artur o TemplárioI am building a little game in using Unity, and recently made an algorithm to get the closest Entity to the player on the battlefield. I made a working sample in RexTester (it is not the real code, but the algorithm is exactly the same). I am interested in the GetCloserEntityFromPlayer function....

20:00
possible answer invalidation by Travis on question by Travis: codereview.stackexchange.com/posts/164702/revisions
For code optimisation and improvement you might try code review : codereview.stackexchange.comLethalProgrammer 56 secs ago
0
Q: 2-player Game of Battleship (Python)

zalidaelI have been working on a 2-player battleship game and have finally got it working, bug free. I'm posting this here to ask you what you think of it. Are there any changes that could be made to improve the performance/general layout of the code? If you come across any issues with the code itself,...

0
Q: codechef challenge

Lalit VermaThe problem is from codechef challenge and this challenge is over now. This is the link of problem : https://www.codechef.com/SNCKPB17/problems/SNELECT/ My code for this problem is : package kk; import java.util.Scanner; public class Mongo { public static void main(String[] args) { Scanner in ...

20:20
possible answer invalidation by Travis on question by Travis: codereview.stackexchange.com/posts/164702/revisions
I'm voting to close this question as off-topic because this type of question is more appropriate for codereview.stackexchange.com. — Barmar 24 secs ago
0
Q: Using dapper Unit of Work in 3-tier architecture

Alex GurskiyThe Unit of Work: public class UnitOfWork : IUnitOfWork { private IDbConnection _connection; private IDbTransaction _transaction; private bool _disposed; private _repository; private UnitOfWork(string connectionString) { _connection = new SqlConnectio...

20:40
Your question is too broad to be a good fit for this site's Q&A format. Please read the linked documentation, try something, implement it - and if/when you get stuck on a specific issue, then you'll have a better SO question. Or, if you get it to work as intended and then wonder if there'd be a better way, head over to Code Review to get a peer review of your working code. — Mat's Mug 19 secs ago
2
Q: program that reads simple data declarations and responds with the amount of memory that would be allocated to that variable

TRUMPII have written a program that reads simple data declarations and responds with the amount of memory that would be allocated to that variable. Each input line should consist of - A type name, which must be one of the following: char, int, short, long, float, or double. - One or more individual de...

21:03
Congratulations to @JosephTheDreamer on reaching 20k!
7
1
Q: Python application for create google map image

DennyGod day! I have wrote a django app that would get and some data to input and give you an image to output, image have 3 layers: google map image rosreestr(russian docs layer) data from geojson layer I ever listen that I'm junior, pls help me fix it. I think so hard find a job, sometime I wanna l...

1
Q: Swift framework that facilitates making atomic changes to several objects at a time

courteouselkFor the purposes of an app I work on I have created a separate framework that abstracts away the mechanism of making atomic changes to the complex object structures. Each class that has to participate in transactional changes of state is supposed to implement Transactable protocol where it has t...

@CaptainObvious God day to you as well..
@200_success was about to post quite exactly the same comment :)
I'm voting to close this question as off-topic because codereview.stackexchange.com seems like a better fit. — melpomene 27 secs ago
@Mat'sMug Maybe interference from Norwegian or Swedish?
> I think so hard find a job
maybe
dv reversed
21:20
0
Q: Angular 2 simple responsive application

Sheppard25I have a simple application which shows film recommendations to see with rest api which provides data from file. I would like to ask if something is missing in this app, maybe something can be do better? GitHub Regards

21:47
our process on github is: 1) create pull request, 2) wait for code review, 3) merge into master (or release branch). Direct merge into master would lack code review. Am I missing anything? — user2349661 34 secs ago
If this code works, your question is better suited to Code Review. — Andy Turner just now
0
Q: Viewing the final state of an Object

HuzoAs a beginner I was writing a code which asks the burger buyer what they want in their burger. I did this by creating a burger object and modify its attributes by the user using a switch case method. Most of the attributes were Boolean variables. At the end of the order, what I want to do is to d...

22:15
1
Q: What do you think i coded a little palindromic game

Savas CelikJust a little palindromic game. that searches all palindromic numbers in ur random generated list. I am new at python coding it's actually super fun, rate my code and feel free to give me some advice. Thank you i hope u like it. import random numbers = [] total = [] dice = random.randint(1000...

0
Q: Two append and zip

Regis da SilvaCan you improve? rc = [] for i, j in zip(A_response, B_response): rc.append(i) rc.append(j) I use zip and append, but But it's to use list comprehension?

22:46
If you want some feedback on working code, consider posting it over at codereview.stackexchange.com. However, you will have to include a fully compilable solution; read the help center: codereview.stackexchange.com/helpuser2296177 52 secs ago
23:04
You need to learn your data structures... You are using lists, or numpy arrays, in ways that defeat their strenghts. I think this question belongs in Code Review, not here. And you are more likely to get actionable help there than here. — Jaime 37 secs ago
23:25
0
Q: Determine if N is Even

Daniel SeguraI was playing with JS and wanted to create an isEven(n) function that returns true if it is even and false otherwise. Here is what I did: function isEven(n){ return n % 2 ? false : true; } print(isEven(6)); //-> true print(isEven(-3)); //-> false My question is: Is this good code? How i...

0
Q: Writing Code that takes in coordinates that form a rectangle and calculate the area and the union of the rectangles

user140228my name is Brian, I am new to Stack Exchange also new to coding, obly have been doing it a short while now. I would like to ask questions about coding in C++ about an issue I'm having with some code I have written. Basically I have included all of the code I have written up until now, Apologies f...

0
Q: Finding consecutive numbers in a vector

darylnakI need to write a program to print the line numbers, in ascending order, of a particular word in a file. Example output of the program would be: Hello 1, 3, 5-6, 8, 10-15. // 5-6 represents 5, 6 (consecutive numbers) The line numbers are stored in a sorted vector<int> with no duplicates. I ha...

23:35
@SimonForsberg I'm pretty sure you can.
Not sure if it would be a reasonable price, but I'd guess so. You don't even get charged if you stay under a certain limit.
0
Q: Kotlin: Comparing enums

AgentKnopfI am currently converting a project from Java to kotlin and re-writing the code in the process to make the most out of kotlin's capabilities. The project contains a Battle System which uses elements to establish inferiority/superiority or neutrality of attacks based on the attacker's and defender...


« first day (1489 days earlier)      last day (2823 days later) »