Trending questions in Edureka Community

0 votes
0 answers

Printing prime numbers from 1 through 100

The following prime numbers are printed out by this C++ code: 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 73 79 83 89 97. However, I don't believe that is how my book would prefer it to be written.  It makes a reference to the square root of a number.  I thus tried switching my second loop to for (int j=2; jsqrt(i); j++), but it did not produce the desired outcome. How would I modify this code to make it the way my book desires it to be? int main () { ...READ MORE

Aug 23, 2022 in C++ by Nicholas
• 7,760 points

edited Mar 4, 2025 343 views
0 votes
0 answers

Typescript error (2345) when pushing element to array of elements(React js)?

I'm pretty new to Typescript and I ...READ MORE

Jul 5, 2022 in TypeSript by Nina
• 3,060 points
2,462 views
0 votes
0 answers

Table scroll with HTML and CSS

I have a table like that which ...READ MORE

Jul 8, 2022 in CSS by Edureka
• 13,750 points
2,325 views
0 votes
0 answers

Php Program to find Palindrome?

The palindrome can be found in three ...READ MORE

Aug 1, 2022 in PHP by Kithuzzz
• 38,000 points
1,200 views
0 votes
0 answers

Remove a key from a C++ map

I want to take a key out ...READ MORE

Aug 23, 2022 in C++ by anonymous
• 7,760 points

edited Mar 4, 2025 336 views
0 votes
1 answer

Vectorized IF statement in R?

x <- seq(0.1,10,0.1) > x [1] ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
3,038 views
0 votes
0 answers

MS EXCEL: Convert (Height) Decimal Feet & Inches to Inches Only

Using MS Excel (2010), I would like ...READ MORE

Feb 10, 2022 in Others by Edureka
• 13,690 points
1,141 views
0 votes
0 answers

set text in jquery

If I want to set the text ...READ MORE

Aug 8, 2022 in Web Development by gaurav
• 23,580 points
988 views
0 votes
0 answers

What is the difference between List.of and Arrays.asList?

In java 9, new factory methods for ...READ MORE

Aug 2, 2022 in Java by krishna
• 2,820 points
1,238 views
0 votes
1 answer

Linking to a specific part of a web page

This is only possible if the website ...READ MORE

Aug 4, 2022 in HTML by Deepak
• 980 points
1,134 views
0 votes
0 answers

How can I get the intersection, union, and subset of arrays in Ruby?

I want to develop many methods for ...READ MORE

Aug 8, 2022 in Others by krishna
• 2,820 points
975 views
0 votes
0 answers

Simple Registration page info is not added to database using localhost

When I use localhost, after completing my ...READ MORE

Jul 24, 2022 in Web Development by Kithuzzz
• 38,000 points
1,578 views
0 votes
0 answers

jQuery fade out then fade in

There's a bunch on this topic, but ...READ MORE

Jul 29, 2022 in Web Development by gaurav
• 23,580 points
1,408 views
0 votes
1 answer

jQuery tablesorter: filter and zebra widgets stop working after ajax update IE8 only

I have found the issue, me!. I ...READ MORE

Jul 28, 2022 in Web Development by rajatha
• 7,680 points

edited Mar 5, 2025 1,419 views
0 votes
0 answers

Find ordered combinations of search string letters in a haystack string (Hacker Rank challenge)

I attempted to pass a Hacker Rank ...READ MORE

Aug 2, 2022 in PHP by Kithuzzz
• 38,000 points
1,250 views
0 votes
0 answers

How do you declare an interface in C++?

What is the best way to build ...READ MORE

Aug 23, 2022 in C++ by Nicholas
• 7,760 points

edited Mar 4, 2025 312 views
0 votes
0 answers

How to combine bold and italic in CSS?

I learned how to make text bold ...READ MORE

Aug 23, 2022 in CSS by Edureka
• 13,750 points

edited Mar 4, 2025 318 views
0 votes
1 answer

What version of npm works with nodejs 0.10?

Here's the complete list (between v0.10.0 - ...READ MORE

Jun 9, 2022 in Node-js by Neha
• 9,020 points
3,511 views
0 votes
0 answers

How to echo define value in PHP?

 Code : <?php define("SITENAME","Page TITLE");?> I want to echo ...READ MORE

Aug 6, 2022 in PHP by Kithuzzz
• 38,000 points
1,002 views
0 votes
1 answer

Smooth scrolling when clicking an anchor link

document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', ...READ MORE

Jun 20, 2022 in JQuery by rajatha
• 7,680 points
3,036 views
0 votes
0 answers

how do you increase the height of an html textbox

How can the height of a textbox ...READ MORE

Aug 12, 2022 in HTML by Tejashwini
• 5,380 points
787 views
0 votes
1 answer

How to add class using jQuery?

Add a class name to the first ...READ MORE

Jun 1, 2022 in JQuery by Edureka
• 13,690 points
3,879 views
0 votes
0 answers

SetInterval 60 second countdown issue jQuery

I'm trying to countdown 60 seconds once ...READ MORE

Jul 22, 2022 in Web Development by gaurav
• 23,580 points
1,566 views
0 votes
0 answers

The difference of na.rm and na.omit in R

I've just started with R and I've ...READ MORE

Jul 22, 2022 in Data Science by avinash
• 1,840 points
1,685 views
0 votes
1 answer

How to cast jQuery $.ajax calls to Bluebird promises without the deferred anit-pattern

jQuery have promises implemented with their AJAX ...READ MORE

