RSS

Posts in 2021

  • Most votes on algorithm questions 2

    May 01, 2021 in FAQ

    Most votes on algorithm questions 2. #11 Ukkonen's suffix tree algorithm in plain English #12 Calculate distance between two latitude-longitude points? (Haversine formula) #13 How to find time complexity of an algorithm #14 Big O, how do you calculate/approximate it? #15 How to count the number of set bits in a 32-bit integer? #16 What is tail call optimization? #17 How do I determine whether my calculation of pi is accurate? #18 Sorting 1 million 8-decimal-digit numbers with 1 MB of RAM #19 Expand a random range from 1–5 to 1–7 #20 How do I create a URL shortener?

    Read all the top votes questions and answers in a single page. #11: Ukkonen's suffix tree algorithm in plain English (Score: 1151) Created: 2012-02-26 Last updated: 2020-07-29 Tags: string, algorithm, data-structures, language-agnostic, suffix-tree I …

    Read more

  • Most votes on algorithm questions 10

    May 01, 2021 in FAQ

    Most votes on algorithm questions 10. #91 Is log(n!) = Θ(n·log(n))? #92 What's the best way to model recurring events in a calendar application? #93 How do I calculate a point on a circle’s circumference? #94 Find running median from a stream of integers #95 What are good examples of genetic algorithms/genetic programming solutions? #96 Skip List vs. Binary Search Tree #97 Understanding recursion #98 Given a number, find the next higher number which has the exact same set of digits as the original number #99 How to find the kth largest element in an unsorted array of length n in O(n)?

    Read all the top votes questions and answers in a single page. #91: Is log(n!) = Θ(n·log(n))? (Score: 235) Created: 2010-01-19 Last updated: 2018-03-04 Tags: algorithm, math, recursion, complexity-theory, big-o I am to show that log(n!) = …

    Read more

  • Most votes on algorithm questions 1

    May 01, 2021 in FAQ

    Most votes on algorithm questions 1. #1 What is a plain English explanation of "Big O" notation? #2 How do I check if an array includes a value in JavaScript? #3 How can I pair socks from a pile efficiently? #4 What does O(log n) mean exactly? #5 What is the optimal algorithm for the game 2048? #6 What is tail recursion? #7 Image Processing: Algorithm Improvement for 'Coca-Cola Can' Recognition #8 What is the best algorithm for overriding GetHashCode? #9 Easy interview question got harder: given numbers 1..100, find the missing number(s) given exactly k are missing #10 Removing duplicates in lists

    Read all the top votes questions and answers in a single page. #1: What is a plain English explanation of "Big O" notation? (Score: 5096) Created: 2009-01-28 Last updated: 2016-07-22 Tags: algorithm, complexity-theory, computer-science, …

    Read more

  • Most votes on ajax questions 9

    May 01, 2021 in FAQ

    Most votes on ajax questions 9. #81 How do I catch an Ajax query post error? #82 Why do people put code like "throw 1; <dont be evil>" and "for(;;);" in front of json responses? #83 event.returnValue is deprecated. Please use the standard event.preventDefault() instead #84 Stop all active ajax requests in jQuery #85 How to generate a simple popup using jQuery #86 Request Monitoring in Chrome #87 Why use AJAX when WebSockets is available? #88 How can I remove or replace SVG content? #89 Pass array to ajax request in $.ajax() #90 Cache an HTTP 'Get' service response in AngularJS?

    Read all the top votes questions and answers in a single page. #81: How do I catch an Ajax query post error? (Score: 224) Created: 2010-05-14 Last updated: 2017-07-22 Tags: jquery, ajax, post, error-handling I would like to catch the error and show …

    Read more

  • Most votes on ajax questions 8

    May 01, 2021 in FAQ

    Most votes on ajax questions 8. #71 What's the point of the X-Requested-With header? #72 How to get response status code from jQuery.ajax? #73 Reactjs convert html string to jsx #74 Google Chrome display JSON AJAX response as tree and not as a plain text #75 GUI-based or Web-based JSON editor that works like property explorer #76 What is difference between Axios and Fetch? #77 Show spinner GIF during an $http request in AngularJS? #78 How do I cancel an HTTP fetch() request? #79 URL Encode a string in jQuery for an AJAX request #80 How to get a cross-origin resource sharing (CORS) post request working

    Read all the top votes questions and answers in a single page. #71: What's the point of the X-Requested-With header? (Score: 246) Created: 2013-07-04 Last updated: 2017-01-14 Tags: jquery, ajax, http-headers, cors JQuery and other frameworks add the …

    Read more

  • Most votes on ajax questions 7

    May 01, 2021 in FAQ

    Most votes on ajax questions 7. #61 How to Convert JSON object to Custom C# object? #62 JavaScript/jQuery to download file via POST with JSON data #63 Pass request headers in a jQuery AJAX GET call #64 Can you call ko.applyBindings to bind a partial view? #65 How do I make jQuery wait for an Ajax call to finish before it returns? #66 How to use FormData for AJAX file upload? #67 How to get the jQuery $.ajax error response text? #68 Jquery Ajax Posting JSON to webservice #69 How to cancel/abort jQuery AJAX request? #70 Stop jQuery .load response from being cached

    Read all the top votes questions and answers in a single page. #61: How to Convert JSON object to Custom C# object? (Score: 266) Created: 2010-02-11 Last updated: 2019-04-09 Tags: c#, asp.net, .net, ajax, json Is there an easy way to populate my C# …

    Read more

  • Most votes on ajax questions 6

    May 01, 2021 in FAQ

    Most votes on ajax questions 6. #51 In what situations would AJAX long/short polling be preferred over HTML5 WebSockets? #52 Why is it a bad practice to return generated HTML instead of JSON? Or is it? #53 TypeError: $.ajax(…) is not a function? #54 How do I integrate Ajax with Django applications? #55 Can an AJAX response set a cookie? #56 How to save an HTML5 Canvas as an image on a server? #57 How to pass parameters in GET requests with jQuery #58 Detect the Internet connection is offline? #59 Prevent browser caching of AJAX call result #60 PHP "php://input" vs $_POST

    Read all the top votes questions and answers in a single page. #51: In what situations would AJAX long/short polling be preferred over HTML5 WebSockets? (Score: 312) Created: 2012-04-05 Last updated: 2016-06-03 Tags: javascript, ajax, html, …

    Read more

  • Most votes on ajax questions 5

    May 01, 2021 in FAQ

    Most votes on ajax questions 5. #41 How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers? #42 Getting "net::ERR_BLOCKED_BY_CLIENT" error on some AJAX calls #43 CORS: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true #44 Why is jQuery's .ajax() method not sending my session cookie? #45 Origin is not allowed by Access-Control-Allow-Origin #46 How to use Servlets and Ajax? #47 How can I add a custom HTTP header to ajax request with js or jQuery? #48 jQuery $.ajax(), $.post sending "OPTIONS" as REQUEST_METHOD in Firefox #49 Jquery - How to make $.post() use contentType=application/json? #50 jQuery.ajax handling continue responses: "success:" vs ".done"?

    Read all the top votes questions and answers in a single page. #41: How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers? (Score: 368) Created: 2009-02-18 Last updated: 2013-09-04 Tags: ajax, browser, xmlhttprequest In …

    Read more

  • Most votes on ajax questions 4

    May 01, 2021 in FAQ

    Most votes on ajax questions 4. #31 jQuery: Return data after ajax call success #32 jQuery AJAX cross domain #33 Download a file by jQuery.Ajax #34 Use basic authentication with jQuery and Ajax #35 Handle file download from ajax post #36 Access Control Request Headers, is added to header in AJAX request with jQuery #37 Uploading both data and files in one form using Ajax? #38 ASP.NET MVC controller actions that return JSON or partial html #39 What is the motivation behind the introduction of preflight CORS requests? #40 WebSockets protocol vs HTTP

    Read all the top votes questions and answers in a single page. #31: jQuery: Return data after ajax call success (Score: 496) Created: 2011-03-15 Last updated: 2017-02-18 Tags: javascript, jquery, ajax I have something like this, where it is a simple …

    Read more

  • Most votes on ajax questions 3

    May 01, 2021 in FAQ

    Most votes on ajax questions 3. #21 In MVC, how do I return a string result? #22 Are the PUT, DELETE, HEAD, etc methods available in most web browsers? #23 How do I send a cross-domain POST request via JavaScript? #24 Sending multipart/formdata with jQuery.ajax #25 Send POST data using XMLHttpRequest #26 On - window.location.hash - Change? #27 Response to preflight request doesn't pass access control check #28 How can I post data as form data instead of a request payload? #29 How to send FormData objects with Ajax-requests in jQuery? #30 jQuery get textarea text

    Read all the top votes questions and answers in a single page. #21: In MVC, how do I return a string result? (Score: 664) Created: 2009-02-16 Last updated: 2016-10-03 Tags: asp.net-mvc, ajax, actionresult In my AJAX call, I want to return a string …

    Read more