Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: irpersian20

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    195

    Why must be overloaded in pairs?

    The comparison operators, if overloaded, must be overloaded in pairs; that is, if == is overloaded, != must also be overloaded. The reverse is also true, and similar for < and >, and for <= and >=.
    ...
  2. Thread: Calculator

    by irpersian20
    Replies
    3
    Views
    548

    Re: Calculator

    123+321 = 123 !!
  3. Thread: Calculator

    by irpersian20
    Replies
    3
    Views
    548

    Calculator

    Hi,
    I want write a simple calculator without any priority but i have problem with this. :(



    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using...
  4. Thread: Fill array

    by irpersian20
    Replies
    4
    Views
    482

    Re: Fill array

    I can't write any code :( .. I need one idea for solve the problem.
  5. Thread: Fill array

    by irpersian20
    Replies
    4
    Views
    482

    Re: Fill array

    Yes,I need help.
    Please see the pdf file(attached) . i want fill array with the following pattern in pdf.
  6. Thread: Fill array

    by irpersian20
    Replies
    4
    Views
    482

    Fill array

    Hi.
    I want to solve the following exercises with four different arrays.
    int[] a;
    int[] b;
    int[] c;
    int[] d;
    Please see the pdf file.
    Thank you
  7. Replies
    11
    Views
    2,440

    Re: Maximum of two consecutive elements

    Dear my friend
    It's not my homework.
    Sample test questions , could not find an appropriate solution
  8. Replies
    11
    Views
    2,440

    Re: Maximum of two consecutive elements

    Use the divide-and-conquer approach to write a recursive algorithm that finds the maximum sum of two consecutive elements in an array.

    For example:
    1)3,7,1,6,9,2,3

    6+9=15
    Maximum of two...
  9. Replies
    11
    Views
    2,440

    Re: Maximum of two consecutive elements

    For example:
    3,7,1,6,9,2,3

    6+9=15
    Maximum of two elements together
  10. Replies
    11
    Views
    2,440

    Maximum of two consecutive elements

    Hello,
    What are your ideas to solve the following problem?

    Divide and conquer method
    Algorithm to find the two consecutive elements in an array of n elements is the sum of the maximum
  11. Replies
    0
    Views
    1,114

    Time complexity

    Hello,
    What is the time complexity T(n) of the nested loops below? For simplicity, you may assume that n is a power of 2. That is, n = 2k for some positive integer k.

    :
    for (i = 1; i...
  12. Thread: Heap

    by irpersian20
    Replies
    10
    Views
    1,231

    Re: Heap

    // input: an array of size n


    isHeap(array h, index i) {

    if(i > n/2) return true; //base case

    if(h[i*2+1]!= null) {

    if((h[i] >= h[i*2]) && (h[i] >= h[i*2+1]))
  13. Thread: Heap

    by irpersian20
    Replies
    5
    Views
    682

    Re: Heap

    Write an algorithm that determines whether or not an almost complete binary tree is a heap.
  14. Thread: Heap

    by irpersian20
    Replies
    5
    Views
    682

    Re: Heap

    ok,excuse me
    but can you help me?
  15. Thread: Heap

    by irpersian20
    Replies
    10
    Views
    1,231

    Heap

    Hi,
    Write an algorithm that determines whether or not an almost complete binary tree is a heap.
    Please
  16. Thread: Heap

    by irpersian20
    Replies
    5
    Views
    682

    Heap

    Hi,
    Write that determines whether or not an almost complete binary tree is a heap.
    Please
Results 1 to 16 of 16


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center