Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

University of California Irvine Leaderboard
RPI Leaderboard
MAFI_728x90
MAFI_728x90
Brandeis University Master of Finance Leaderboard 728x90
University of California Irvine Leaderboard
Click here
University of Maryland Masters of Economics  Leaderboard
Click here
Click here
NYU Tandon School of Engineering Leaderboard
University of Maryland Masters of Economics Leaderboard
  • Business
  • Culture
  • Technology
  • International Rankings
    • Bangladesh
    • Canada
    • Egypt
    • India
    • Nigeria
    • Pakistan
    • Philippines
    • United Kingdom
    • United States of America
  • Masters Rankings
    • Accounting
    • Business Analytics
    • Chiropractic
    • Computer Engineering
    • Computer Science
    • Economics
    • Education
    • Finance
    • Financial Economics
    • Financial Engineering
    • Law
    • Management
    • Marketing
    • MBA
    • Nursing
    • Social Work
  • Resources
    • C++
      • Beginner’s Guide to C++
      • An Introduction to the Imperative Part of C++
      • C++ Code
        • Sorts
        • Binary Search Trees
        • Strings
        • Binary Search
        • Math
        • Quant
        • Puzzles/Games
        • Language Concepts
        • Graphics
        • OS Operations
        • Graphs
      • C++ Full Course
      • C++ Crash Course
      • C++ Interview Questions
      • C++ Q/A
      • C++ Books
      • C++ Free Books
      • C++ Videos
    • C Questions
    • C Programming Tips
    • Java Questions
    • Quant Data Sources
    • Quant Questions

Why is processing a sorted array faster than an unsorted array?

Posted on September 1, 2017April 2, 2018 by TFE Times
Posted in C++Tagged a, an, array, faster, fster, is, n, processing, rry, sorted, than, thn, un, unsorted, why
Why is processing a sorted array faster than an unsorted array?

Here is a piece of C++ code that seems very peculiar. For some strange reason, sorting the data miraculously makes the code almost six times faster.

Continue Reading

C++: Heap Sort

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, heap, sort
C++: Heap Sort

#include <algorithm> // for std::make_heap, std::sort_heap template <typename Iterator> void heap_sort(Iterator begin, Iterator en

Continue Reading

C++: Insertion Sort

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, insertion, sort
C++: Insertion Sort

#include <algorithm> template<class Iterator> void insertion_sort( Iterator a, Iterator end ) { std::iter_swap( a, std::min_ele

Continue Reading

Java += operator

Posted on September 1, 2017April 2, 2018 by TFE Times
Posted in JavaTagged java, operator
Java += operator

Until today I thought that for example: i += j; is just a shortcut for: i = i + j; But what if we try this: int i = 5; long j = 8; Then i = i +

Continue Reading

Best C++ Books

Posted on September 1, 2017April 2, 2018 by TFE Times
Posted in C++Tagged best, books, c
Best C++ Books

Reference Style - All Levels A Tour of C++ (Bjarne Stroustrup) The "tour" is a quick (about 180 pages and 14 chapters) tutorial overview of all

Continue Reading

C++: Levenshtein Distance

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ StringsTagged distance, levenshtein
C++: Levenshtein Distance

template <class T> unsigned int edit_distance(const T& s1, const T& s2) { const size_t len1 = s1.size(), len2 = s2.size(); vect

Continue Reading

C++: Binary Search

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++Tagged binary, search
C++: Binary Search

//! \brief A recursive binary search using STL vectors //! \param vec The vector whose elements are to be searched //! \param start The index of

Continue Reading

C++: Longest Common Substring

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ StringsTagged common, longest, substring
C++: Longest Common Substring

#include <string> using std::string; int LongestCommonSubstring(const string& str1, const string& str2) { if(str1.empty() |

Continue Reading

What is “:-!!” in C code?

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C QuestionsTagged code, in, is, what
What is “:-!!” in C code?

I bumped into this strange macro code in /usr/include/linux/kernel.h: /* Force a compilation error if condition is true, but also produce a resul

Continue Reading

C++: What is the name of the “–>” operator?

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, is, name, of, operator, the, what
C++: What is the name of the “–>” operator?

After reading Hidden Features and Dark Corners of C++/STL on comp.lang.c++.moderated, I was completely surprised that it compiled and worked in both V

Continue Reading

Posts navigation

Older posts
Newer posts
University of California Irvine Leaderboard
University of Maryland Masters of Economics Sideboard
University of California Berkeley Master of Financial Engineering MFE Sideboard
NYU Tandon School of Engineering Sideboard
University of Maryland Masters of Economics Sideboard
Brandeis Business School
output_8BgzjE
Click here
  • Mediclaim Policy for Senior Citizens: Coverage Explained

    August 12, 2026 by TFE Times
  • U.S. Airlines Ranked From Best to Worst for On-Time Arrivals

    August 12, 2026December 30, 2025 by TFE Times
  • Timeless Accessories That Will Elevate Your Living Room

    August 11, 2026 by TFE Times
  • 7 Signs Your Manufacturing Plant Needs Better Maintenance Software

    August 11, 2026 by TFE Times
  • Why Fault Determines the Outcome of Every Car Accident Claim

    August 11, 2026 by TFE Times
  • Which Country’s Youth Scores Best At Math

    August 11, 2026December 30, 2025 by TFE Times
  • Why are Apartments in Ameenpur Gaining Popularity Among Homebuyers?

    August 10, 2026 by TFE Times
  • How to Create a Refined Appearance with Piercing Jewelry

    August 10, 2026 by TFE Times
  • The Essential Steps For Creating Effective Branded Merchandise

    August 10, 2026 by TFE Times
  • South America: 50 Most Populated Cities

    August 10, 2026December 30, 2025 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes