Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

MAFI_728x90
MAFI_728x90
Click here
University of California Irvine Leaderboard
RPI Leaderboard
University of Maryland Masters of Economics  Leaderboard
University of California Irvine Leaderboard
Click here
Click here
NYU Tandon School of Engineering Leaderboard
Brandeis University Master of Finance Leaderboard 728x90
University of Maryland Masters of Economics Leaderboard
  • Business
  • Culture
    • Beer Guide
    • Cheese Guide
    • Cigar Guide
    • Coffee Guide
    • Wine Guide
  • 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
  • WSET
    • WSET Level 1 Beer
    • WSET Level 2 Beer
    • WSET Level 1 Sake
    • WSET Level 2 Sake
    • WSET Level 3 Sake
    • WSET Level 1 Spirits
    • WSET Level 2 Spirits
    • WSET Level 3 Spirits
    • WSET Level 1 Wine
    • WSET Level 2 Wine
    • WSET Level 3 Wine
    • WSET Level 4 Wine

C++: Cycles in family tree software

Posted on September 1, 2017November 7, 2026 by TFE Times
Posted in C++Tagged c, cycles, family, in, software, tree
C++: Cycles in family tree software

I am the developer of some family tree software (written in C++ and Qt). I had no problems until one of my customers mailed me a bug report. The probl

Continue Reading

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

Posted on September 1, 2017November 7, 2026 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, 2017November 7, 2026 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, 2017November 7, 2026 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, 2017November 7, 2026 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, 2017November 7, 2026 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, 2017November 7, 2026 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, 2017November 7, 2026 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, 2017November 7, 2026 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, 2017November 7, 2026 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

Posts navigation

Older posts
Newer posts
University of Maryland Masters of Economics Sideboard
University of Maryland Masters of Economics Sideboard
NYU Tandon School of Engineering Sideboard
University of California Irvine Leaderboard
Click here
output_8BgzjE
Brandeis Business School
University of California Berkeley Master of Financial Engineering MFE Sideboard
  • A skier asking a lift attendant for guidance beside an empty chair at a lower loading terminal.

    How to Ride a Chairlift and Other Ski Lifts

    November 15, 2026October 25, 2026 by TFE Times
  • The History of the 1-Iron: Golf’s Most Feared Club

    November 15, 2026November 7, 2026 by TFE Times
  • Conceptual distillery cutaway showing grain preparation, fermentation, a copper still and maturation barrels from left to right.

    How Whiskey Is Made: From Grain to Glass

    November 15, 2026October 24, 2026 by TFE Times
  • Close view of black boots in bindings on a blue snowboard, with the toe-side steel edge and snow crystals prominent in the foreground.

    Heel-Side vs. Toe-Side: Understanding Your Snowboard Edges

    November 14, 2026October 26, 2026 by TFE Times
  • A warmly lit vintage laboratory bench with two microscopes, testing devices, and a rack of glass tubes stands beside a large white-and-blue modern automated laboratory analyzer in a spacious room.

    History of Labcorp Holdings

    November 14, 2026September 19, 2026 by TFE Times
  • Best Restaurants in Fargo: 15 Standout Places to Eat — illustrative city and food montage

    Best Restaurants in Fargo: 15 Standout Places to Eat

    November 14, 2026October 16, 2026 by TFE Times
  • Rounded S-shaped ski tracks crossing a broad groomed slope in low winter sunlight.

    How to Control Your Speed While Skiing

    November 14, 2026October 25, 2026 by TFE Times
  • Chardonnay Explained: The Versatile White Wine Beyond Oak and Butter

    November 14, 2026October 18, 2026 by TFE Times
  • Illustrated exhibit with separate bays for beer and grain, wine and grapes, and a spirit sample beside distillation equipment.

    Spirits vs. Wine vs. Beer: What’s the Difference?

    November 14, 2026October 25, 2026 by TFE Times
  • A helmeted snowboarder in an olive jacket brushing a modest fan of snow while bringing a board across a broad open slope.

    How to Stop on a Snowboard

    November 13, 2026October 26, 2026 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes