Top new questions this week:
|
So a friend happened to show me how odd and specific the general email syntax rules are. For instance, emails can have "comments". Basically you can put characters in parentheses that are just ...
|
Is there a better way to check whether a number is a power of 10? This is what I've implemented:
public class PowersOfTen {
public static boolean isPowerOfTen(long input) {
if ...
|
A Sudoku puzzle is a 9 × 9 grid with some numbers between 1 and 9 in
it, that has to be filled in so that
every row,
every column, and
each of the nine 3 × 3 blocks
contain ...
|
The challenge:
Suppose you are inhabitant of a planet where 1, 7, and 9 are lucky digits. A lucky number for you is a number that contains only your lucky digits in it. For ex: 1, 79, 911, 9917 ...
|
I am currently studying c programming, but I'm at a very basic level. So for practice I made a program that reads a string and inverts it. I want to know if the code is readable and how I can improve ...
|
I'm working on several projects involving Telegram bots and I've decided to make a library that meets my needs. Basically, there is already a Python library for Telegram bots (import telegram in my ...
|
This is my attempted solution to Question 1.3 from "Cracking the Code Interview", 6th ed.
Question:
Write a method to replace all spaces in a string with '%20'. You may assume that the string has ...
|
Greatest hits from previous weeks:
|
I want to generate a list of N different random numbers:
public static List<int> GetRandomNumbers(int count)
{
List<int> randomNumbers = new List<int>();
for (int i=0; ...
|
I have an Excel Worksheet consisting of two columns, one of which is filled with strings and the other of which is empty. I would like to use VBA to assign the value of the cells in the empty column ...
|
Can you answer these?
|
Now I am pretty crappy at software architecture. I think I was able to make this relatively concise. Please, any input is helpful!
var cheerio = require("cheerio"),
request = ...
|
What do you think about the following approach to CRUD? Here is the reading+pagination example. DTO types have Dto* prefix, EF Entity Types have E* prefix.
DAL example:
class UserQuery : PagingQuery
...
|
I am doing some math - combining, reusing, extending different analyses methods over the same original data set. It would be reasonable to use C# extension methods in my case instead of defining ...
|