I am working on hacker rank problem. Repeated String [1] : https://www.hackerrank.com/challenges/repeated-string/problem function main() { var s = readLine
I am trying to reproduce the following functions created in Python in R. # Python def square_area(side): return side * side results = [] for i in range(1
This is a question from coderbyte’s easy set. Many people asked about it already, but I’m really curious about what’s wrong with my particular
I have some really big txt files (> 2 gb) where the quality of the data is not good. In some columns (that should be integer), for values below 1000.00 , '.'
In a complex batch file I want to read in files with paths, among other things, to read them into a variable one after the other separated by spaces. This works
I am trying to give info to my program whether it should print space or not. My code looks something like this, and its printing spaces at the end (which is not
I use a nested for loop to get data of Weekdays. If one of the days is 'null' the loop stops at that day and doesn't get the rest of the days. I believe that I
I'm using Android studio and i'm trying to find a way to use a very common thing i used to do in eclipse. when i'm writing (for example) a for loop, i'm writing
Need help inside the for loop to flip each character with the character before it. function flip(str) { //split string //iterate through split string //re
I'm trying to write a program that takes in a phrase and a number (n) and returns a list that contains the phrase repeated n times. What I have so far looks lik
I have a durable function that calls a method that simply adds a row to an efcore object. It doesn't call db save. When I step through the code, and get to the
I'm using zipfile to create an archive of all files in a directory (recursively, while preserving directory structure including empty folders) and want the proc
Hey guys I have to write a program for class that asks me to produce a bar graph based on how many cars a salesperson sold for the month. An example is this: P
I'm creating coordinate plane Three in a row game so I have to find out if there are three numbers of the same value in the array BUT WITHOUT sorting array beca
While I was solving a question saying "add odd numbers from 1 to 20", I coded this: var i, sum=0; for (i=2; i<=20; i*2){ sum=sum+i; } document.write(sum);
I am running the following in the Scott schema: SET serveroutput ON; BEGIN FOR c_Emp IN (SELECT * FROM emp) LOOP dbms_output.put_line('The record processed by
How to get the index in a for each loop? I want to print numbers for every second iteration For example for (value in collection) { if (iteration_no % 2) {
How to get the index in a for each loop? I want to print numbers for every second iteration For example for (value in collection) { if (iteration_no % 2) {
Good Day! I would like the Purchase Order ID repeated upon submission of a form in an earlier sheet. My current code however repeats this throughout the length
I'm trying to code this really simple addition program for practice. It takes in a list of inputs and stores it in a vector. Then it grabs each consecutive elem