Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

RPI Leaderboard
University of California Irvine Leaderboard
Click here
Click here
Brandeis University Master of Finance Leaderboard 728x90
NYU Tandon School of Engineering Leaderboard
University of California Irvine Leaderboard
MAFI_728x90
MAFI_728x90
  • 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

Month: September 2017

C++: Character Codes

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, character, codes
C++: Character Codes

Given a character value in your language, print its code (could be ASCII code, Unicode code, or whatever your language uses). For example, the char

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++: Swap Values

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, swap, values
C++: Swap Values

On lines 6–7, we create two std::string objects whose values we wish to swap. However, this sample will also apply to any other swappable type. O

Continue Reading

C++: Sort a Range of Elements

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged a, c, elements, of, range, rnge, sort
C++: Sort a Range of Elements

On line 8, we create a std::array of ints that we wish to sort. On line 10, we call the standard alrogithm std::sort, which sorts the range of elem

Continue Reading

C++: Knapsack Problem

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ PuzzlesTagged knapsack, knapsack problem, problem
C++: Knapsack Problem

A tourist wants to make a good trip at the weekend with his friends. They will go to the mountains to see the wonders of nature, so he needs to pack w

Continue Reading

C++: Input Loop

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, input loop
C++: Input Loop

Read from a text stream either word-by-word or line-by-line until the stream runs out of data. The stream will have an unknown amount of data on it.

Continue Reading

C++: Horner’s Rule for Polynomial Evaluation

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, evaluation, for, horner, polynomial, polynomials, rule, rules, s
C++: Horner’s Rule for Polynomial Evaluation

A fast scheme for evaluating a polynomial such as: when . is to arrange the computation as follows: And compute the result f

Continue Reading

C++: Execute a System Command

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged a, c, command, commnd, execute, system
C++: Execute a System Command

In this task, the goal is to run either the ls (dir on Windows) system command, or the pause system command. Works with: Visual C++ version 2005 sys

Continue Reading

Posts navigation

Older posts
Newer posts
University of California Irvine Leaderboard
Brandeis Business School
University of California Berkeley Master of Financial Engineering MFE Sideboard
output_8BgzjE
NYU Tandon School of Engineering Sideboard
  • The Greenest Cities In America

    April 6, 2026October 28, 2025 by TFE Times
  • Best Car Floor Mats for Protecting Interiors from Dirt and Moisture

    April 5, 2026April 5, 2026 by TFE Times
  • Tuition Costs Of Top U.S. Colleges

    April 5, 2026October 28, 2025 by TFE Times
  • The World’s Oldest People In History

    April 4, 2026October 28, 2025 by TFE Times
  • The Cost Of Utilities Around The World

    April 3, 2026October 28, 2025 by TFE Times
  • Largest Labor Forces By Country

    April 2, 2026October 28, 2025 by TFE Times
  • The 10 Most Powerful U.S. Hurricanes

    April 1, 2026October 28, 2025 by TFE Times
  • The World’s Largest Merchant Fleets

    March 31, 2026October 28, 2025 by TFE Times
  • Median Household Income By State

    March 30, 2026October 28, 2025 by TFE Times
  • How Senior Home Care Improves Mental Health in Aging Adults

    March 29, 2026 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes