半导体笔试题

时间:2020-10-15 14:28:02 笔试题目 我要投稿

半导体笔试题

Practice
  Create a tree, which has h (h>0) layers, and its each node has w(w>0) sub-nodes.Please complete the following incomplete solution.
  #include <stdlib.h>
  #include <string.h>
  struct tree{
  char info;
  p_sub; //link to sub-nodes};
  // allocate memory and initiate
  void dnode ( struct tree* tmp )
  {
  = malloc( sizeof (struct tree) );
  = 0x41;
  = NULL;
  }
  struct tree *dtree (struct tree* subtree, int height, int width)
  {
  int i;
  if ( !subtree ) //if necessary, allocte memory for subtree
  denode(subtree);
  if ( height == 1 )
  return subtree;
  else if ( height == 2 ) {
  struct tree *leaf = NULL;
  for ( i=0; i<width; i++ ) {
  denode ( );
  ;
  leaf = NULL;}
  return subtree;}
  else {
  for ( i=0; i<width; i++ ) {
  }
  return subtree;
  }
  }
  main()
  {
  .........
  struct tree *root = NULL;
 

半导体笔试题

【半导体笔试题】相关文章:

华为2017笔试题08-16

360笔试题目10-20

华为2017笔试试题08-10

桂林银行笔试题笔经10-21

半导体岗位职责02-19

半导体中文简历写作欣赏09-11

半导体中文简历写作范例09-10

半导体行业求职简历模板09-04

浅谈半导体材料的应用10-28

QMS2007笔试审核知识模拟试题11-02