Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

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

Category: C++

C++: Catalan Numbers

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, catalan, numbers
C++: Catalan Numbers

Catalan numbers are a sequence of numbers which can be defined directly: Or recursively: Or alternatively (also recursive):

Continue Reading

C++: Binary Search Tree Verification

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged binary, c, search, tree, verification
C++: Binary Search Tree Verification

struct TreeNode { int data; TreeNode *left; TreeNode *right; }; bool isBST(TreeNode *node, int minData, int maxData) { if(node == NULL

Continue Reading

C++: Determine if Only One Instance Is Running

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, determine, if, instance, is, one, only, running
C++: Determine if Only One Instance Is Running

This task is to determine if there is only one instance of an application running. If the program discovers that an instance of it is already running,

Continue Reading

C++: Find Common Directory Path

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, common, directory, file, find, path
C++: Find Common Directory Path

Create a routine that, given a set of strings representing directory paths and a single character directory separator, will return a string representi

Continue Reading

C++: Iterated Digits Squaring

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, digits, iterated, squaring
C++: Iterated Digits Squaring

If you add the square of the digits of a Natural number (an integer bigger than zero), you always end with either 1 or 89: 15 -> 26 -> 40 ->

Continue Reading

C++: Generate Random Number in Range

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, generate, in, number, random, range
C++: Generate Random Number in Range

int random_in_range(int a, int b) //Function that returns a random integer between 2 provided integers { return a + random() % (b-a+1); }

Continue Reading

C++: Fast Fourier Transform

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, fast, fourier, fourier transform, Math, sequence, transform
C++: Fast Fourier Transform

The purpose of this task is to calculate the FFT (Fast Fourier Transform) of an input sequence. The most general case allows for complex numbers at t

Continue Reading

C++: Constrained Random Points on a Circle

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged a, c, circle, constrained, cstrined, on, points, random, rndom
C++: Constrained Random Points on a Circle

Generate 100 <x,y> coordinate pairs such that x and y are integers sampled from the uniform distribution with the condition that . Then display/

Continue Reading

C++: Split a string in C++

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged a, c, in, split, strg, string
C++: Split a string in C++

What’s the most elegant way to split a string in C++? The string can be assumed to be composed of words separated by whitespace. (Note that I’m

Continue Reading

C++: Count in Octal

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, count, in, octal
C++: Count in Octal

The task is to produce a sequential count in octal, starting at zero, and using an increment of a one for each consecutive number. Each number should

Continue Reading

Posts navigation

Older posts
Newer posts
Click here
NYU Tandon School of Engineering Sideboard
University of California Berkeley Master of Financial Engineering MFE Sideboard
output_8BgzjE
Brandeis Business School
University of California Irvine Leaderboard
  • What Every State Imports The Most

    September 11, 2025May 25, 2025 by TFE Times
  • Where Americans Have The Most Cash 2025

    September 10, 2025May 25, 2025 by TFE Times
  • The Most Reliable Used-Car Brands in 2025

    September 9, 2025May 25, 2025 by TFE Times
  • Charting U.S. Trade Relationships

    September 8, 2025May 25, 2025 by TFE Times
  • The World’s Largest Combat Tank Fleets

    September 7, 2025May 25, 2025 by TFE Times
  • The World’s Aging Population

    September 6, 2025May 25, 2025 by TFE Times
  • How Do American Universities Make Money?

    September 5, 2025May 25, 2025 by TFE Times
  • Demand For Silver In Millions Of Ounces

    September 4, 2025May 25, 2025 by TFE Times
  • 2024’s Biggest Box Office Bombs

    September 3, 2025May 25, 2025 by TFE Times
  • UN Member States Not Recognized By At Least One Other UN Member State

    September 2, 2025May 25, 2025 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes