意法半导体软件笔试真题(3)

招聘笔试题2018-11-22三水老师

  if ( height == 1 )

  return subtree;

  else if ( height == 2 ) {

  struct tree *leaf = null;

  for ( i=0; i

  denode ( );

  ;

  leaf = null;

  }

  return subtree;

  }

  else {

  for ( i=0; i

  }

  return subtree;

  }

  }

  main()

  {

  .........

  struct tree *root = null;

  root = dtree (root, h, w) ; // h and w are integers get from input

  .........

  }

相关推荐

猜你喜欢

大家正在看

换一换