Aug 1, 2022 in Web Development by rajatha
• 7,680 points
1,216 views
0 votes
0 answers

jQuery Slide toggle and fade in issue

As you can see when clicking on ...READ MORE

Jul 28, 2022 in Web Development by gaurav
• 23,580 points
1,391 views
0 votes
1 answer

jQuery counter to count up to a target number

Use the jQuery animate function to count ...READ MORE

Jun 20, 2022 in JQuery by rajatha
• 7,680 points
3,029 views
0 votes
0 answers

When should you use a class vs a struct in C++?

When using C++, when is it preferable ...READ MORE

Aug 23, 2022 in C++ by Nicholas
• 7,760 points

edited Mar 4, 2025 300 views
0 votes
0 answers

Accessing nested JavaScript objects and arrays by string path

This is my data structure var someObject = ...READ MORE

Aug 8, 2022 in Others by krishna
• 2,820 points
950 views
0 votes
0 answers

HTML Input - already filled in text

Can text be entered into an input ...READ MORE

Jul 29, 2022 in HTML by Tejashwini
• 5,380 points
1,383 views
0 votes
0 answers

Add target="_blank" in CSS

On my website, there are external links ...READ MORE

Jul 11, 2022 in CSS by Edureka
• 13,750 points
2,161 views
0 votes
0 answers

Adding to a vector of pair

I have a pair vector that looks like this: vector<pair<string,double>> revenue; I'd want to add a string and a double from a map that looks like this: revenue[i].first = "string"; revenue[i].second = map[i].second; However, because revenue is not initialised, it returns an out of bounds error.  So I ...READ MORE

Jul 26, 2022 in C++ by Nicholas
• 7,760 points
1,451 views
0 votes
0 answers

Show Youtube video source into HTML5 video tag?

It doesn't seem to be working when ...READ MORE

Jul 26, 2022 in HTML by Ashwini
• 5,430 points
1,508 views
0 votes
1 answer

What does |> (pipe greater than) mean in R?

The "pipe" operator in R is |>. ...READ MORE

Jun 14, 2022 in Data Science by Sohail
• 3,040 points
3,282 views
0 votes
0 answers

Video is not supported in html5

I have the latest FF and I ...READ MORE

Aug 3, 2022 in HTML by Ashwini
• 5,430 points
1,165 views
0 votes
0 answers

In mailto: replace subject and body adding %20 instead space in all file php using notepad++

I do have a query... Each post ...READ MORE

Aug 4, 2022 in PHP by Kithuzzz
• 38,000 points
1,096 views
0 votes
0 answers

Conversion of base 10 to base 6

I attempted to convert a base 10 number to a base 6 number in C, but my code failed two hidden test cases. I don't see any logical flaws in it. Could you do it? //convert base 10 to base 6 #include<stdio.h> int main() { ...READ MORE

Jul 26, 2022 in C++ by Nicholas
• 7,760 points
1,442 views
0 votes
0 answers

Upgrading PHP in XAMPP for Windows?

How do you upgrade PHP in Xampp ...READ MORE

Jul 29, 2022 in PHP by Kithuzzz
• 38,000 points
1,336 views
0 votes
1 answer

Jquery pickatime, Drop down window not closing after on change event

Maybe your input element falls within label ...READ MORE

Aug 2, 2022 in Web Development by rajatha
• 7,680 points
1,156 views
0 votes
0 answers

How is HTML converted into machine language?

I've been unsure of this for a ...READ MORE

Jul 26, 2022 in HTML by Tejashwini
• 5,380 points
1,495 views
0 votes
1 answer

Setting the value of REM for all the properties in CSS

We've covered this in comments, but essentially ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,730 points
2,814 views
0 votes
0 answers

jQuery drag event doesn't seem to have deltaX property

I am trying to create my own ...READ MORE

Aug 8, 2022 in Web Development by gaurav
• 23,580 points
892 views
0 votes
0 answers

Convert to date format dd/mm/yyyy

I have the following date: 2010-04-19 18:31:27. I ...READ MORE

Jul 30, 2022 in PHP by Kithuzzz
• 38,000 points
1,274 views
0 votes
0 answers

Confused with object arrays in C++

I have some Java knowledge and now ...READ MORE

Aug 11, 2022 in C++ by krishna
• 2,820 points
798 views
0 votes
0 answers

How to run the Kruskal-Wallis or Mann-Whitney Test in R?

Can anyone give me a hint on ...READ MORE

Jul 25, 2022 in Data Analytics by avinash
• 1,840 points

edited Mar 4, 2025 1,528 views
0 votes
0 answers

Expose jQuery to real Window object with Webpack

I want to expose the jQuery object ...READ MORE

Aug 2, 2022 in Web Development by gaurav
• 23,580 points
1,184 views
0 votes
1 answer

How to validate array in Laravel?

Hello @kartik, you can call validate() method directly ...READ MORE

Aug 10, 2020 in Laravel by Niroj
• 82,800 points
32,344 views
0 votes
1 answer

asp.net master page css not applying to asp form pages

just try the following code: <head> ...READ MORE

Jun 13, 2022 in CSS by Edureka
• 12,730 points
3,379 views
0 votes
1 answer

How can I use CSS to style multiple images differently?

You can do that in HTML (delete ...READ MORE

Jun 21, 2022 in CSS by Edureka
• 12,730 points
3,059 views
0 votes
1 answer

"Cannot send session cache limiter - headers already sent"

The line "Headers already sent" means that ...READ MORE

Feb 18, 2022 in Others by Aditya
• 7,680 points
8,259 views